Пример #1
0
	include_once('ressources/class.users.menus.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($_POST["enable_snmp"])){enable_snmp();exit;}
	if(isset($_GET["mib-js"])){mib_js();exit;}
	if(isset($_GET["mib-popup"])){mib_popup();exit;}
	js();
	
	
	
function js(){
	$tpl=new templates();
	header("content-type: application/x-javascript");
	$title=$tpl->_ENGINE_parse_body("SNMP");
	$page=CurrentPageName();
	$html="YahooWin3('600','$page?popup=yes','$title');";
	echo $html;	
}

function mib_js(){
	$tpl=new templates();
Пример #2
0
    exit;
}
if (isset($_GET["popup"])) {
    popup();
    exit;
}
if (isset($_POST["enable_snmp"])) {
    enable_snmp();
    exit;
}
if (isset($_GET["mib-js"])) {
    mib_js();
    exit;
}
if (isset($_GET["mib-popup"])) {
    mib_popup();
    exit;
}
js();
function js()
{
    $tpl = new templates();
    header("content-type: application/x-javascript");
    $title = $tpl->_ENGINE_parse_body("SNMP");
    $page = CurrentPageName();
    $html = "YahooWin3('600','{$page}?popup=yes','{$title}');";
    echo $html;
}
function mib_js()
{
    $tpl = new templates();