コード例 #1
0
    ini_set('error_reporting', E_ALL);
    ini_set('error_prepend_string', null);
    ini_set('error_append_string', null);
}
$usersmenus = new usersMenus();
if (!$usersmenus->AsPostfixAdministrator) {
    $tpl = new templates();
    echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');";
    die;
}
if (isset($_GET["item-js"])) {
    item_js();
    exit;
}
if (isset($_GET["item-popup"])) {
    item_tab();
    exit;
}
if (isset($_GET["item-form"])) {
    item_popup();
    exit;
}
if (isset($_POST["item-move"])) {
    item_move();
    exit;
}
if (isset($_POST["enabledauth"])) {
    item_auth_save();
    exit;
}
if (isset($_POST["zmd5"])) {
コード例 #2
0
if(isset($_GET["AddGroup-js"])){AddGroup_js();exit;}
if(isset($_GET["EditGroup-popup"])){EditGroup_popup();exit;}
if(isset($_GET["EditGroup-events"])){EditGroup_events();exit;}
if(isset($_GET["EditGroup-events-search"])){EditGroup_events_search();exit;}
if(isset($_POST["GroupName"])){EditGroup_save();exit;}
if(isset($_POST["DeleteTimeRule"])){EditTimeRule_delete();exit;}
if(isset($_POST["EnableGroup"])){EditGroup_enable();exit;}
if(isset($_POST["DeleteGroup"])){EditGroup_delete();exit;}
if(isset($_GET["acl-dynamic-virtual-form"])){item_acldyn_member();exit;}
if(isset($_GET["dynamic-acls-params"])){item_acldyn_params();exit;}
if(isset($_GET["authenticate_ip_ttl_form"])){authenticate_ip_ttl_form();exit;}


if(isset($_GET["items"])){items_js();exit;}
if(isset($_GET["items-list"])){items_list();exit;}
if(isset($_GET["AddItem-tab"])){item_tab();exit;}
if(isset($_GET["AddItem-js"])){item_popup_js();exit;}
if(isset($_GET["AddItem-popup"])){item_form();exit;}
if(isset($_GET["AddItem-import"])){item_form_import();exit;}
if(isset($_POST["item-import"])){item_import();exit;}
if(isset($_POST["item-pattern"])){item_save();exit;}
if(isset($_POST["EnableItem"])){item_enable();exit;}
if(isset($_POST["DeleteItem"])){item_delete();exit;}
if(isset($_GET["items-date"])){item_date();exit;}
if(isset($_GET["GroupType-button"])){GroupType_button();exit;}
if(isset($_GET["dynamic-acls-infos"])){Dynamic_acls_infos();exit;}
if(isset($_POST["group-params"])){EditGroup_params_save();exit;}
page(true);

function js(){
	header("content-type: application/x-javascript");