Пример #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["SquidWCCPL3Addr"])) {
    SquidWCCPL3Enabled();
    exit;
}
if (isset($_GET["wccp50"])) {
    wccp50();
    exit;
}
if (isset($_GET["js"])) {
    js();
    exit;
}
popup();
function js()
{
    $page = CurrentPageName();
    header("content-type: application/x-javascript");
Пример #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["SquidWCCPL3Enabled"])){SquidWCCPL3Enabled();exit;}
	if(isset($_GET["wccp50"])){wccp50();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();
	for($i=0;$i<255;$i++){