Пример #1
0
	header("Pragma: no-cache");	
	header("Expires: 0");
	header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
	header("Cache-Control: no-cache, must-revalidate");	
	$user=new usersMenus();
	if(!$user->AsSquidAdministrator){
		$tpl=new templates();
		echo "alert('".$tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		exit;
		
	}
	
	
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_GET["SelectDansGuardianExceptionipList"])){echo FindComputerByIP();exit;}
	if(isset($_GET["AddDansGuardianExceptionipList"])){AddDansGuardianExceptionipList();exit;}
	if(isset($_GET["ExceptionipListRefresh"])){echo ComputersList();exit;}
	if(isset($_GET["DelDansGuardianExceptionipList"])){DelDansGuardianExceptionipList();exit;}
	js();
	
	
function js(){
	
$page=CurrentPageName();
$tpl=new templates();

$prefix=str_replace(".","_",$page);
$title=$tpl->_ENGINE_parse_body("{black_ip_group}");
$html="
var {$prefix}timerID  = null;
var {$prefix}timerID1  = null;
Пример #2
0
$user = new usersMenus();
if (!$user->AsSquidAdministrator) {
    $tpl = new templates();
    echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');";
    exit;
}
if (isset($_GET["popup"])) {
    popup();
    exit;
}
if (isset($_GET["SelectDansGuardianExceptionipList"])) {
    echo FindComputerByIP();
    exit;
}
if (isset($_GET["AddDansGuardianExceptionipList"])) {
    AddDansGuardianExceptionipList();
    exit;
}
if (isset($_GET["ExceptionipListRefresh"])) {
    echo ComputersList();
    exit;
}
if (isset($_GET["DelDansGuardianExceptionipList"])) {
    DelDansGuardianExceptionipList();
    exit;
}
js();
function js()
{
    $page = CurrentPageName();
    $tpl = new templates();