'] = $fetch_locale['keyLocale']; $_SESSION['lc_fDate'] = $fetch_locale['fDate']; //SET LOCALE mysql_query("SET lc_time_names = '".$_SESSION['lc_time_names']."'"); setlocale(LC_TIME,$_SESSION['lc_time_names']); if(!@$_GET['p']){$_GET['p']='news';} $infosPage = infosPage(@$_GET['p']); if(!$infosPage){$infosPage = infosPage($pAccueil);} //Lecture de l'index $key_page = $infosPage['rewriteKey']; $title_page = localeText($infosPage['string']); if(@is_numeric($_GET['id']) AND $_GET['p']=='news'){ $req_newsHeader = mysql_query("SELECT titre, date, description, user FROM news WHERE keyLocale = '".$_SESSION['lc_language']."' AND id = ".$_GET['id']); $fetch_newsHeader = mysql_fetch_array($req_newsHeader); if(mysql_num_rows($req_newsHeader)>0){ //$title_page .= " - ".$fetch_newsHeader['titre']; $longTitle_page = $title_page." - ".$fetch_newsHeader['titre']; $infosPage['titre']=$fetch_newsHeader['titre']; $infosPage['description']=$fetch_newsHeader['description']; $infosPage['url_image']=$domaine."images/news/LordShades_News_".$_GET['id'].".jpg"; $infosPage['url_page']=$domaine."news-".$_GET['id']; }else{ //envoyer vers 404 } }else{ $longTitle_page = $title_page." - ".localeText($infosPage['string']); $infosPage['titre']=localeText($infosPage['string']); $infosPage['description']=localeText($infosPage['description']); $infosPage['url_image']=$domaine."images/thumbnails_LordShades.jpg"; $infosPage['url_page']=$domaine.$infosPage['rewriteKey']; } $f_page = "pages/".$infosPage['rewriteKey'].".php"; include("corps.php"); //$temps_fin = microtime(true); //echo 'Temps d\'execution : '.round($temps_fin - $temps_debut, 4); ?>