if ($invalid) { header("location:" . $root_path . "language/" . $lang . "/lang_" . $lang . "_invalid-access-warning.php"); exit; } if ($mode == 'search' && $keyword != '' && $keyword != '%') { if ($keyword == "*%*") { $keyword = "%"; } include $root_path . 'include/inc_products_search_mod.php'; } elseif ($mode == 'save' && $bestellnum != '' && $artikelname != '') { //include($root_path.'include/inc_products_ordercatalog_save.php'); $saveok = $product_obj->SaveCatalogItem($_GET, $cat); } if ($mode == 'delete' && $keyword != '') { //include($root_path.'include/inc_products_ordercatalog_delete.php'); $delete_ok = $product_obj->DeleteCatalogItem($keyword, $cat); } # Prepare title $sTitle = "{$title}::{$LDCatalog}::"; $buff = $dept_obj->LDvar($dept_nr); if (isset(${$buff}) && !empty(${$buff})) { $sTitle = $sTitle . ${$buff}; } else { $sTitle = $sTitle . $dept_obj->FormalName($dept_nr); } # Start Smarty templating here /** * LOAD Smarty */ # Note: it is advisable to load this after the inc_front_chain_lang.php so # that the smarty script can use the user configured template theme