include_once 'ressources/class.rtmm.tools.inc';
include_once 'ressources/class.squid.inc';
include_once 'ressources/class.dansguardian.inc';
include_once 'ressources/class.squid.categorize.generic.inc';
header("Pragma: no-cache");
header("Expires: 0");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-cache, must-revalidate");
$user = new usersMenus();
if (!$user->AsWebStatisticsAdministrator) {
    $tpl = new templates();
    echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . ");";
    exit;
}
if (isset($_GET["websites-test"])) {
    websitelist();
    exit;
}
if (isset($_POST["websites-add"])) {
    websites_save();
    exit;
}
if (isset($_POST["websites-analyze"])) {
    websites_analyze();
    exit;
}
if (isset($_POST["ffCatAdd"])) {
    ffCatAdd();
    exit;
}
if (isset($_GET["AddWebsites-popup"])) {
示例#2
0
	include_once('ressources/class.rtmm.tools.inc');
	include_once('ressources/class.squid.inc');
	include_once('ressources/class.dansguardian.inc');
	header("Pragma: no-cache");	
	header("Expires: 0");
	header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
	header("Cache-Control: no-cache, must-revalidate");	
	$user=new usersMenus();
	if(!$user->AsWebStatisticsAdministrator){
		$tpl=new templates();
		echo "alert('".$tpl->javascript_parse_text("{ERROR_NO_PRIVS}").");";
		exit;
		
	}
	
	if(isset($_GET["websitelist"])){websitelist();exit;}
	
	if(isset($_GET["family-js"])){family_js();exit;}
	if(isset($_GET["family-popup"])){family_popup();exit;}
	if(isset($_GET["family-list"])){family_list();exit;}
	if(isset($_POST["family-analyze"])){family_analyze();exit;}
	
page();


function family_js(){
	$page=CurrentPageName();
	$tpl=new templates();	
	$familysite=$_GET["family-js"];
	$title=$familysite;
	$html="YahooWin4('650','$page?family-popup=yes&familysite=$familysite','$title');";