clear_all_cache(); $smarty->caching = true; $smarty->cache_lifetime = 60; $Caching = $siLANG."|".$ID."|".$KEYWORD."|".$SESS."|".$MANDANT_ID; if(!$smarty->is_cached("index.tpl", $Caching)) //Ist diese Seite schon gecacht?! { ///////////////////////////////////////// require_once("admin/config.php"); require_once("admin/lib/db_mysql.inc"); ///////////////////////////////////////// //lade default Sprache "de" if(strlen($siLANG) == 0) $siLANG = GetConfig("DefaultLanguage"); $db = new ps_db; $smarty->assign("ID", $ID); $smarty->assign("siLANG", $siLANG); $smarty->assign("SESS", $SESS); $smarty->assign("KEYWORD", $KEYWORD); //aktuelle MANDANTEN - ID laden $db->query("SELECT mandant.mandant_id FROM `mandant`,language WHERE mandant.language_id=language.id AND language.abk='".$siLANG."'"); $db->next_record(); $smarty->assign("MANDANT_ID", ($MANDANT_ID = $db->f("mandant_id"))); $MENUE = ""; if($ID != "") //Lade Welcher Menüpunkt aktiviert bzw. aufgeklappt ist! { $db->query("SELECT de.cat1, de.cat2, art.menue_id FROM article art, de_cms de WHERE de.aktiv='1' AND de.id=art.menue_id AND art.article_id='".$ID."' AND art.aktiv='1'"); if($db->next_record()) { $menue_id = $db->f("menue_id"); if($db->f("cat2") > 0) { $db->query("SELECT id FROM de_cms WHERE cat1='".$db->f("cat1")."' AND cat2='0'"); $db->next_record(); $open=$db->f("id"); } $MENUE = "&ID=".$menue_id.(($open != "") ? "&open=".$open : ""); } } //generiere die Links $smarty->assign("LinkHead", WebRoot."head.php?MANDANT_ID=".$MANDANT_ID."&siLANG=".$siLANG); $smarty->assign("LinkMenue", WebRoot."menue.php?MANDANT_ID=".$MANDANT_ID.$MENUE."&siLANG=".$siLANG); $smarty->assign("LinkFuss", WebRoot."fuss.php?MANDANT_ID=".$MANDANT_ID."&siLANG=".$siLANG); $smarty->assign("LinkBody", (($URL != "") ? $URL : WebRoot."main.php?PAGE=1&KEYWORD=".urlencode($KEYWORD)."&SESS=".$SESS."&ID=".$ID."&MANDANT_ID=".$MANDANT_ID."&siLANG=".$siLANG)); } //zeige template! $smarty->display("index.tpl", $Caching); ?>