exit;
}
if (isset($_POST["schedule-enable"])) {
    AddNewSchedule_enable();
    exit;
}
if (isset($_POST["schedule-delete"])) {
    AddNewSchedule_delete();
    exit;
}
if (isset($_POST["schedule-run"])) {
    AddNewSchedule_run();
    exit;
}
if (isset($_GET["schedule-run-js"])) {
    task_run_js();
    exit;
}
if (isset($_POST["DisableSquidDefaultSchedule"])) {
    DisableSquidDefaultSchedule();
    exit;
}
if (isset($_GET["compile-settings-js"])) {
    compile_settings_js();
    exit;
}
if (isset($_GET["compile-settings-popup"])) {
    compile_settings_popup();
    exit;
}
if (isset($_GET["compile-settings-perform"])) {
if(!$usersmenus->AsDansGuardianAdministrator){
	$tpl=new templates();
	$alert=$tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}');
	echo "alert('$alert');";
	die();	
}

if(isset($_GET["search"])){search();exit;}
if(isset($_GET["AddNewSchedule-js"])){AddNewSchedule_js();exit;}
if(isset($_GET["AddNewSchedule-popup"])){AddNewSchedule_popup();exit;}
if(isset($_GET["explainthis"])){AddNewSchedule_explain();exit;}
if(isset($_POST["TimeDescription"])){AddNewSchedule_save();exit;}
if(isset($_POST["schedule-enable"])){AddNewSchedule_enable();exit;}
if(isset($_POST["schedule-delete"])){AddNewSchedule_delete();exit;}
if(isset($_POST["schedule-run"])){AddNewSchedule_run();exit;}
if(isset($_GET["schedule-run-js"])){task_run_js();exit;}

if(isset($_POST["DisableSquidDefaultSchedule"])){DisableSquidDefaultSchedule();exit;}

if(isset($_GET["compile-settings-js"])){compile_settings_js();exit;}
if(isset($_GET["compile-settings-popup"])){compile_settings_popup();exit;}
if(isset($_GET["compile-settings-perform"])){compile_settings_perform();exit;}
if(isset($_POST["Addefaults"])){Addefaults();exit;}
if(isset($_GET["Addefaults"])){Addefaults();exit;}

page();

function compile_settings_js(){
	header("content-type: application/x-javascript");
	$page=CurrentPageName();
	$tpl=new templates();