$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"];} ?>