예제 #1
0
    $GLOBALS["VERBOSE"] = true;
    ini_set('display_errors', 1);
    ini_set('error_reporting', E_ALL);
    ini_set('error_prepend_string', null);
    ini_set('error_append_string', null);
}
include_once 'ressources/class.templates.inc';
include_once 'ressources/class.ldap.inc';
include_once 'ressources/class.users.menus.inc';
include_once 'ressources/class.tcpip.inc';
include_once 'ressources/class.system.network.inc';
include_once 'ressources/class.main_cf.inc';
include_once 'ressources/class.mysql.inc';
$usersmenus = new usersMenus();
if (isset($_GET["mynet_ipfrom"])) {
    CalculCDR();
    exit;
}
if ($usersmenus->AsPostfixAdministrator == false) {
    header('location:users.index.php');
    exit;
}
if (isset($_GET["main"])) {
    switch_popup();
    exit;
}
if ($_GET["section"] == "BindInterfaceForm") {
    echo BindInterfaceForm();
    exit;
}
if ($_GET["section"] == "networkint") {
예제 #2
0
<?php
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.tcpip.inc');
	include_once('ressources/class.system.network.inc');
	include_once('ressources/class.main_cf.inc');
	
	
$usersmenus=new usersMenus();
if(isset($_GET["mynet_ipfrom"])){CalculCDR();exit;}
if($usersmenus->AsPostfixAdministrator==false){header('location:users.index.php');exit;}

if(isset($_GET["main"])){switch_popup();exit;}
if($_GET["section"]=="BindInterfaceForm"){echo BindInterfaceForm();exit;}
if($_GET["section"]=="networkint"){echo NetworkInterfacesForm();exit;}
if(isset($_GET["ReloadInterfaceTable"])){echo BindInterfaceTable();exit;}
if(isset($_GET["ReloadNetworkTable"])){echo mynetworks_table();exit;}


if(isset($_GET["POSTFIX_MULTI_INSTANCE_JS"])){POSTFIX_MULTI_INSTANCE_JS();exit;}
if(isset($_GET["EnablePostfixMultiInstance"])){POSTFIX_MULTI_INSTANCE_SAVE();exit;}
if(isset($_GET["inet_interface_add"])){inet_interface_add();exit;}
if(isset($_GET["PostfixAddMyNetwork"])){PostfixAddMyNetwork();exit;}
if(isset($_GET["PostFixDeleteMyNetwork"])){PostFixDeleteMyNetwork();exit;}
if(isset($_GET["PostfixDeleteInterface"])){PostfixDeleteInterface();exit;}
if(isset($_GET["ignore_mx_lookup_error"])){SaveDNSSettings();exit;}
if(isset($_GET["bind9infos"])){echo bind9infos();exit;}
if(isset($_GET["script"])){switch_script();exit;}
if(isset($_GET["popup"])){switch_popup();exit;}
if(isset($_GET["PostfixEnabledInBind9"])){bind9_save_enable();exit;}
예제 #3
0
	if(isset($_GET["malware-patrol-list"])){url_regex_MalwarePatrol_list();exit;}
	
	
	if($_GET["content"]=="auth-wl"){auth_whitelist_popup();exit;}
	if(isset($_GET["auth-wl-list"])){auth_whitelist_list();exit;}
	if(isset($_GET["auth-wl-add"])){auth_whitelist_add();exit;}
	if(isset($_GET["auth-wl-del"])){auth_whitelist_del();exit;}
	
	if($_GET["content"]=="auth-wl-useragents"){auth_whitelist_useragent_popup();exit;}
	if(isset($_GET["auth-wl-useragents-list"])){auth_whitelist_useragent_list();exit;}
	if(isset($_GET["auth-wl-add-useragents"])){auth_whitelist_useragent_add();exit;}
	if(isset($_GET["auth-wl-del-useragents"])){auth_whitelist_useragent_del();exit;}
	
	
	
	if(isset($_GET["addipfrom"])){CalculCDR();exit;}
	if(isset($_GET["add-ip-single"])){network_add_single();exit;}
	if(isset($_GET["SquidnetMaskCheckIP"])){network_calculate_cdir();exit;}
	
	
	
	if(isset($_GET["NetDelete"])){network_delete();exit;}
	if(isset($_GET["listenport"])){listen_port_save();exit;}
	if(isset($_GET["visible_hostname_save"])){visible_hostname_save();exit;}
	
	if(isset($_GET["ldap_auth"])){ldap_auth_save();exit;}
	if(isset($_GET["ntlm_auth"])){ldap_ntlm_auth_save();exit;}
	if(isset($_POST["EnableSquidExternalLDAP"])){ldap_external_auth_save();exit;}
	
	
	if(isset($_GET["nameserver"])){dns_add();exit();}