'; ?> '.ucwords($title_yaz).' ';} else { if(empty($linkimiz)) echo ''.strtoupper(eregi_replace("-"," ",$title_yaz)).''; else echo ''.strtoupper(eregi_replace("-"," ",$linkimiz)).''; } echo ''; if (empty($linkimiz)) { echo '
'; echo ''; echo ''; echo '

Categories
'; for ($bolum = 1; $bolum < 6; $bolum++) { echo ''.strtoupper($varmi[$bolum]).' - '; } echo '

'; } elseif ($url[0] == "search") { //------ link ekle -------------- $google_link_bak = @mysql_query ("select * from `google_link` limit 1") ; while($listele_google_link = mysql_fetch_array($google_link_bak)) { $google_link_tarih = $listele_google_link [ "tarih" ]; } $google_bugun = date (G); if (($google_link_tarih != $google_bugun) and (empty($page) or $page=0) ) { $kontrol=@mysql_query("SELECT sub FROM `info_sublar` where `bolum` = '".$url[1]."' and `onay` = 0 LIMIT 1"); if(@mysql_num_rows($kontrol) > 0 ) { @mysql_query ("UPDATE `info_sublar` SET `onay` = 1 where `bolum` = '".$url[1]."' and `onay` = 0 order by `id` limit ".rand(1,2)." "); $google_tarih_up = @mysql_query ("UPDATE `google_link` SET tarih = '$google_bugun' limit 1 "); } else { $google_tarih_up = @mysql_query ("UPDATE `google_link` SET tarih = '$google_bugun' limit 1 "); $google_link_al=mysql_query("SELECT sub FROM `info_sublar` ORDER BY RAND() LIMIT ".rand(1,2).""); while($google_link_listele=mysql_fetch_array($google_link_al)) { $google_linkimiz=$url[1]."-".$google_link_listele [ "sub" ]; $google_linkimiz=explode("-", $google_linkimiz); shuffle($google_linkimiz); $google_key_adedi = count($google_linkimiz); for ($google_goster = 0; $google_goster < $google_key_adedi; $google_goster++) { if (!empty($google_linkimiz[$google_goster])) { $google_sub_kontrol = $google_linkimiz[$google_goster]."-".$google_sub_kontrol; } } $google_sub_kontrol = trim($google_sub_kontrol, "-"); $google_kontrol=@mysql_query("SELECT * FROM `info_sublar` where sub = '$google_sub_kontrol' LIMIT 1"); if(@mysql_num_rows($google_kontrol) == 0 ) { $google_sqlnext = mysql_query("insert into `info_sublar` (sub,pict_id,bolum,onay) values ('$google_sub_kontrol','".rand(1,2253)."','".$url[1]."','1')"); $google_sub_kontrol=""; } } } } //------------------------------------------ echo '
'; $page=$url[2]; if(!$ayar['kacar'] OR $ayar['kacar']<=0){$ayar['kacar']=15;} if(empty($page)){$page=0;} if($page<0){$page=0;} $numara=($page*15)+1; $toplam=@mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM `info_sublar` where bolum = '$linkimiz' and `onay` = 1 ")); $kayitlar=@mysql_query("SELECT * FROM `info_sublar` where bolum = '$linkimiz' and `onay` = 1 order by `id` desc LIMIT ".($page*($ayar['kacar']).",".$ayar['kacar'])); echo '

'; while($listele=mysql_fetch_array($kayitlar)){ $seo_link = $listele [ "sub" ]; echo ''.$numara++.'- '.eregi_replace("-"," ",$seo_link).'
'; if(!empty($listele [ "yazi" ])) { $alt_search = $alt_search.', '.substr($listele [ "yazi" ],0,200); } } echo '

'; echo ''; echo ''; } else { if(empty($url[1])) { $adres_bos_ise="http://www.cepuzmani.com/404.html"; header("Location: ".$adres_bos_ise); exit; } //------ comment ekle -------------- $linkimiz = eregi_replace(" ","-",$linkimiz); $google = "select * from `info_sublar` where sub = '$linkimiz' limit 1"; $google_bak = @mysql_query ($google) ; while($listele_google = mysql_fetch_array($google_bak)) { $tarih = $listele_google [ "tarih" ]; $id = $listele_google [ "id" ]; $yazi = $listele_google [ "yazi" ]; } $bugun = date (n); if ($tarih != $bugun) { $tarih_up = @mysql_query ("UPDATE `info_sublar` SET tarih = '$bugun' where id = '$id' limit 1 "); $link_al=@mysql_query("SELECT sub FROM `info_sublar` ORDER BY RAND() LIMIT 2"); while($link_listele=mysql_fetch_array($link_al)) { $ekle=$ekle." ".str_replace("-", " ", $link_listele [ "sub" ]); } if($yazi) $yazi=$yazi.", ".$ekle; else $yazi=$ekle; $yazi_up = @mysql_query ("UPDATE `info_sublar` SET yazi = '$yazi' where id = '$id' limit 1 "); } //------------------------------------------ if (!preg_match("/".$url[0]."/", $url[1])) { $adres_yok_ise="http://www.cepuzmani.com/404.html"; header("Location: ".$adres_yok_ise); exit; } $sql = "select * from `info_sublar` where sub = '$linkimiz' limit 1"; $rs = @mysql_query ($sql) ; while($listele=mysql_fetch_array($rs)) { $sub_kontrol = $listele [ "sub" ]; $sayi = $listele [ "sayi" ]; $sub_id = $listele [ "id" ]; $resim = $listele [ "resim" ]; $yazi = $listele [ "yazi" ]; $related = $listele [ "related" ]; } if ($linkimiz != $sub_kontrol) { $adres_yok_ise="http://www.cepuzmani.com/404.html"; header("Location: ".$adres_yok_ise); exit; } $rs = @mysql_query ("UPDATE `info_sublar` SET sayi= sayi+1 where id = '$sub_id' limit 1 ") ; $key_array = array(); $keylerimiz = explode('-', $linkimiz); sort($keylerimiz); for ($titsay = 0; $titsay < count($keylerimiz); $titsay++) { if(!in_array($keylerimiz[$titsay],$key_array)) { $key_array[] = $keylerimiz[$titsay]; if($keylerimiz[$titsay]) $key_yaz = $key_yaz." ".$keylerimiz[$titsay]; } } $key_yaz = trim($key_yaz); echo' '; echo '
'; echo ''; echo '

Images
'; echo"\"".eregi_replace("-",""; echo '

'; $yazilerimiz = explode(',', $yazi); echo ''; echo ''; echo ''; } ?>