isIG()) { die("IG disabled for admin tool!"); } $DBc = ryDB::getInstance("ahufler"); function mkn($x) { if($x == null || strtolower($x) == "null") { return "NULL"; } else { return "'".mysql_real_escape_string($x)."'"; } } $c = "
";
if($_USER->isAdmin()) {
$c .= "Admin "; } if($_USER->isCSR()) { $c .= "CSR "; } #$c .= ach_render_menu(); $c .= " |
"; if($_REQUEST['mode'] == "menu" && $_USER->isAdmin()) { $menu = new AdmMenu(false); if($_REQUEST['act'] == "insert") { $n = new AdmMenuNode(array(),null); $n->setID(null); $n->setDev(1); $n->setName($_REQUEST['acl_name']); $n->setImage($_REQUEST['ac_image']); $n->setParentID($_REQUEST['ac_parent']); $menu->insertNode($n); } if($_REQUEST['act'] == "delete") { $menu->removeNode($_REQUEST['ac_id']); } if($_REQUEST['act'] == "update") { $menu->updateNode($_REQUEST['ac_id'],array("acl_name"=>$_REQUEST['acl_name'],"ac_image"=>$_REQUEST['ac_image'])); } if($_REQUEST['act'] == "dev") { $curr = $menu->getNode($_REQUEST['ac_id']); $curr->setInDev(($_REQUEST['state'] != 1)); } $c .= adm_render_menu($menu); } #$c .= ach_render_content(); $c .= " |