run('SET NAMES Latin2'); require_once(MODUL_PATH.'moduls.php'); require_once('index_sessions.php'); $q = (empty($_REQUEST["q"])) ? null : $_REQUEST["q"]; $URI = (empty($_REQUEST["q"])) ? null : split("/", $_REQUEST["q"]); // Konstansok betöltése $constants = array(); $itemsDB = mysql_query("SELECT constantCode, value FROM constants", $dbi); for ($i=0; $i0) { $articleData = mysql_fetch_array($articleDB); if ($articleData["meta_title"]!='') $constants["tit"].= ' '.$articleData["meta_title"]; if ($articleData["meta_keywords"]!='') $constants["key"].= ' '.$articleData["meta_keywords"]; if ($articleData["meta_description"]!='') $constants["des"].= ' '.$articleData["meta_description"]; } } // Galériához kapcsolt opcionális meta betöltése (ha van) if ( ($URI[0]=='zseton_kollekciok') or ($URI[0]=='zseton_tipusok') ) { $galleryID = str_replace('.html', '', $URI[1]); $galleryDB = mysql_query("SELECT * FROM galleries WHERE galleryID=$galleryID",$dbi); if (mysql_num_rows($galleryDB)>0) { $galleryData = mysql_fetch_array($galleryDB); if ($galleryData["meta_title"]!='') $constants["tit"].= ' '.$galleryData["meta_title"]; if ($galleryData["meta_keywords"]!='') $constants["key"].= ' '.$galleryData["meta_keywords"]; if ($galleryData["meta_description"]!='') $constants["des"].= ' '.$galleryData["meta_description"]; } } ?> <? echo $constants["tit"]; ?> " /> " /> " /> " /> " /> " />