コード例 #1
0
	include_once('ressources/class.system.nics.inc');
	include_once('ressources/class.maincf.multi.inc');
	include_once('ressources/class.tcpip.inc');
	
		$usersmenus=new usersMenus();
		if($usersmenus->AsSystemAdministrator==false){exit;}
		if(isset($_GET["tabs"])){tabs();exit;}
		if(isset($_GET["status"])){status();exit;}
		if(isset($_POST["EnableSnort"])){EnableSnort();exit;}
		if(isset($_GET["snort-status"])){snort_status();exit;}
		if(isset($_GET["params"])){params();exit;}
		if(isset($_GET["events"])){events();exit;}
		if(isset($_GET["snort-query"])){snort_query();exit;}
		if(isset($_GET["snort-query-search"])){snort_query_search();exit;}
		if(isset($_GET["events-js"])){events_js();exit;}
		if(isset($_POST["SnortReconfigure"])){SnortReconfigure();exit;}
		
start();

function events_js(){
	$page=CurrentPageName();
	echo "
	AnimateDiv('BodyContent');
	$('#BodyContent').load('$page?events=yes&zoom=yes');";
	
}

function start(){
	$width="780px";
	if(isset($_GET["newinterface"])){$newinterface="&newinterface=yes";$width="100%";}
	$page=CurrentPageName();
コード例 #2
0
    exit;
}
if (isset($_GET["snort-query"])) {
    snort_query();
    exit;
}
if (isset($_GET["snort-query-search"])) {
    snort_query_search();
    exit;
}
if (isset($_GET["events-js"])) {
    events_js();
    exit;
}
if (isset($_POST["SnortReconfigure"])) {
    SnortReconfigure();
    exit;
}
start();
function events_js()
{
    $page = CurrentPageName();
    echo "\n\tAnimateDiv('BodyContent');\n\t\$('#BodyContent').load('{$page}?events=yes&zoom=yes');";
}
function start()
{
    $width = "780px";
    if (isset($_GET["newinterface"])) {
        $newinterface = "&newinterface=yes";
        $width = "100%";
    }