コード例 #1
0
    die;
}
if (isset($_GET["timerules-list"])) {
    timerules_list();
    exit;
}
if (isset($_GET["EditTimeRule-js"])) {
    EditTimeRule_js();
    exit;
}
if (isset($_GET["EditTimeRule-popup"])) {
    EditTimeRule_tabs();
    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();
コード例 #2
0
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.squid.inc');
	
	
$usersmenus=new usersMenus();
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;}