コード例 #1
0
    header("content-type: application/x-javascript");
    $tpl = new templates();
    echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');";
    die;
    exit;
}
if (isset($_GET["change-cache-types-js"])) {
    change_cache_type_js();
    exit;
}
if (isset($_GET["change-cache-types-popup"])) {
    change_cache_type_popup();
    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"])) {
コード例 #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){
		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;}