Exemplo n.º 1
0
include_once 'ressources/class.dansguardian.inc';
include_once dirname(__FILE__) . "/ressources/class.mysql.squid.builder.php";
if (isset($_GET["blacklist"])) {
    blacklist_start();
    exit;
}
if (isset($_GET["blacklist-perform"])) {
    blacklist();
    exit;
}
if (isset($_GET["whitelist-perform"])) {
    whitelist();
    exit;
}
if (isset($_GET["delete-personal-category-js"])) {
    category_delete_js();
    exit;
}
if (isset($_POST["delete-personal-category"])) {
    category_delete();
    exit;
}
if (isset($_GET["whitelist"])) {
    whitelist_start();
    exit;
}
tabs();
function category_delete_js()
{
    $page = CurrentPageName();
    $tpl = new templates();
Exemplo n.º 2
0
session_start();
include_once('ressources/class.html.pages.inc');
include_once('ressources/class.cyrus.inc');
include_once('ressources/class.main_cf.inc');
include_once('ressources/charts.php');
include_once('ressources/class.syslogs.inc');
include_once('ressources/class.system.network.inc');
include_once('ressources/class.os.system.inc');
include_once('ressources/class.dansguardian.inc');
include_once(dirname(__FILE__)."/ressources/class.mysql.squid.builder.php");


if(isset($_GET["blacklist"])){blacklist_start();exit;}
if(isset($_GET["blacklist-perform"])){blacklist();exit;}
if(isset($_GET["whitelist-perform"])){whitelist();exit;}
if(isset($_GET["delete-personal-category-js"])){category_delete_js();exit;}
if(isset($_POST["delete-personal-category"])){category_delete();exit;}

if(isset($_GET["whitelist"])){whitelist_start();exit;}



tabs();

function category_delete_js(){
	$page=CurrentPageName();
	$tpl=new templates();
	$q=new mysql_squid_builder();
	$t=time();
	
	$sql="SELECT category FROM usersisp_catztables WHERE zmd5='{$_GET["delete-personal-category-js"]}'";