exit; } if (isset($_GET["EditTimeRule-time"])) { EditTimeRule_popup(); exit; } if (isset($_POST["EditTimeRule"])) { EditTimeRule_save(); exit; } if (isset($_POST["DeleteTimeRule"])) { EditTimeRule_delete(); exit; } if (isset($_POST["EnbleTimeRule"])) { EditTimeRule_enable(); exit; } page(); function EditTimeRule_js() { $page = CurrentPageName(); $tpl = new templates(); $ID = $_GET["ID"]; $RULEID = $_GET["RULEID"]; $title = "{edit_time_rule}:{$ID}"; if ($ID < 0) { $title = "{new_time_rule}"; } $title = $tpl->_ENGINE_parse_body($title); $html = "YahooWin2(646,'{$page}?EditTimeRule-popup=yes&ID={$ID}&RULEID={$RULEID}','{$title}')";
if(!$usersmenus->AsDansGuardianAdministrator){ $tpl=new templates(); $alert=$tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}'); echo "alert('$alert');"; die(); } if(isset($_GET["timerules-list"])){timerules_list();exit;} if(isset($_GET["EditTimeRule-js"])){EditTimeRule_js();exit;} if(isset($_GET["EditTimeRule-popup"])){EditTimeRule_popup();exit;} if(isset($_GET["EditTimeRule-template"])){EditTimeRule_template();exit;} if(isset($_POST["EditTimeRule-template"])){EditTimeRule_template();exit;} if(isset($_POST["EditTimeRule"])){EditTimeRule_save();exit;} if(isset($_POST["EnbleTimeRule"])){EditTimeRule_enable();exit;} if(isset($_POST["EditTimeRule-delete"])){EditTimeRule_delete();exit;} if(isset($_POST["EditTimeTemplate"])){EditTimeRule_template_save();exit;} if(isset($_GET["EditTimeRule-groups"])){EditTimeRule_groups();exit;} if(isset($_GET["EditTimeRule-groups-list"])){EditTimeRule_groups_list();exit;} if(isset($_POST["EditTimeRule-groups-add"])){EditTimeRule_groups_add();exit;} if(isset($_POST["EditTimeRule-groups-delete"])){EditTimeRule_groups_delete();exit;} rules(); function EditTimeRule_js(){ $page=CurrentPageName();