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;
}
if (isset($_POST["chcachetype"])) {
    chcachetype();
    exit;
}
table();
function delete_empty_js()
{
    $page = CurrentPageName();
    $tpl = new templates();
    header("content-type: application/x-javascript");
    $users = new usersMenus();
    $ID = $_GET["ID"];
    $q = new mysql();
	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");
	$users=new usersMenus();
	$ID=$_GET["ID"];
	$q=new mysql();
	$ligne=mysql_fetch_array($q->QUERY_SQL("SELECT cachename FROM squid_caches_center WHERE ID='$ID'","artica_backup"));
	$title=$ligne["cachename"];
	$action_empty_cache_ask=$tpl->javascript_parse_text("{action_empty_cache_ask}");	
	$action_empty_cache_ask=str_replace("%s", $title, $action_empty_cache_ask);
	
	$t=time();