Define_Menupontok_Listazasa($PHP_inc); $Kapcs_Tomb = array('host' => $K_Tomb["host"], 'user' => $K_Tomb["user"], 'pass' => $K_Tomb["pass"], 'port' => $K_Tomb["port"], 'database' => $Adatbazis, 'prefix' => ''); #Adatbázis kapcsolat $database = new Atlanta_Adatbazis($Kapcs_Tomb); $kapcsolat = $database->FKapcs(); $Mysql = new Atlanta_MySQL($Adatbazis, $Adatbazis_Tabla, $database); if(ADMIN_SITE && $_SESSION[SESS_BUID]["USERID"] == VENDEG) { $_GET['page'] = 'bejelentkezes'; } $Atlanta_Header = new Atlanta_Header(array()); $Meta = &$Atlanta_Header; $_GET["ln"] = (isset($_GET["ln"]))?$_GET["ln"]:'hu'; $_GET["page"] = $page = (isset($_GET["page"])) ? $_GET["page"] : 'fooldal'; $Description = ''; $MetaProperty = ' '; $PageTitle = ' '; if (isset($_GET["cid"])) { $item = $Mysql->searchPk('content', (int)$_GET["cid"], true); $item->$_GET["ln"] = $item->Cim; $_GET["menu"] = $_GET["menu_id"] = $item->Menu; } elseif($_GET["page"] == 'fooldal') { $item = $Mysql->searchFirst('menu', array('where' => 'Tipusa = "'.$Mysql->MySQLEscapeString($_GET['page']).'"'), true); $_GET["modul"] = $item->Modul; $_GET["menu_id"] = $_GET["menu"] = $item->Menu_ID; } if(isset($_GET['permalink'])) { $item = $Mysql->searchFirst('menu', array('where' => 'Permalink = "'.$Mysql->MySQLEscapeString($_GET['permalink']).'"'), true); if (isset($item)) { $_GET["modul"] = $item->Modul; $_GET["page"] = $item->Tipusa; $_GET["menu_id"] = $_GET["menu"] = $item->Menu_ID; $PageTitle = utf8_encode($item->$_GET['ln']); $Description = Atlanta_Static::HTMLToString(utf8_encode($PageTitle)); $MetaProperty = ' '; } } if(isset($_GET["page"]) && $_GET["page"] == 'logout') { session_unset(); unset($_GET["page"]); $admin = ADMIN_SITE ? 'admin/' : ''; header('Location: '.HTTPPATH.$admin.'index.php'); } if (class_exists($_GET["modul"])): $ClassName = $_GET["modul"]; $LoadClass = new $ClassName(); if (method_exists($LoadClass,"HeaderTitle")): $PageTitle = $LoadClass->HeaderTitle($database, $Adatbazis, $Adatbazis_Tabla); unset($LoadClass); unset($ClassName); else: #print $Define_Menupontok[$_GET["modul"]][$_GET["page"]]; endif; unset($LoadClass); unset($ClassName); else: if(isset($Define_Menupontok[$_GET["modul"]]) && isset($Define_Menupontok[$_GET["modul"]][$_GET["page"]])): $PageTitle = $Define_Menupontok[$_GET["modul"]][$_GET["page"]]; endif; endif; $PageTitle = Atlanta_Static::HTMLToString($PageTitle); #$_GET["modul"] #--------------------------- #META tömb $Meta->Add('charset', 'utf-8'); /********* TITLE *********/ Function Description($String){return substr(str_replace(array('"','<','>',' ','&'),array(' ',' ',' ',' ','&'),strip_tags($String)),0,150);} $Meta->Add('description', 'Simplex Hungary'); $Meta->Add('title', $PageTitle.' - Simplex Hungary - KOMPLEX VAGYONVÉDELMI SZOLGÁLTATÁSOK'); /********* KEYWORDS *********/ $Meta->Add('keywords', ''); $Meta->Add('favicon', 'favicon.ico'); $Meta->Add('author', 'Pásztor Attila'); $Meta->Add('copyright', 'Pásztor Attila (c) 2009 - '. date('Y')); $Meta->Add('robots', 'all'); $Meta->Add('language', 'hu'); $jsList = $cssList = array( $_GET["page"] ,'galeria_group' , str_replace('atlanta_', '', $_GET["modul"]) ); for($I = 0; $I < count($Define->Define_Module); $I++): $classModule = str_replace('atlanta_', '', strtolower(get_class($Define->Define_Module[$I]))); $cssList[] = $classModule; $jsList[] = $classModule; endfor; $page_css = Atlanta_Static::CssArray(array(),$cssList); $browser = Atlanta_Static::BrowserInfo(); $ieHack = ''; $nemTamogatottBongeszo = false; if ($browser['browser'] == 'MSIE' && ((int)$browser['version']) <= 10) { $page_css[] = STYLE_URL.'ie-hack.css'; $ieHack = 'ie ie'.((int)$browser['version']); $nemTamogatottBongeszo = ((int)$browser['version']) <= 8; } foreach($page_css as $k => $css) $page_css[$k] = str_replace(HTTPPATH,'//',$css); $Meta->Add('style_url', array( HTTPPATH."min/?g=css-$minDate" , Minify_getUri($page_css) )); $page_js_site = Atlanta_Static::JsArray(array(),$jsList); $page_js = array(); $page_js[] = JAVASCRIPT_URL.'function.js'; $page_js[] = JAVASCRIPT_URL.'ac-custom.js'; foreach($page_js as $k => $js) $page_js[$k] = str_replace(HTTPPATH,'//',$js); foreach($page_js_site as $k => $js) $page_js_site[$k] = str_replace(HTTPPATH,'//',$js); $Meta->Add('js_url', array( (ADMIN_SITE ? HTTPPATH."/includes/js/jquery-1.7.2.min.js" : HTTPPATH."/includes/js/jquery-1.8.3.min.js") ,HTTPPATH."min/?g=jquery-$minDate" ,'https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false' #,ADMIN_SITE ? HTTPPATH."min/?g=jquery-$minDate" : '' ,HTTPPATH.'includes/js/function.js' ,Minify_getUri($page_js_site) #,ADMIN_SITE ? Minify_getUri($page_js) : '' ,ADMIN_SITE ? HTTPPATH.'includes/js/ckeditor/ckeditor.js': '' ,ADMIN_SITE ? HTTPPATH.'includes/js/ckeditor/adapters/jquery.js':'' ) ); #--------------------------- Atlanta_Static::W_Begin($Meta->ReturnHeader(),$BTomb = array()); switch($_GET["page"]) { case 'regisztracio': case 'bejelentkezes': case 'adatlap': $_GET["modul"] = 'atlanta_user'; break; } print $MetaProperty; ?>