exit; } if (isset($_GET["month"])) { today(); exit; } if (isset($_GET["users-table"])) { users_table(); exit; } if (isset($_GET["top-users"])) { top_users(); exit; } if (isset($_GET["top-hits"])) { top_hits(); exit; } js(); function js() { $page = CurrentPageName(); $domain = $_GET["domain"]; $html = "\n\t\n\t\tfunction WebSiteStatisticsLoad(){\n\t\t\tYahooWin4('750','{$page}?popup={$domain}','{$domain}');\n\t\t}\n\t\n\t\n\tWebSiteStatisticsLoad();"; echo $html; } function top_hits() { $dansguardian_events = "dansguardian_events_" . date('Ym'); $sql = "SELECT COUNT( ID ) AS tcount, uri FROM {$dansguardian_events} WHERE \nsitename = '{$_GET["top-hits"]}' GROUP BY uri ORDER BY tcount DESC LIMIT 0 , 50"; $html = "\n<p style='font-size:14px'>{SQUID_TOP_HITS_STAT_EXPLAIN}</p>\n\n<table style='width:100%'>\n<tr>\n\t<th colspan=2>{uri}</th>\n\t<th colspan=2>{hits}</th>\n</tr>\n";
$user=new usersMenus(); if(!$user->AsSquidAdministrator){ $tpl=new templates(); echo "alert('".$tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');"; exit; } if(isset($_GET["popup"])){popup();exit;} if(isset($_GET["today"])){today();exit;} if(isset($_GET["week"])){today();exit;} if(isset($_GET["month"])){today();exit;} if(isset($_GET["users-table"])){users_table();exit;} if(isset($_GET["top-users"])){top_users();exit;} if(isset($_GET["top-hits"])){top_hits();exit;} js(); function js(){ $page=CurrentPageName(); $domain=$_GET["domain"]; $html=" function WebSiteStatisticsLoad(){ YahooWin4('750','$page?popup=$domain','$domain'); }