error_reporting(E_ALL ^ E_NOTICE); // Report all errors except E_NOTICE ini_set('max_execution_time', '0'); include "kalendar_new/includes/class.autokeyword.php"; include "kalendar_new/f-je_new1_ro.php"; if(isset($_REQUEST['dateodabranro'])) { $dateodabran = $_REQUEST['dateodabranro']; } else{ $dateodabran=date("Y-m-d"); } /* //************************************************************************************************************************ // pokupi podatke ali samo iz forme if(isset($_REQUEST['year'])) { $year = $_REQUEST['year']; }else{ $year=date("Y",stamp_datum($dateodabran)); } if(isset($_REQUEST['month'])) { $month = $_REQUEST['month']; }else{ $month=date("n",stamp_datum($dateodabran)); } if(isset($_SERVER['PHP_SELF'])) $PHP_SELF = $_SERVER['PHP_SELF']; //************************************************************************************************************************ $danzakesh=date("d",stamp_datum($dateodabran)); */ //podaci za meta tag-ove $meta_datum=date('Y-m-d', stamp_datum($dateodabran)); $meta_danmesec=date('d.m', stamp_datum($dateodabran)); $meta_godina=date('Y', stamp_datum($dateodabran)); $naslov_stranice='Perpetuu Biserica calendarul ortodox pentru '.$meta_danmesec.' an '.$meta_godina.'.'; list($klj_reci, $spisak_sveci)=KljucneReci($meta_datum); //ako je neispravan datum, prikaži današnji kalendar if (($year<1900)||($year>2100)){$year=date('Y'); $month=date('m'); } if (($month<1)||($month>12)){$year=date('Y'); $month=date('m'); } /* ######################################################################################## //pocetak kesiranja ######################################################################################## //u ponoc CRON brise sve fajlove iz direktorijuma / prazni cache $cachefile = 'cache-index/ro-'.$year.'-'.$month.'-'.$danzakesh.'.php'; //$cachetime = 86400; //24 časa // Check if the cached file is still fresh. If it is, serve it up and exit. //if (file_exists($cachefile) && time() - $cachetime < filemtime($cachefile)) { if (file_exists($cachefile)) { include($cachefile); exit; } ob_start(); ######################################################################################## //kraj kesiranja */ ?>