isMobile() ) { $degiskenler = $_SERVER[REQUEST_URI]; $degiskenler = substr($degiskenler, 1,150); if ($degiskenler == "register/"){ $degiskenler = "index.php?page=register"; } elseif ($degiskenler == "login/"){ $degiskenler = "index.php?page=login"; } elseif ($degiskenler == "lostpassword/"){ $degiskenler = "index.php?page=lostpassword"; } elseif ($degiskenler == "login"){ $degiskenler = "index.php?page=login"; } header("location: http://www.ilanpro.net/mobile/$degiskenler"); } */ ?> query("SELECT * FROM metalar WHERE Id = '1'"); $a = $sql->fetch(PDO::FETCH_ASSOC); $title = $a["title"]; $description = $a["description"]; } elseif ($_GET["page"] == "acil"){ $sql = $db->query("SELECT * FROM metalar WHERE Id = '2'"); $a = $sql->fetch(PDO::FETCH_ASSOC); $title = $a["title"]; $description = $a["description"]; } elseif ($_GET["page"] == "magazalar"){ $sql = $db->query("SELECT * FROM metalar WHERE Id = '3'"); $a = $sql->fetch(PDO::FETCH_ASSOC); $title = $a["title"]; $description = $a["description"]; } elseif ($_GET["page"] == "sayfa"){ if ($_GET["id"] == "1"){ $sql = $db->query("SELECT * FROM metalar WHERE Id = '4'"); $a = $sql->fetch(PDO::FETCH_ASSOC); } elseif ($_GET["id"] == 2){ $sql = $db->query("SELECT * FROM metalar WHERE Id = '6'"); $a = $sql->fetch(PDO::FETCH_ASSOC); } elseif ($_GET["id"] == 3){ $sql = $db->query("SELECT * FROM metalar WHERE Id = '7'"); $a = $sql->fetch(PDO::FETCH_ASSOC); } elseif ($_GET["id"] == 4){ $sql = $db->query("SELECT * FROM metalar WHERE Id = '8'"); $a = $sql->fetch(PDO::FETCH_ASSOC); } elseif ($_GET["id"] == 5){ $sql = $db->query("SELECT * FROM metalar WHERE Id = '9'"); $a = $sql->fetch(PDO::FETCH_ASSOC); } elseif ($_GET["id"] == 6){ $sql = $db->query("SELECT * FROM metalar WHERE Id = '10'"); $a = $sql->fetch(PDO::FETCH_ASSOC); } elseif ($_GET["id"] == 7){ $sql = $db->query("SELECT * FROM metalar WHERE Id = '11'"); $a = $sql->fetch(PDO::FETCH_ASSOC); } $title = $a["title"]; $description = $a["description"]; } elseif ($_GET["page"] == "category"){ $id = $_GET["id"]; $sql = $db->query("SELECT * FROM category WHERE Id = '$id'"); $a = $sql->fetch(PDO::FETCH_ASSOC); $title = $a["kategori_adi"]." İlanları"; $description = $a["kategori_adi"]." İlanları"; } elseif ($_GET["page"] == "blog"){ $id = $_GET["id"]; $sql = $db->query("SELECT * FROM bkategoriler WHERE Id = '$id'"); $a = $sql->fetch(PDO::FETCH_ASSOC); $title = $a["title"]; $description = $a["title"]; if ($id == ""){ $title = "Blog"; $description = "Blog"; } } elseif ($_GET["page"] == "yazi"){ $id = $_GET["id"]; $sql = $db->query("SELECT * FROM byazilar WHERE Id = '$id'"); $a = $sql->fetch(PDO::FETCH_ASSOC); $title = $a["title"]; $description = $a["title"]; } elseif ($_GET["page"] == "ilan"){ $id = $_GET["id"]; $sql = $db->query("SELECT * FROM ilanlar WHERE Id = '$id'"); $a = $sql->fetch(PDO::FETCH_ASSOC); $title = $a["title"]; $description = $a["title"]; } else { $sql = $db->query("SELECT * FROM metalar WHERE Id = '12'"); $a = $sql->fetch(PDO::FETCH_ASSOC); $title = $a["title"]; $description = $a["description"]; } $sql = $db->query("SELECT * FROM genel"); $a22 = $sql->fetch(PDO::FETCH_ASSOC); $keywords2 = $a22["keywords"]; $description2 = $a22["description"]; ?> <? echo $title; ?> query("SELECT * FROM ilanlar WHERE Id = '$id'"); $a = $sql->fetch(PDO::FETCH_ASSOC); $title = $a["title"]; $description = $a["title"]; $resim = $db->query("SELECT * FROM images WHERE ilanId = '{$id}'"); $r = $resim->fetch(PDO::FETCH_ASSOC); $src = $base_url . "fileserver/files/" . $a["Id"] . "/" . $r["name"]; echo ' '; } ?>
  • Üye Ol
  • Giriş Yap
  •  İlan Ver
  • Merhaba ;  [ Çıkış ]
    query("SELECT * FROM users WHERE aktivasyonkodu = '$c' and aktivasyon = '0'"); if ($sql2->rowCount() == 0){ $_SESSION['er'] = 0; header("location: login/"); } else { $sqls = $db->prepare("UPDATE users SET aktivasyon=? WHERE aktivasyonkodu = '$c'"); $ekle = $sqls->execute(array(1)); $_SESSION['er'] = 1; header("location: login/"); } } elseif ($_GET["page"] == "advert_del") { $id = $_GET["id"]; $uye = $_SESSION['uye']; $sql2 = $db->prepare("DELETE FROM ilanlar WHERE Id = '{$id}' and uyeId = '$uye'"); $sql2->execute(); $sql2 = $db->prepare("DELETE FROM modul_ilan WHERE ilanId = '{$id}'"); $sql2->execute(); $sql2 = $db->prepare("DELETE FROM prop_ilan WHERE ilanId = '{$id}'"); $sql2->execute(); $dizinyolu = $_SERVER['DOCUMENT_ROOT']; $klasor = $dizinyolu . "/fileserver/files/" . $id; function rmdirr($klasor) { if($objs = glob($klasor."/*")){ foreach($objs as $obj) { is_dir($obj)? rmdirr($obj) : unlink($obj); } } rmdir($klasor); } rmdirr($klasor); header("location: " . $_SERVER['HTTP_REFERER']); } elseif ($_GET["page"] == "advert_o") { $id = $_GET["id"]; $uye = $_SESSION['uye']; $sql = $db->query("SELECT * FROM ilanlar WHERE Id = '$id' and uyeId = '$uye'"); $a = $sql->fetch(PDO::FETCH_ASSOC); $bugun = date("Y-m-d"); $date = date("Y-m-d", strtotime($bugun . " +$a[yayin] day")); $sqls = $db->prepare("UPDATE ilanlar SET bitis=? WHERE Id = '$id'"); $ekle = $sqls->execute(array($date)); header("location: " . $_SERVER['HTTP_REFERER']); } elseif ($_GET["page"] == "category") { include 'filesystems/category.php'; } elseif ($_GET["page"] == "anasayfa") { include 'filesystems/anasayfa.php'; } elseif ($_GET["page"] == "acil") { include 'filesystems/acil.php'; } elseif ($_GET["page"] == "ilan") { include 'filesystems/ilan.php'; } elseif ($_GET["page"] == "mesajgonder") { include 'filesystems/mesajgonder.php'; } elseif ($_GET["page"] == "message") { include 'filesystems/message.php'; } elseif ($_GET["page"] == "message2") { include 'filesystems/message2.php'; } elseif ($_GET["page"] == "messageread") { include 'filesystems/messageread.php'; } elseif ($_GET["page"] == "messageread2") { include 'filesystems/messageread2.php'; } elseif ($_GET["page"] == "kullanici") { include 'filesystems/kullanici.php'; } elseif ($_GET["page"] == "sikayet") { include 'filesystems/sikayet.php'; } elseif ($_GET["page"] == "mopen") { include 'filesystems/mopen.php'; } elseif ($_GET["page"] == "magazaodeme") { include 'filesystems/magazaodeme.php'; } elseif ($_GET["page"] == "odemebildirimi") { include 'filesystems/odemebildirimi.php'; } elseif ($_GET["page"] == "favoriilanlarim") { include 'filesystems/favoriilanlarim.php'; } elseif ($_GET["page"] == "medit") { include 'filesystems/medit.php'; } elseif ($_GET["page"] == "banka") { include 'filesystems/banka.php'; } elseif ($_GET["page"] == "yayin") { include 'filesystems/yayin.php'; } elseif ($_GET["page"] == "satinal") { include 'filesystems/satinal.php'; } elseif ($_GET["page"] == "adres") { include 'filesystems/adres.php'; } elseif ($_GET["page"] == "adres2") { include 'filesystems/adres2.php'; } elseif ($_GET["page"] == "ozet") { include 'filesystems/ozet.php'; } elseif ($_GET["page"] == "odeme") { include 'filesystems/odeme.php'; } elseif ($_GET["page"] == "satisislemlerim") { include 'filesystems/satisislemlerim.php'; } elseif ($_GET["page"] == "alisislemlerim") { include 'filesystems/alisislemlerim.php'; } elseif ($_GET["page"] == "siparis") { include 'filesystems/siparis.php'; } elseif ($_GET["page"] == "kargo") { include 'filesystems/kargo.php'; } elseif ($_GET["page"] == "mesajgonder2") { include 'filesystems/mesajgonder2.php'; } elseif ($_GET["page"] == "kargolayacaklarim") { include 'filesystems/kargolayacaklarim.php'; } elseif ($_GET["page"] == "onaybekleyen") { include 'filesystems/onaybekleyen.php'; } elseif ($_GET["page"] == "odemebekleyen") { include 'filesystems/odemebekleyen.php'; } elseif ($_GET["page"] == "tamamlanan") { include 'filesystems/tamamlanan.php'; } elseif ($_GET["page"] == "kargoonay") { include 'filesystems/kargoonay.php'; } elseif ($_GET["page"] == "yorumyap") { include 'filesystems/yorumyap.php'; } elseif ($_GET["page"] == "siparis2") { include 'filesystems/siparis2.php'; } elseif ($_GET["page"] == "kargobekleyen") { include 'filesystems/kargobekleyen.php'; } elseif ($_GET["page"] == "onayimibekleyen") { include 'filesystems/onayimibekleyen.php'; } elseif ($_GET["page"] == "profil") { include 'filesystems/profil.php'; } elseif ($_GET["page"] == "banaozel") { include 'filesystems/banaozel.php'; } elseif ($_GET["page"] == "magazalar") { include 'filesystems/magazalar.php'; } elseif ($_GET["page"] == "getilanlar") { include 'filesystems/getilanlar.php'; } elseif ($_GET["page"] == "search") { include 'filesystems/search.php'; } elseif ($_GET["page"] == "sayfa") { include 'filesystems/sayfa.php'; } elseif ($_GET["page"] == "iletisim") { include 'filesystems/iletisim.php'; } elseif ($_GET["page"] == "ihale") { include 'filesystems/ihale.php'; } elseif ($_GET["page"] == "kihale") { include 'filesystems/kihale.php'; } elseif ($_GET["page"] == "kbihale") { include 'filesystems/kbihale.php'; } elseif ($_GET["page"] == "sss") { include 'filesystems/sss.php'; } elseif ($_GET["page"] == "blog") { include 'filesystems/blog.php'; } elseif ($_GET["page"] == "yazi") { include 'filesystems/yazi.php'; } elseif ($_GET["page"] == "blog") { include 'filesystems/blog.php'; } elseif ($_GET["page"] == "yazi") { include 'filesystems/yazi.php'; } elseif ($_GET["page"] == "rehber") { include 'filesystems/rehber.php'; } elseif ($_GET["page"] == "firma") { include 'filesystems/firma.php'; } elseif ($_GET["page"] == "exit") { unset($_SESSION["uye"]); unset($_SESSION["adsoyad"]); header("location: index.php"); } ?>