* Settings * * @since 2004-07-24 * @author Christian Ehret <*****@*****.**> */ $smartyType = "www"; include_once "../includes/default.inc.php"; $auth->is_authenticated(); include_once 'guestcategoryclass.inc.php'; $gcategory = new GuestCategory(); $smarty->assign("tpl_title", "Kategorieverwaltung"); $smarty->assign('tpl_nav', 'settings'); $smarty->assign('tpl_subnav', 'catsettings'); $smarty->assign('tpl_subnav2', 'category'); if ($request->GetVar('frm_catid', 'post') !== $request->undefined) { if ($request->GetVar('frm_action', 'post') == 'edit') { $smarty->assign('tpl_editid', $request->GetVar('frm_catid', 'post')); } else { if ($request->GetVar('frm_action', 'post') == 'addnew') { $smarty->assign('tpl_addnew', 'true'); } else { if ($request->GetVar('frm_action', 'post') == 'del') { $gcategory->del($request->GetVar('frm_catid', 'post')); } else { $check = $gcategory->saveupdate(); } } } } $smarty->assign('tpl_category', $gcategory->getall()); $smarty->display('category.tpl');