示例#1
0
    exit;
}
if (isset($_GET["sieve-delete-master-rule"])) {
    sieve_delete_master_rule();
    exit;
}
if (isset($_GET["sieve-add-master-rule"])) {
    sieve_add_master_rule();
    exit;
}
if (isset($_GET["sieve-delete-rulename"])) {
    sieve_delete_rule();
    exit;
}
if (isset($_GET["sieve-add-master-name"])) {
    sieve_add_rulename();
    exit;
}
js();
function js()
{
    $tpl = new templates();
    if (!isset($_GET["uid"])) {
        $uid = $_SESSION["uid"];
    } else {
        $users = new usersMenus();
        $uid = $_GET["uid"];
        if (!$users->AsMailBoxAdministrator) {
            $title = $tpl->_ENGINE_parse_body("{ERROR_NO_PRIVS}");
            echo "alert('{$title}');";
            exit;
示例#2
0
if(isset($_GET["sieve-enable-rule"])){sieve_enable_rule();exit;}
if(isset($_GET["sieve-disable-rules"])){sieve_disable_rules();exit;}
if(isset($_GET["sieve-rule"])){sieve_rule();exit;}
if(isset($_GET["sieve-edit-rule"])){sieve_rule_form();exit;}
if(isset($_GET["sieve-edit-filter"])){sieve_edit_filter();exit;}
if(isset($_GET["sieve-edit-action"])){sieve_edit_action();exit;}
if(isset($_GET["sieve-save-action"])){sieve_save_action();exit;}
if(isset($_GET["sieve-delete-action"])){sieve_delete_action();exit;}
if(isset($_GET["sieve-delete-condition"])){sieve_delete_condition();exit;}
if(isset($_GET["change-condition-form"])){sieve_rule_conditions_form();exit;}
if(isset($_GET["change-action-form"])){sieve_rule_actions_form();exit;}
if(isset($_GET["change-resumes"])){echo sieve_rule_resumer($_GET["change-resumes"],$_GET["uid"]);exit;}
if(isset($_GET["sieve-delete-master-rule"])){sieve_delete_master_rule();exit;}
if(isset($_GET["sieve-add-master-rule"])){sieve_add_master_rule();exit;}
if(isset($_GET["sieve-delete-rulename"])){sieve_delete_rule();exit;}
if(isset($_GET["sieve-add-master-name"])){sieve_add_rulename();exit;}


js();



function js(){
	$tpl=new templates();
	if(!isset($_GET["uid"])){$uid=$_SESSION["uid"];}else{
		$users=new usersMenus();
		$uid=$_GET["uid"];
		if(!$users->AsMailBoxAdministrator){
			$title=$tpl->_ENGINE_parse_body("{ERROR_NO_PRIVS}");
			echo "alert('$title');";exit;
		}