window.location.replace("http://www.lacavesarap.com/");'; die; //Load Controller $page=request::get('cmd') ? request::get('cmd') : 'main'; include("controller/" . request::clean($page) . ".php"); //Site Variables For BY 360 HR $ayar=$dbo->get_row("SELECT * FROM ayarlar WHERE id='1'"); $sayfa_oz=$dbo->get_row("SELECT * FROM pages WHERE id='".request::get('id')."'"); $solreklam=$dbo->get_results("Select id,kunye".language::get()." as kunye,resim FROM resimler WHERE action_id='5' AND tur=1 AND module='pages' ORDER BY sira ASC"); $kategoriler=$dbo->get_results("Select id,baslik".language::get()." as baslik,seo FROM urunler_kategori WHERE ustKat='0' AND durum='1' ORDER BY sira ASC LIMIT 10"); $renk=$dbo->get_results("Select * FROM ozellik WHERE OzellikTurID='1' ORDER BY OzellikID ASC"); $bolge=$dbo->get_results("Select * FROM ozellik WHERE OzellikTurID='2' ORDER BY OzellikID ASC"); $uzum=$dbo->get_results("Select * FROM ozellik WHERE OzellikTurID='3' ORDER BY OzellikID ASC"); $tercih=$dbo->get_results("Select id,baslik".language::get()." as baslik,seo,katID FROM urunler WHERE durum='1' AND encok='1' AND stok<>0 ORDER BY rand() DESC LIMIT 5"); $haftanin=$dbo->get_results("Select id,baslik".language::get()." as baslik,seo,alkol_orani,fiyat,katID FROM urunler WHERE durum='1' AND haftanin='1' AND stok<>0 ORDER BY rand() DESC LIMIT 1"); $yenilikler=$dbo->get_results("Select id,baslik".language::get()." as baslik, seo,link FROM pages WHERE ustSayfa='5' AND durum='1' ORDER BY sira DESC LIMIT 6"); 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; } $iphone=0; if(strpos($_SERVER['HTTP_USER_AGENT'],"iPhone") || strpos($_SERVER['HTTP_USER_AGENT'],"iPad")){ $iphone=1; } if($form==1){ include('mail/mail.php'); } if($_POST['nihai']==1){ $_SESSION['nihai']=1; } //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",_SITE_URL); $smarty->assign("iphone",$iphone); $smarty->assign("mail",$mail); $smarty->assign("ayar",$ayar); $smarty->assign("sayfa_oz",$sayfa_oz); $smarty->assign("solreklam",$solreklam); $smarty->assign("kategoriler",$kategoriler); $smarty->assign("renk",$renk); $smarty->assign("bolge",$bolge); $smarty->assign("uzum",$uzum); $smarty->assign("tercih",$tercih); $smarty->assign("haftanin",$haftanin); $template = $page . ".tpl"; $smarty->assign("template", $template); $smarty->display('index.tpl'); if($form==1){ if($_POST['formName']=="ebultenForm" && $_POST['eposta']=="E-Posta adresini giriniz"){ ?>