include_once 'ressources/class.updateutility2.inc';
include_once 'ressources/class.ini.inc';
include_once 'ressources/class.system.network.inc';
$users = new usersMenus();
if (!$users->AsSystemAdministrator) {
    $tpl = new templates();
    $ERROR_NO_PRIVS = $tpl->javascript_parse_text("{ERROR_NO_PRIVS}");
    echo "alert('{$ERROR_NO_PRIVS}');";
    return;
}
if (isset($_GET["js"])) {
    js();
    exit;
}
if (isset($_GET["web-events"])) {
    webevents_list();
    exit;
}
events_table();
function js()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $title = $tpl->_ENGINE_parse_body("{webfiltering_service_events}");
    $html = "LoadWinORG('1000','{$page}','{$title}')";
    echo $html;
}
function events_table()
{
    $page = CurrentPageName();
    $tpl = new templates();
Beispiel #2
0
	$users=new usersMenus();
	if(!$users->AsSystemAdministrator){
		$tpl=new templates();
		$ERROR_NO_PRIVS=$tpl->javascript_parse_text("{ERROR_NO_PRIVS}");
		echo "alert('$ERROR_NO_PRIVS');";return;
	}

	if(isset($_GET["settings"])){settings();exit;}
	if(isset($_GET["products"])){products_tabs();exit;}
	if(isset($_GET["product-section"])){product_section();exit;}
	if(isset($_POST["ProductSubKey"])){product_section_save();exit;}
	if(isset($_POST["UpdateUtilityAllProducts"])){UpdateUtilitySave();exit;}
	if(isset($_GET["status"])){status();exit;}
	if(isset($_POST["UpdateUtilityStartTask"])){UpdateUtilityStartTask();exit;}
	if(isset($_GET["webevents"])){webevents_table();exit;}
	if(isset($_GET["web-events"])){webevents_list();exit;}
	if(isset($_GET["dbsize"])){dbsize();exit;}
	if(isset($_GET["js"])){js();exit;}
	if(isset($_GET["freewebs"])){frewebslist();exit;}
	if(isset($_GET["add-freeweb-js"])){add_freeweb_js();exit;}
	
tabs();

function js(){
	header("content-type: application/x-javascript");
	$page=CurrentPageName();
	$tpl=new templates();
	
	$html="YahooWin2('920','$page','UpdateUtility');";
	echo $html;
}