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"]}'"; $ligne = @mysql_fetch_array($q->QUERY_SQL($sql)); if (!$q->ok) { echo "alert(\"Fatal {$q->mysql_error}\")"; return; }
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"]}'"; $ligne=@mysql_fetch_array($q->QUERY_SQL($sql)); if(!$q->ok){echo "alert(\"Fatal $q->mysql_error\")";return;} if($ligne["category"]==null){