예제 #1
0
	if($user->SQUID_INSTALLED==false){
		if(!$user->WEBSTATS_APPLIANCE){
			$tpl=new templates();
			echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
			die();exit();
		}
	}
	
	if($user->AsSquidAdministrator==false){
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}	
	
	if(isset($_POST["wccp2_enabled"])){wccp2_save();exit;}
	
popup();	



function popup(){
	$squid=new squidbee();
	$page=CurrentPageName();
	$tpl=new templates();
	$sock=new sockets();
	$WCCP=1;
	$arrayParams=unserialize(base64_decode($sock->getFrameWork("squid.php?compile-list=yes")));
	$t=time();
	$ip=new networking();
	$ipsH=$ip->ALL_IPS_GET_ARRAY();
예제 #2
0
if ($user->SQUID_INSTALLED == false) {
    if (!$user->WEBSTATS_APPLIANCE) {
        $tpl = new templates();
        echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');";
        die;
        exit;
    }
}
if ($user->AsSquidAdministrator == false) {
    $tpl = new templates();
    echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');";
    die;
    exit;
}
if (isset($_POST["wccp2_enabled"])) {
    wccp2_save();
    exit;
}
popup();
function popup()
{
    $squid = new squidbee();
    $page = CurrentPageName();
    $tpl = new templates();
    $sock = new sockets();
    $WCCP = 1;
    $arrayParams = unserialize(base64_decode($sock->getFrameWork("squid.php?compile-list=yes")));
    $t = time();
    $ip = new networking();
    $ipsH = $ip->ALL_IPS_GET_ARRAY();
    $SquidWCCPEnabled = $sock->GET_INFO("SquidWCCPEnabled");