Ejemplo n.º 1
0
if ($user->AsSquidAdministrator == false) {
    $tpl = new templates();
    echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');";
    die;
    exit;
}
if (isset($_GET["default-js"])) {
    default_js();
    exit;
}
if (isset($_GET["default-rule"])) {
    default_popup();
    exit;
}
if (isset($_POST["default-rule-save"])) {
    default_save();
    exit;
}
if (isset($_POST["item-enable"])) {
    items_enable();
    exit;
}
if (isset($_POST["item-move"])) {
    items_move();
    exit;
}
if (isset($_POST["item"])) {
    items_save();
    exit;
}
if (isset($_GET["items"])) {
Ejemplo n.º 2
0
	include_once(dirname(__FILE__) . "/ressources/class.pdns.inc");
	include_once(dirname(__FILE__) . '/ressources/class.system.network.inc');
	include_once(dirname(__FILE__) . '/ressources/class.squid.inc');
	
	
	$user=new usersMenus();
	if($user->AsSquidAdministrator==false){
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}
	
	
	if(isset($_GET["default-js"])){default_js();exit;}
	if(isset($_GET["default-rule"])){default_popup();exit;}
	if(isset($_POST["default-rule-save"])){default_save();exit;}
	
	if(isset($_POST["item-enable"])){items_enable();exit;}
	if(isset($_POST["item-move"])){items_move();exit;}
	if(isset($_POST["item"])){items_save();exit;}
	if(isset($_GET["items"])){items();exit;}
	if(isset($_GET["item-js"])){items_js();exit;}
	if(isset($_GET["items-search"])){items_search();exit;}
	if(isset($_GET["item-popup"])){items_popup();exit;}
	if(isset($_POST["item-delete"])){items_delete();exit;}
	
	if(isset($_POST["main-subrule-delete"])){main_subrule_delete();exit;}
	if(isset($_POST["main-subrule-move"])){main_subrule_move();exit;}	
	
	if(isset($_POST["main-rule-delete"])){main_rule_delete();exit;}
	if(isset($_POST["main-rule-move"])){main_rule_move();exit;}