コード例 #1
0
<?php
	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["status"])){status();exit;}
	if(isset($_GET["squid-general-status"])){general_status();exit;}
	if(isset($_GET["squid-status-stats"])){squid_status_stats();exit;}
	
	if(isset($_GET["squid-status-graphs"])){general_status_graphs();exit;}
	if(isset($_GET["squid-cache-flow-performance"])){general_status_cache_graphs();exit;}
	
	if(isset($_GET["squid-members-graphs"])){members_first_graph();exit;}
	if(isset($_GET["month-list-members"])){month_list_members();exit;}
	
	if(isset($_GET["day-consumption"])){day_section();exit;}
	if(isset($_GET["day-members"])){day_graphs();exit;}
	if(isset($_GET["day-left-menu"])){day_menu_left();exit;}
	if(isset($_GET['day-graphs-perform'])){day_graphs_perform();exit;}
	if(isset($_GET["day-users-search"])){day_user_search();exit;}
	if(isset($_GET["day-top-members"])){day_top_members();exit;}
	if(isset($_GET["day-top-member-site"])){day_top_member_sites();exit;}
	
	if(isset($_GET["website-details"])){website_details_js();exit;}
	if(isset($_GET["website-details-popup"])){website_details_popup();exit;}
	if(isset($_GET["family-site-details"])){website_details_familysite();exit;}
	
コード例 #2
0
if (!$GLOBALS["AS_ROOT"]) {
    $users = new usersMenus();
    if (!$users->AsWebStatisticsAdministrator) {
        die("Permission denied");
    }
}
if ($argv[1] == "squid-status-stats") {
    squid_status_stats();
    exit;
}
if (isset($_GET["status"])) {
    status();
    exit;
}
if (isset($_GET["squid-general-status"])) {
    general_status();
    exit;
}
if (isset($_GET["squid-status-stats"])) {
    squid_status_stats();
    exit;
}
if (isset($_GET["squid-status-graphs"])) {
    general_status_graphs();
    exit;
}
if (isset($_GET["status-graph-flow"])) {
    general_status_graphs_flow();
    exit;
}
if (isset($_GET["squid-cache-flow-performance"])) {