Пример #1
0
    exit;
}
if (isset($_GET["popup"])) {
    popup();
    exit;
}
if (isset($_GET["params"])) {
    params();
    exit;
}
if (isset($_POST["DisableArticaProxyStatistics"])) {
    Save();
    exit;
}
if (isset($_POST["EnableProxyLogHostnames"])) {
    Save2();
    exit;
}
js();
function js()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $title = $tpl->_ENGINE_parse_body("{ARTICA_STATISTICS}");
    $html = "YahooWin4('725','{$page}?popup=yes','{$title}');";
    echo $html;
}
function popup()
{
    $tpl = new templates();
    $page = CurrentPageName();
	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["params"])){params();exit;}
	if(isset($_POST["DisableArticaProxyStatistics"])){Save();exit;}
	if(isset($_POST["EnableProxyLogHostnames"])){Save2();exit;}
	
js();


function js(){
	$page=CurrentPageName();
	$tpl=new templates();
	$title=$tpl->_ENGINE_parse_body("{ARTICA_STATISTICS}");
	$html="YahooWin4('725','$page?popup=yes','$title');";	
	echo $html;
	}

function popup(){
	
	$tpl=new templates();