Exemplo n.º 1
0
    exit;
}
if (isset($_GET["last-events"])) {
    last_events();
    exit;
}
if (isset($_GET["query-menu"])) {
    query_menu();
    exit;
}
if (isset($_GET["popup-filter"])) {
    popup_filter();
    exit;
}
if (isset($_GET["Q_CLIENT"])) {
    saveFilter();
    exit;
}
if (isset($_GET["show-hits"])) {
    showhits();
    exit;
}
js();
function js()
{
    $tpl = new templates();
    $page = CurrentPageName();
    $title = $tpl->_ENGINE_parse_body("Squid {statistics}");
    $title2 = $tpl->_ENGINE_parse_body("{filter}");
    $html = "\n\t\tfunction SQUID_STATS_LOAD(){\n\t\t\tRTMMail(900,'{$page}?popup=yes','{$title}');\n\t\t}\n\t\t\n\t\tfunction SQUID_SYS_RELOAD(){\n\t\t\tRefreshTab('main_config_squid_stats');\n\t\t}\n\t\t\n\t\tfunction TableauFilter(){\n\t\t\tYahooWin2(600,'{$page}?popup-filter=yes','{$title2}');\n\t\t}\n\t\t\n\tvar x_SaveQueryFilter= function (obj) {\n\t\t\tvar results=obj.responseText;\n\t\t\tif(results.length>0){alert(results);}\n\t\t\tLoadAjax('squid_status_main','{$page}?last-events=yes');\n\t\t}\t\t\t\n\t\t\n\t\t\n\t\t  \n\t\tfunction SaveQueryFilter(){\n\t\t\tvar XHR = new XHRConnection();\n\t\t\tXHR.appendData('Q_CLIENT',document.getElementById('Q_CLIENT').value);\n\t\t\tXHR.appendData('Q_TIME',document.getElementById('Q_TIME').value);\n\t\t\tXHR.appendData('Q_EVENTS_NUM',document.getElementById('Q_EVENTS_NUM').value);\n\t\t\tdocument.getElementById('squid_status_main').innerHTML='<center style=\"width:100%\"><img src=img/wait_verybig.gif></center>';\n\t\t\tXHR.sendAndLoad('{$page}', 'GET',x_SaveQueryFilter);\t\n\n\t\t}\n\t\t\n\t\tfunction WebSiteStatistics(website){\n\t\t\tLoadjs('squid.website.stats.php?domain='+website);\n\t\t}\n\t\t\n\t\tfunction WebClientStatistics(user){\n\t\t\tLoadjs('squid.user.stats.php?user='+user);\n\t\t}\n\t\n\t\n\tSQUID_STATS_LOAD();";
    echo $html;
Exemplo n.º 2
0
		if(!$user->AsWebStatisticsAdministrator){
			$tpl=new templates();
			echo "alert('".$tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
			exit;
			
		}	
	}
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_GET["graph"])){echo graph();exit;}	
	if(isset($_GET["browsed"])){echo browsed_websites();exit;}
	if(isset($_GET["browsed-popup"])){echo browsed_websites_popup();exit;}
	if(isset($_GET["queries"])){queries();exit;}
	if(isset($_GET["last-events"])){last_events();exit;}
	if(isset($_GET["query-menu"])){query_menu();exit;}
	if(isset($_GET["popup-filter"])){popup_filter();exit;}
	if(isset($_GET["Q_CLIENT"])){saveFilter();exit;}
	if(isset($_GET["show-hits"])){showhits();exit;}
	

	
js();

function thumbnail_zoom_js(){
	$page=CurrentPageName();
	$html="YahooSearchUser('430','$page?thumbnail-zoom-popup={$_GET["thumbnail-zoom-js"]}','{$_GET["thumbnail-zoom-js"]}');";
	echo $html;
	
}
function thumbnail_zoom_popup(){
	$page=CurrentPageName();
	$html="