Exemple #1
0
	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();
	}	
	
	include_once ("ressources/jpgraph-3/src/jpgraph.php");
	include_once ("ressources/jpgraph-3/src/jpgraph_pie.php");
	include_once ("ressources/jpgraph-3/src/jpgraph_pie3d.php");
	
	
	if(isset($_GET["update-kav"])){apply_kavupdate();exit;}
	if(isset($_GET["update-kav-now"])){apply_kavupdate_perform();exit;}
	if(isset($_GET["update-kav-popup"])){apply_kavupdate_popup();exit;}
	if(isset($_GET["update-kav-logs"])){apply_kavupdate_logs();exit;}	
	
	
	if(isset($_GET["error-remote-appliance"])){error_remote_appliance();exit;}
	if(isset($_GET["error-remote-appliance-popup"])){error_remote_appliance_popup();exit;}
	
	if(isset($_GET["warn-enable-malware-patrol-js"])){error_malware_patrol_js();exit;}
	if(isset($_GET["warn-enable-malware-patrol-popup"])){error_malware_patrol_popup();exit;}
	if(isset($_GET["squid-nat-status"])){squid_nat_status();exit;}
	

	
	
Exemple #2
0
include_once 'ressources/class.artica.inc';
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;
}
include_once "ressources/jpgraph-3/src/jpgraph.php";
include_once "ressources/jpgraph-3/src/jpgraph_pie.php";
include_once "ressources/jpgraph-3/src/jpgraph_pie3d.php";
if (isset($_GET["update-kav"])) {
    apply_kavupdate();
    exit;
}
if (isset($_GET["update-kav-now"])) {
    apply_kavupdate_perform();
    exit;
}
if (isset($_GET["update-kav-popup"])) {
    apply_kavupdate_popup();
    exit;
}
if (isset($_GET["update-kav-logs"])) {
    apply_kavupdate_logs();
    exit;
}
if (isset($_GET["kav-license"])) {