"; echo $_SERVER["REQUEST_URI"]."
"; echo $_SERVER["SCRIPT_NAME"];*/ include('./inc/config.inc.php'); include ('./class/mysql_db.class.php'); include ('./class/url.class.php'); include('./inc/function.inc.php'); /* START: kintamuju konvertavimas */ if ($_SERVER["REQUEST_METHOD"]=="POST") { while (list($key, $value) = each (${"_POST"})) { $irasas.= $key." = ".$value." | "; $GLOBALS[$key] = $value; } } else { while (list($key, $value) = each (${"_GET"})) { $irasas.= $key." = ".$value." | "; $GLOBALS[$key] = $value; } } /* END: kintamuju konvertavimas */ $languageKelias=$pkelias.'lt.php/'; /* inicializuojamas pilnas kelias */ $db = new db_class(); $urles = new urlas ($_SERVER["PATH_INFO"]); //$urles = new urlas ($patch); //echo $urles->sritis; include('./modules/str/class/str.class.php'); // prijungiama strukturos klase require('tpl/setup.php'); $smarty = new Smarty_JAD; $smarty->clear_all_cache(); /* patikrinama ar yra tokia sritis ir atliekami kreipimaisi i modulius :: Start :: */ $structure = new str($db,$urles->sritis,'sritis'); $sritis = $structure->strSarasas[0]['urlas']; // patikrinama ir nustatoma sritis $idSritis = $structure->strSarasas[0]['strid']; //nuskaitomas indentifikatorius $idParentas = $structure->strSarasas[0]['parent_id']; $pageInfo = $structure->strSarasas; $structure->strClose (); if ($idSritis>0) { /* skaitom kelia :: Start :: */ $structure = new str($db,$idSritis,'kelias'); $svKelias = $structure->strSarasas; $structure->strClose (); /* skaitom kelia :: End :: */ /* skaitomas vidinis srities meniu :: Start :: */ if ($idParentas>1) { $structure = new str($db,$idParentas,'pogrupis'); $vidinisMeniu = $structure->strSarasas; $structure->strClose (); $structure = new str($db,$idSritis,'pogrupis'); $vidinisMeniu2 = $structure->strSarasas; $structure->strClose (); } else { $structure = new str($db,$idSritis,'pogrupis'); $vidinisMeniu = $structure->strSarasas; $structure->strClose (); } /* skaitomas vidinis srities meniu :: End :: */ switch ($sritis) { case 'naujienos': $dlentele = $lentele_news; include ('./modules/news/news.public.php'); break; case 'publikacijos': $dlentele = $lentele_public; include ('./modules/news/news.public.php'); break; case 'galerija': include ('./modules/gallery/gallery.public.php'); break; case 'grupes': include ('./modules/grupes/grupes.public.php'); break; case 'vadovai': include ('./modules/grupes/vadovas.public.php'); break; default: /* statinis tekstas, html formato :: Start :: */ include ('./modules/txt/inc/txt.public.inc.php'); /* statinis tekstas, html formato :: End :: */ break; } } else { echo ''; } /* patikrinama ar yra tokia sritis ir atliekami kreipimaisi i modulius :: End :: */ $urles->urlasClose (); $db->dbclose(); ?>