Query($sql); $row = $db->FetchResult($db->result); if($row['IDFONT']<1){ header("HTTP/1.1 301 Moved Permanently"); header('location: /'); exit; } $link = URL_SITE."ttf/".(int)$row['IDFONT'].".ttf"; $link_sit = URL_SITE."ttf/".(int)$row['IDFONT'].".sit"; $link_hqx = URL_SITE."ttf/".(int)$row['IDFONT'].".hqx"; $image = URL_SITE."fonts/big/".(int)$row['IDFONT'].".png"; $debut_link = URL."download-font/"; $template->assign(array("font_link" => $link, "font_file_sit" => $link_sit, "font_file_hqx" => $link_hqx, "font_id" => $row['IDFONT'], "font_font" => $row['FONT'], "font_categorie" => $row['CATEGORIE'], "font_file" => $link, "font_nbview" => $row['NBVIEW'], "font_img" => $image, "font_keyword" => $keyword[$i], "text" => $_POST['text'])); $sit = "ttf/".(int)$row['IDFONT'].".sit"; if(file_exists($sit)){ $template->parse('body.sit'); } $hqx = "ttf/".(int)$row['IDFONT'].".hqx"; if(file_exists($hqx)){ $template->parse('body.hqx'); } if($_POST['text']){ $template->parse('body.preview'); } $meta_title = $row['FONT']." : ".TITRE_INDEX." ".$row['CATEGORIE']; $categorie = $row['FONT']; $meta_description = $row['FONT']; $meta_keyword = $row['FONT']; $meta_textedur = $row['FONT']; $id = $_GET["id"]; require "./config/footer.php"; ?>