$v) { // if(strlen($v) < 32) $_SESSION['siteConfig'][$k] = $v; if(!(stristr($k,'wm_') === false) || $k == 'digerparabirim' || $k == 'templateName') $_SESSION['siteConfig'][$k] = $v; } } if ($_GET['temp']) @$_SESSION['templateName'] = $_GET['temp']; // if (!$_SESSION['templateName']) $_SESSION['templateName'] = $AktifTemplateDizini; $siteConfig['statsTimeoutMin'] = ($shopphp_demo?240:15); if ((!$shopphp_demo && $_SESSION['templateName'] != $mobileTemplateName)) $_SESSION['templateName'] = $siteConfig['templateName']; else { if(!$_SESSION['templateName'] || $_GET['temp'] == 'auto') $_SESSION['templateName'] = $siteConfig['templateName']; } $siteConfig['templateName'] = $_SESSION['templateName']; if($siteConfig['sepet_odeme'] == '2') $siteConfig['sepet_hizli'] = 1; function isReallyMobile() { return preg_match("/(android|avantgo|blackberry|bolt|boost|cricket|docomo|fone|hiptop|mini|mobi|palm|phone|pie|tablet|up\.browser|up\.link|webos|wos)/i", $_SERVER["HTTP_USER_AGENT"]); } $yonetimDizini = ($yonetimDizini?$yonetimDizini:'secure/'); if (!$_SESSION['templateLoaded'] && file_exists($_SERVER['DOCUMENT_ROOT'].'/'.$siteDizini.'templates/'.$mobileTemplateName.'/3rdparty/Mobile_Detect.php') && $_SESSION['templateName'] != $mobileTemplateName) { require_once ($_SERVER['DOCUMENT_ROOT'].'/'.$siteDizini.'templates/'.$mobileTemplateName.'/3rdparty/Mobile_Detect.php'); $detect = new Mobile_Detect; if($detect->isMobile() && isReallyMobile() && !$detect->isTablet() && (stristr($_SERVER['PHP_SELF'],'/'.($yonetimDizini?$yonetimDizini:'secure')) === false)) { $_SESSION['templateLoaded'] = 1; $_SESSION['templateName'] = $mobileTemplateName; if($_GET['go']) $url = 'page.php?temp='.$mobileTemplateName.'&act='.$_GET['act'].'&go='.$_GET['go'].'&'; if($_GET['act']) $url = 'page.php?temp='.$mobileTemplateName.'&act='.$_GET['act'].'&op='.$_GET['op'].'&'; if($_GET['urunID']) $url = 'page.php?temp='.$mobileTemplateName.'&act=urunDetay&urunID='.$_GET['urunID'].'&'; if($_GET['catID'] || $_GET['markaID']) $url = 'page.php?temp='.$mobileTemplateName.'&act=kategoriGoster&catID='.$_GET['catID'].'&markaID='.$_GET['markaID'].'&'; if($_GET['paytype']) $url = 'page.php?temp='.$mobileTemplateName.'&act=satinal&op=odeme&paytype='.$_GET['paytype'].'&sessionID='.$_GET['sessionID']; if($_GET['seID']) $url = 'page.php?temp='.$mobileTemplateName.'&act='.$_GET['act'].'&seID='.$_GET['seID'].'&'; exit(header('location:'.$siteDizini.$url.'?temp='.$mobileTemplateName).''); } } $_SESSION['templateLoaded'] = 1; $siteConfig['title'] = $siteConfig['seo_title']; foreach ($_GET as $k=>$v) if (!$_POST[$k]) @$_POST[$k] = $v; foreach ($_POST as $k=>$v) if (!$_GET[$k]) @$_GET[$k] = $v; $_SERVER['DOCUMENT_ROOT'] = str_replace('\\','/',$_SERVER['DOCUMENT_ROOT']); if ($yonetimKoruma == 'SCRIPT' && $adminUser) mysql_query("update user set isAdmin=1 where username like '$adminUser' AND isAdmin = 0"); $SMSoriginator=$siteConfig['SMS_originator']; $SMSusername = $siteConfig['SMS_username']; $SMSpassword = $siteConfig['SMS_password']; $hostArray = explode('.',$_SERVER['HTTP_HOST']); if(count($hostArray) == 2) $_SERVER['HTTP_HOST']='www.'.$_SERVER['HTTP_HOST']; if (!$_SESSION['refForSession']) $_SESSION['refForSession'] = @$_SERVER['HTTP_REFERER']; $globalCatFilterArray = array('cokSatanlar','yeniUrunler','sonEklenenler','beklenenler','stokaz','indirimde','kullaniciUrunleri','kacanFirsatlar'); if($_GET['act'] && in_array($_GET['act'],$globalCatFilterArray) && $_GET['catID']) { $globalFilter = "showCatIDs like '%|".$_GET['catID']."|%' OR virtualCatIDs like ',%".$_GET['catID']."%,'"; } function captchaCode() { return md5($_SERVER['HTTP_HOST'].'sp12..test'); } function getRealIpAddr() { if (!empty($_SERVER['HTTP_CLIENT_IP'])) //check ip from share internet { $ip=$_SERVER['HTTP_CLIENT_IP']; } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) //to check ip is pass from proxy { $ip=$_SERVER['HTTP_X_FORWARDED_FOR']; } else { $ip=$_SERVER['REMOTE_ADDR']; } return $ip; } function clearStats() { mysql_query("delete from stats_gunluk where tarih < '".date('Y-m-d')."'"); mysql_query("delete from userLog where date < '".date("Y-m-d",mktime(0, 0, 0, date("m"),date("d")-30,date("Y")))."'"); mysql_query("delete from seolinks where active = 0 AND date < '".date("Y-m-d",mktime(0, 0, 0, date("m"),date("d")-15,date("Y")))."'"); mysql_query("delete from stats_IP where Tarih < '".date("Y-m-d",mktime(0, 0, 0, date("m"),date("d")-1,date("Y")))."'"); } $_SERVER['REMOTE_ADDR'] = getRealIpAddr(); if (!$siteTipi) { $siteTipi = 'GENEL'; switch($siteConfig['templateName']) { case "p-brown": case "shopindeedv2": case "mPrivate": $siteTipi = 'OZELSATIS'; break; case "mgroup": case "ayinfirsati": $siteTipi = 'GRUPSATIS'; break; case "s-yellow": case "ybba": $siteTipi = 'TEKURUN'; break; case "firsatStore": $siteTipi = 'GRUPSATIS'; break; } } if (!$siteConfig['cacheSuresi']) { foreach($_SESSION as $k=>$v) { if(!(stristr($k,'cache') === false)) { $_SESSION[$k] = ''; unset($_SESSION[$k]); } } } if(!$yonetimDizini) $yonetimDizini = '/secure/'; $_SESSION['yonetimDizini'] = $yonetimDizini; if(!$_GET['f'] || $_GET['f'] == 'users.php' || $_GET['f'] == 'profile.php') { if(isset($_GET['password']) && strlen($_GET['password']) < 30) { $_GET['real_password'] = $_GET['password']; $_GET['password'] = md5($_GET['password']); } if(isset($_POST['password']) && strlen($_POST['password']) < 30) { $_POST['real_password'] = $_POST['password']; $_POST['password'] = md5($_POST['password']); } if(isset($_POST['data_password'])) { $_POST['real_password'] = $_POST['data_password']; $_POST['data_password'] = md5($_POST['data_password']); } } if(!isset($_SESSION['lang'])) $_SESSION['lang'] = $siteDili; ?>$v) { if(!(stristr($k,'_') === false)) continue; if($arr[$k.'_'.$_SESSION['lang']]) $arr[$k] = $arr[$k.'_'.$_SESSION['lang']]; } return $arr; } if(!$_SESSION['lang'] || $_SESSION['lang'] == 'tr') $langPrefix = ''; else $langPrefix = '_'.$_SESSION['lang']; $aylar= array('',_lang_ocak,_lang_subat,_lang_mart,_lang_nisan,_lang_mayis,_lang_haziran,_lang_temmuz,_lang_agustos,_lang_eylul,_lang_ekim,_lang_kasim,_lang_aralik); ?>Access denied for user 'root'@'localhost' (using password: NO) Query :select degisimYuzde from banka where paymentModulURL like '%payment_havale.php%' order by seq limit 0,1