="0"){ $id=filter_var($_GET['id'], FILTER_VALIDATE_INT); $expire=time()-2592000; // valable dix minutes $expires=2592000; $cache=($_SERVER['DOCUMENT_ROOT']."/_cache/".$id.".html"); if(file_exists($cache)){ $size=filesize($cache);header("Content-Length:$size"); }else{} header('Expires:' . gmdate('D, d M Y H:i:s', time()+$expires) . ' GMT, +1'); if(file_exists($cache) && filemtime($cache)>$expire && $size!="0"){ ob_start("ob_gzhandler_no_errors"); header("Last-Modified:".gmdate("D, d M Y H:i:s", filemtime($cache))." GMT, +1"); readfile($cache); }else{ ob_start(); include($_SERVER['DOCUMENT_ROOT']."/test/databases/4/db_eyar.php"); include($_SERVER['DOCUMENT_ROOT']."/test/databases/4/db_vekirin.php"); function dateaffichee($time, $mode = 'long' ) { setlocale( LC_TIME, "fr" ); // Recuperation du nom du mois $mi = strftime( "%m" , strtotime( $time ) ); switch ($mi){ case '1' : $mi = 'janvier'; break; case '2' : $mi = 'février'; break; case '3' : $mi = 'mars'; break; case '4' : $mi = 'avril'; break; case '5' : $mi = 'mai'; break; case '6' : $mi = 'juin'; break; case '7' : $mi = 'juillet'; break; case '8' : $mi = 'août'; break; case '9' : $mi = 'septembre'; break; case '10' : $mi = 'octobre'; break; case '11' : $mi = 'novembre'; break; case '12' : $mi = 'decembre'; break; } // Recuperation du nom du jour $w = strftime( "%u" , strtotime( $time ) ); switch ($w){ case '1' : $w = 'Lundi'; break; case '2' : $w = 'Mardi'; break; case '3' : $w = 'Mercredi'; break; case '4' : $w = 'Jeudi'; break; case '5' : $w = 'Vendredi'; break; case '6' : $w = 'Samedi'; break; case '7' : $w = 'Dimanche'; break; } // Recuperation du jour $mor1 = strftime( "%e " , strtotime( $time ) ); // Recupera de l'année $mor2 = strftime( "%Y" , strtotime( $time ) ); if ( $mode == 'long' ) { // Recupere de l'heure+minute+seconde $mor3 = strftime( "à %Hh%M" , strtotime( $time ) ); //$mor3 = strftime( "à %Hh %Mm %Ss" , strtotime( $time ) ); }else{ $mor3 = NULL; } return $w.' '.$mor1.' '. $mi. ' '.$mor2. ' '.$mor3; //return $w.' '.$mor1.' '. $mi. ' '.$mor2. ' '.$mor3; } if(isset($id) && strlen($id)>="1"){ $query=("SELECT * FROM newsarticles WHERE status='1' AND lng='0' AND id='".$id."'"); $result = mysql_query("$query") or die(mysql_error()); $num_rows = mysql_num_rows($result); if($num_rows==true){ $id=mysql_result($result,0,"id"); $title=mysql_result($result,0,"title"); $head=mysql_result($result,0,"head"); $full=mysql_result($result,0,"full"); $category=mysql_result($result,0,"category"); $added=mysql_result($result,0,"added"); $status=mysql_result($result,0,"status"); $newsurl=mysql_result($result,0,"newsurl"); if($status==true){ include($_SERVER['DOCUMENT_ROOT']."/newtop.php"); $keywordhead=strip_tags($head); $keywordhead=dateaffichee($added)." - ".htmlspecialchars($keywordhead, ENT_QUOTES); $fikptitle=htmlspecialchars($title); $description="$keywordhead"; $keywords="$keywordhead"; echo""; include($_SERVER['DOCUMENT_ROOT']."/numeta.php"); echo"";?> "; echo"".$title." - Institut kurde de Paris"; include($_SERVER['DOCUMENT_ROOT']."/newmenu.php"); echo'

'; echo"

"; echo"

$title


"; if($added=="0000-00-00 00:00:00"){ }else{ echo "".dateaffichee($added).""; } echo"
$head

"; echo"
"; function resimler($id){ include($_SERVER['DOCUMENT_ROOT']."/test/databases/4/db_eyar.php"); include($_SERVER['DOCUMENT_ROOT']."/test/databases/4/db_vekirin.php"); $plus_photos=mysql_query("SELECT * FROM newsmedia where nid='$id' order by titre"); $hucre_sayisi=mysql_num_rows($plus_photos); if($hucre_sayisi==true){ echo"
"; echo'"; echo"
"; } include($_SERVER['DOCUMENT_ROOT']."/test/databases/4/db_girtin.php"); } resimler($id); echo $full."
"; echo "
"; include($_SERVER['DOCUMENT_ROOT']."/numaf.php"); include($_SERVER['DOCUMENT_ROOT']."/test/databases/4/db_girtin.php"); } }else{ header("HTTP/1.1 301 Moved Permanently"); header("Location: http://www.issahassan.com/info/"); } }else{ header("HTTP/1.1 301 Moved Permanently"); header("Location: http://www.issahassan.com/info/"); } $tampon = ob_get_contents(); /* $tampon = str_replace(array("\n", "\r", "\t"), "", $tampon);*/ file_put_contents("$cache", $tampon) ; //pour une meilleure organisation, on créera un répertoire cache pour y stocker les fichiers du cache ob_end_clean(); // toujours fermer et vider le tampon header("Refresh: 1; URL=".$_SERVER['REQUEST_URI']); } }else{ header("HTTP/1.1 301 Moved Permanently"); header("Location: http://www.issahassan.com/info/"); exit; } ?>