Exemple #1
0
    exit;
}
if (isset($_GET["members-js"])) {
    members_js();
    exit;
}
if (isset($_GET["members-tabs"])) {
    members_tabs();
    exit;
}
if (isset($_GET["members-popup"])) {
    members_popup();
    exit;
}
if (isset($_POST["members-delete"])) {
    members_delete();
    exit;
}
if (isset($_POST["serviceport"])) {
    accounts_save();
    exit;
}
if (isset($_POST["username"])) {
    members_save();
    exit;
}
if (isset($_GET["accounts-search"])) {
    accounts_search();
    exit;
}
if (isset($_GET["members-accounts"])) {
	if(isset($_GET["parameters"])){global_parameters();exit;}
	if(isset($_POST["DisableAnyCache"])){global_parameters_save();exit;}
	
	
	if(isset($_GET["tabs"])){tabs();exit;}
	if(isset($_GET["main-subrules"])){rules();exit;}
	if(isset($_GET["rules-search"])){rules_search();exit;}
	if(isset($_GET["rule-js"])){rules_js();exit;}
	if(isset($_GET["subrules-tabs"])){subrules_tabs();exit;}
	if(isset($_POST["rule-enable"])){subrules_enable();exit;}
	if(isset($_POST["subrule-id"])){subrules_save();exit;}
	if(isset($_GET["rules-tabs"])){rules_tabs();exit;}
	if(isset($_GET["rules-popup"])){rules_popup();exit;}
	
	
	if(isset($_POST["rule-delete"])){members_delete();exit;}
	
	
	if(isset($_POST["serviceport"])){accounts_save();exit;}
	if(isset($_POST["username"])){members_save();exit;}
	if(isset($_GET["accounts-search"])){accounts_search();exit;}
	if(isset($_GET["members-accounts"])){accounts();exit;}
	if(isset($_GET["account-js"])){accounts_js();exit;}
	if(isset($_GET["accounts-js"])){accounts_js();exit;}
	if(isset($_GET["accounts-popup"])){accounts_popup();exit;}
	if(isset($_POST["accounts-delete"])){accounts_delete();exit;}
	
js();
// main_cache_rules

function js(){
Exemple #3
0
	
	
	$user=new usersMenus();
	if($user->AsPostfixAdministrator==false){
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}
	
	if(isset($_GET["tabs"])){tabs();exit;}
	if(isset($_GET["status"])){status();exit;}
	if(isset($_GET["members"])){members();exit;}
	if(isset($_GET["members-add-popup"])){members_add_popup();exit;}
	if(isset($_POST["members-save"])){members_add_save();exit;}
	if(isset($_GET["members-list"])){members_list();exit;}
	if(isset($_GET["members-delete"])){members_delete();exit;}
	if(isset($_GET["members-enable"])){members_enable();exit;}
	
	
	if(isset($_GET["EnableVIPTrack"])){EnableVIPTrackSave();exit;}	
	if(isset($_GET["VIPTrackLastHour"])){ScheduleVIPTrackSave();exit;}
	
	if(isset($_GET["GenerateReportsNow"])){GenerateReportsNow();exit;}
	
	if(isset($_GET["db-status"])){dbstatus();exit;}
	
	
	
js();


$users=new usersMenus();
if(!$users->AsHotSpotManager){die();}


if(isset($_GET["content"])){content();exit;}
if(isset($_GET["tabs"])){tabs();exit;}
if(isset($_GET["sessions"])){sessions();exit;}
if(isset($_GET["sessions-items"])){sessions_items();exit;}
if(isset($_POST["delete-session"])){sessions_remove();exit;}

if(isset($_GET["members"])){members();exit;}
if(isset($_GET["members-items"])){members_items();exit;}
if(isset($_POST["EnableMember"])){members_enable();exit;}
if(isset($_POST["DeleteMember"])){members_delete();exit;}
if(isset($_GET["uid"])){member_popup();exit;}
if(isset($_POST["uid"])){members_save();exit;}
if(isset($_GET["ttl"])){members_ttl();exit;}
if(isset($_POST["uid-ttl"])){members_ttl_save();exit;}
if(isset($_GET["mysql-settings"])){mysql_settings();exit;}
if(isset($_GET["ttl-js"])){ttl_js();exit;}

if(isset($_GET["delete-session-js"])){delete_session_js();exit;}
if(isset($_POST["HotSpotAutoRegisterWebMail"])){mysql_settings_save();exit;}


main_page();

function main_page(){
	$page=CurrentPageName();