Beispiel #1
0
include_once 'ressources/class.ini.inc';
include_once 'ressources/class.squid.inc';
include_once 'ressources/class.system.network.inc';
$user = new usersMenus();
if ($user->AsSquidAdministrator == false) {
    $tpl = new templates();
    echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');";
    die;
    exit;
}
if (isset($_GET["popup"])) {
    popup();
    exit;
}
if (isset($_GET["sizelimit"])) {
    sizelimit_popup();
    exit;
}
if (isset($_GET["WCCP"])) {
    WCCP_popup();
    exit;
}
if (isset($_GET["wccp2_enabled"])) {
    WCCP_SAVE();
    exit;
}
if (isset($_GET["http-safe-ports"])) {
    http_safe_ports_popup();
    exit;
}
if (isset($_GET["http-safe-ports-list"])) {
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.groups.inc');
	include_once('ressources/class.artica.inc');
	include_once('ressources/class.ini.inc');
	include_once('ressources/class.squid.inc');
	include_once('ressources/class.system.network.inc');

	$user=new usersMenus();
	if($user->AsSquidAdministrator==false){
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}
	
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_GET["sizelimit"])){sizelimit_popup();exit;}
	
	if(isset($_GET["WCCP"])){WCCP_popup();exit;}
	if(isset($_GET["wccp2_enabled"])){WCCP_SAVE();exit;}
	
	if(isset($_GET["http-safe-ports"])){http_safe_ports_popup();exit;}
	if(isset($_GET["http-safe-ports-list"])){http_safe_ports_list();exit;}
	if(isset($_GET["http-safe-ports-add"])){http_safe_ports_add();exit;}
	if(isset($_GET["http-safe-ports-del"])){http_safe_ports_del();exit;}
	
	
	if(isset($_GET["http-safe-ports-ssl"])){http_safe_ports_ssl_popup();exit;}
	if(isset($_GET["http-safe-ports-ssl-list"])){http_safe_ports_ssl_list();exit;}
	if(isset($_GET["http-safe-ports-ssl-add"])){http_safe_ports_ssl_add();exit;}
	if(isset($_GET["http-safe-ports-ssl-del"])){http_safe_ports_ssl_del();exit;}