Пример #1
0
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.groups.inc');
	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->AsWebStatisticsAdministrator==false){
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}	
	if(isset($_GET["status-sarg"])){sarg_status();exit;}
	if(isset($_POST["EnableSargGenerator"])){EnableSargGenerator_unique_save();exit;}
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_GET["status"])){status();exit;}
	if(isset($_GET["sarg-freeweb"])){freeweb();exit;}
	if(isset($_GET["params"])){parameters();exit;}
	if(isset($_GET["topsites_num"])){parameters_save();exit;}
	
	if(isset($_GET["sarg-report-type"])){parameters_reports();exit;}
	
	
	
	if(isset($_GET["sarg-reports"])){sarg_reports();exit;}
	if(isset($_GET["report_type"])){sarg_reports_add();exit;}
	if(isset($_GET["delete_report_type"])){sarg_reports_del();exit;}
	
Пример #2
0
include_once 'ressources/class.ldap.inc';
include_once 'ressources/class.users.menus.inc';
include_once 'ressources/class.groups.inc';
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->AsWebStatisticsAdministrator == false) {
    $tpl = new templates();
    echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');";
    die;
    exit;
}
if (isset($_GET["status-sarg"])) {
    sarg_status();
    exit;
}
if (isset($_POST["EnableSargGenerator"])) {
    EnableSargGenerator_unique_save();
    exit;
}
if (isset($_GET["popup"])) {
    popup();
    exit;
}
if (isset($_GET["status"])) {
    status();
    exit;
}
if (isset($_GET["sarg-freeweb"])) {