Пример #1
0
    exit;
}
if (isset($_GET["move-item-js"])) {
    move_items_js();
    exit;
}
if (isset($_GET["item-js"])) {
    items_js();
    exit;
}
if (isset($_GET["enable-js"])) {
    enable_js();
    exit;
}
if (isset($_POST["enable-item"])) {
    enable_item();
    exit;
}
if (isset($_GET["item-popup"])) {
    items_popup();
    exit;
}
if (isset($_GET["CacheTypeExplain"])) {
    CacheTypeExplain();
    exit;
}
if (isset($_POST["cache_directory"])) {
    items_save();
    exit;
}
if (isset($_POST["delete-item"])) {
Пример #2
0
	$user=new usersMenus();
	if($user->AsSquidAdministrator==false){
		header("content-type: application/x-javascript");
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}
	
	
	if(isset($_GET["delete-empty-js"])){delete_empty_js();exit;}
	if(isset($_GET["items"])){items();exit;}
	if(isset($_GET["move-item-js"])){move_items_js();exit;}
	
	if(isset($_GET["item-js"])){items_js();exit;}
	if(isset($_GET["enable-js"])){enable_js();exit;}
	if(isset($_POST["enable-item"])){enable_item();exit;}
	
	
	if(isset($_GET["item-popup"])){items_popup();exit;}
	if(isset($_GET["CacheTypeExplain"])){CacheTypeExplain();exit;}
	if(isset($_POST["cache_directory"])){items_save();exit;}
	if(isset($_POST["delete-item"])){items_delete();exit;}
	if(isset($_GET["delete-item-js"])){items_js_delete();exit;}
	if(isset($_POST["move-item"])){move_items();exit;}
	if(isset($_POST["empty-item"])){empty_item();exit;}
	table();
	
function delete_empty_js(){
	$page=CurrentPageName();
	$tpl=new templates();
	header("content-type: application/x-javascript");