date_default_timezone_set('Europe/Istanbul'); $host = $_SERVER['HTTP_HOST']; $wsa= "http://www.ereglibulteni.com/"; include ("include/config.php"); include ("include/fonk.php"); $p= $_GET['p']; $p=explode("/",$p); $sayfa=$p[0]; $kat=$p[1]; $id=$p[2]; $sayfaisim=$p[3]; $page=$p[4]; function startCache($cname, $die = false, $time = 300) { $ktime = time() - (int)@filemtime('cached_pages/'.md5($cname)); if($ktime > $time || $_GET['mod'] == '1') { ob_start(); return true; } else { echo file_get_contents('cached_pages/'.md5($cname), 'r').''; if ($die) { exit(0); }}} function endCache($cname) { file_put_contents('cached_pages/'.md5($cname), $x = ob_get_flush()); } function hata(){ echo"Ana Sayfa..."; exit;} $sonucb= mysql_query("select * from genelayarlar where id='1'",$vtyol); $satirb=@mysql_fetch_array($sonucb); if($p[0]=="haber-detay"){ if(is_numeric($p[1]) and is_numeric($p[2])){ $sql="select h.*, hk.id from haber h, haberkat hk where h.haberkat=hk.id and h.haberkat=".$p[1]." and h.id=".$p[2]; $query = mysql_query($sql,$vtyol); $temp = @mysql_fetch_array($query); if($temp['id']){ $temp['haber'] = str_replace($srch2, $rpl2,$temp['haber']); $temp['ozet'] = str_replace($srch2, $rpl2,$temp['ozet']); $title=$temp['haber']; $descr=$temp['ozet']; } } if(!$title){hata();} } if(!$title){$title=$satirb["baslik"];} if(!$descr){$descr=$satirb["aciklama"];} if(!$keyword){$keyword=$satirb["anahtar"];} ?>
include("ust.php")?> if(file_exists($sayfa.".php")){ include($sayfa.".php"); }else{ include("orta.php"); } ?> include("alt.php")?> |
include("reklam/reklam3.php");?> include("reklam/reklam8.php");?> |