Example #1
0
include_once 'ressources/class.status.inc';
include_once 'ressources/class.artica.graphs.inc';
$users = new usersMenus();
if (!$users->AsWebStatisticsAdministrator) {
    die;
}
if (isset($_GET["tabs"])) {
    tabs();
    exit;
}
if (isset($_GET["popup"])) {
    popup();
    exit;
}
if (isset($_POST["hostname"])) {
    save_hostname();
    exit;
}
if (isset($_GET["status"])) {
    status();
    exit;
}
if (isset($_GET["status-list"])) {
    status_list();
    exit;
}
if (isset($_POST["delete-file"])) {
    delete_file();
    exit;
}
if (isset($_POST["scan-now"])) {
Example #2
0
<?php
if(isset($_GET["verbose"])){$GLOBALS["VERBOSE"]=true;ini_set('display_errors', 1);ini_set('error_reporting', E_ALL);ini_set('error_prepend_string',null);ini_set('error_append_string',null);}
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.squid.inc');
	include_once('ressources/class.status.inc');
	include_once('ressources/class.artica.graphs.inc');
	
	$users=new usersMenus();
	if(!$users->AsWebStatisticsAdministrator){die();}
	
	if(isset($_GET["tabs"])){tabs();exit;}
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_POST["hostname"])){save_hostname();exit;}
	if(isset($_GET["status"])){status();exit;}
	if(isset($_GET["status-list"])){status_list();exit;}
	if(isset($_POST["delete-file"])){delete_file();exit;}
	if(isset($_POST["scan-now"])){scan_now();exit;}
	if(isset($_GET["test-nas-popup"])){test_nas_popup();exit;}
	if(isset($_GET["test-nas-js"])){test_nas_js();exit;}
	if(isset($_POST["import-now"])){import_now();exit;}
	if(isset($_GET["events"])){events();exit;}
	if(isset($_POST["delete-all"])){delete_all();exit;}
js();

function test_nas_js(){
	header("content-type: application/x-javascript");
	$page=CurrentPageName();
	$tpl=new templates();
	$title=$tpl->_ENGINE_parse_body("{test_connection}");
	echo "YahooWin3('650','$page?test-nas-popup=yes','$title');";