get_results("Select * FROM sosyalmedya WHERE durum=1 ORDER BY sira"); $ayar=$dbo->get_row("SELECT * FROM ayarlar WHERE id='1'"); $sayfa_oz=$dbo->get_row("SELECT * FROM pages WHERE id='".request::get('id')."'"); $menuler=$dbo->get_results("select * from pages where id >='0' AND id <='6'"); $kategoriler=$dbo->get_results("SELECT id,baslik".language::get()." as baslik,ozet".language::get()." as ozet FROM urunler_kategori WHERE ustKat=0 and durum='1' ORDER BY sira ASC LIMIT 99"); $haberler=$dbo->get_results("SELECT id,baslik".language::get()." as baslik,ozet".language::get()." as ozet,detay".language::get()." as detay,haberTarihi FROM `haberler` WHERE durum='1' ORDER BY haberTarihi DESC LIMIT 5"); $ureklam=$dbo->get_results("Select id,kunye_tr,resim,action_id,sira FROM resimler WHERE action_id='74' AND module='pages' ORDER BY sira ASC LIMIT 14"); $smarty->assign("ureklam",$ureklam); if($sayfa_oz->ustSayfa==0){ $head=$sayfa_oz->id; }else{ $head=$sayfa_oz->ustSayfa; } switch($_POST['islem']){ case "girisYap": users::girisYap($_POST['eposta'],$_POST['pass']); break; case "cikisYap": users::cikisYap(); break; case "formGonder": $form=1; /*if($_POST['formName']=="ebultenForm"){ users::ebultenKaydet(); }elseif($_POST['formName']=="iletisimForm"){ users::iletisimFormEkle(); }elseif($_POST['formName']=="gorusmeForm"){ users::gorusmeFormEkle(); }elseif($_POST['formName']=="uzmanForm"){ users::uzmanFormEkle(); }*/ break; } if(strpos($_SERVER['HTTP_USER_AGENT'],"iPhone") || strpos($_SERVER['HTTP_USER_AGENT'],"iPad")){ $iphone=1; } if($form==1){ die; //include('mail/mail.php'); } //SITENAME SETTINGS define('_SITE_URL', $ayar->siteUrl); //Load Template $smarty->assign("_GET",$_GET); $smarty->assign("_SESSION",@$_SESSION); $smarty->assign("_POST",$_POST); $smarty->assign("_REQUEST",$_REQUEST); $smarty->assign("_LANG", language::get()); $smarty->assign("SiteURL",$ayar->siteUrl); $smarty->assign("sosyaller",$sosyaller); $smarty->assign("hizliErisimler",$hizliErisimler); $smarty->assign("kategoriler",$kategoriler); $smarty->assign("bilgiIlk",$bilgiler->id); $smarty->assign("haberler",$haberler); $smarty->assign("ayar",$ayar); $smarty->assign("footerMenu",$footerMenu); $smarty->assign("arkaplanlar",$arkaplanlar); $smarty->assign("productMenu",$productMenu); $smarty->assign("sayfa_oz",$sayfa_oz); $smarty->assign("head",$head); $template = $page . ".tpl"; $smarty->assign("template", $template); $smarty->display('index.tpl'); if($form==1){ if($_POST['formName']=="ebultenForm" && $_POST['eposta']=="E-Posta adresini giriniz"){ ?>