include("aofp2/systemfiles/connect.php"); include("aofp2/systemfiles/phpfunctions.php"); include("aofp2/systemfiles/upload.php"); include("aofp2/systemfiles/imageload.php"); session_start(); $lng=$_SESSION['lng']; if(!$lng){ $lng="eng"; } if($_GET["language"]=="tr") $lng="tr"; if($_GET["language"]=="eng") $lng="eng"; if($_GET["language"]=="ru") $lng="ru"; $_SESSION['lng']=$lng; include("pages/language.php"); $sayfa=$_GET["sayfa"]; $popup=0; $popuptime=0+$_SESSION['popuptime']; $raceq=$db->query("select * from race order by id DESC"); $race=$raceq->fetchObject(); $popupyenilemesuresi=0+$race->popupyenileme; if($race->popup>0){ $popup=1; $popupsure=0+$race->popupsure; } if($race->popupgosterim==0){ if($popuptime==0){ $_SESSION['popuptime']="".(strtotime(date("Y-m-d H:i:s"))); } else{ $suanzaman=strtotime(date("Y-m-d H:i:s")); if(($suanzaman-$popuptime)<$popupyenilemesuresi){ $popup=0; } else{ $_SESSION['popuptime']="".(strtotime(date("Y-m-d H:i:s"))); } } } if($sayfa!="") $popup=0; ?>