error_reporting(1); ini_set('display_errors', 1); chdir('yonetim'); include 'yonetim/php/config.php'; chdir('../'); if(isset($_GET['ChangeLanguage'])){ setcookie('SeciliDil', $_GET['ChangeLanguage'], time() + (86400 * 30), '/', $_SERVER['SERVER_NAME']); header('Location: ' . $siteUrl); exit; } if(!isset($_COOKIE['SeciliDil'])){ setcookie('SeciliDil', 'tr', time() + (86400 * 30), '/', $_SERVER['SERVER_NAME']); header('Location: ' . $_SERVER['REQUEST_URI']); exit; }else{ if( !in_array($_COOKIE['SeciliDil'], array('tr', 'en','ru')) ){ setcookie('SeciliDil', 'tr', time() + (86400 * 30), '/', $_SERVER['SERVER_NAME']); header('Location: ' . $_SERVER['REQUEST_URI']); exit; } } $strDil = '_' . $_COOKIE['SeciliDil']; $lang = $_COOKIE['SeciliDil']; require_once 'lib.php'; $strMenuBaslikBreadChumb = ''; $strMenuBaslik = ''; $arrBulunanMenuIds = array(); $rowBulunanMenu = array(); $ustmenuid = 0; foreach($_GET['Page'] as $menu){ $menusql = db_query("select * from menus where menu_parentid = " . $ustmenuid); while($row = db_fetch_assoc($menusql)){ $aranan = libSeo($row['menu_title' . $strDil]); if($aranan == $menu ){ $ustmenuid = $row['menu_id']; $arrBulunanMenuIds[] = $row['menu_id']; $strMenuBaslikBreadChumb .= $row['menu_title' . $strDil] . ' / '; $strMenuBaslik = $row['menu_title' . $strDil]; $rowBulunanMenu = $row; } } } $strMenuBaslikBreadChumb = mb_substr($strMenuBaslikBreadChumb, 0, -3); $arrGaleri = array(); if($rowBulunanMenu['menu_id'] != ''){ $sql = db_query("SELECT * FROM gallery WHERE gallery_table = 'menus' AND gallery_tableid = " . $rowBulunanMenu['menu_id']); while($row = db_fetch_assoc($sql)){ $dosyaAdi = 'yonetim/upload/gallery/' . $row['gallery_table'] . '/' . $row['gallery_tableid'] . '/' . $row['gallery_id'] . '.jpg'; if(file_exists($dosyaAdi)){ $arrGaleri[$siteUrl . $dosyaAdi] = $row['gallery_title']; } } } ?>