Exemplo n.º 1
0
	
	
	$user=new usersMenus();
	if($user->AsSquidAdministrator==false){
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}	
	
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_GET["perfs"])){perfs();exit;}
	if(isset($_POST["cache_mem"])){save();exit;}
	if(isset($_POST["SaveCacheMem"])){SaveCacheMem();exit;}
	if(isset($_GET["tabs"])){tabs();exit;}
	if(isset($_GET["cache-mount"])){caches_mount();exit;}
	if(isset($_POST["HugePages"])){SaveHugePages();exit;}
	js();

	
function js(){

	$tpl=new templates();
	$title=$tpl->_ENGINE_parse_body("{cache_mem}");
	$page=CurrentPageName();
	header("content-type: application/x-javascript");
	$html="YahooWin3('650','$page?tabs=yes','$title');";
	echo $html;
	
	
	
	
Exemplo n.º 2
0
    exit;
}
if (isset($_POST["SaveCacheMem"])) {
    SaveCacheMem();
    exit;
}
if (isset($_GET["tabs"])) {
    tabs();
    exit;
}
if (isset($_GET["cache-mount"])) {
    caches_mount();
    exit;
}
if (isset($_POST["HugePages"])) {
    SaveHugePages();
    exit;
}
js();
function js()
{
    $tpl = new templates();
    $title = $tpl->_ENGINE_parse_body("{cache_mem}");
    $page = CurrentPageName();
    header("content-type: application/x-javascript");
    $html = "YahooWin3('650','{$page}?tabs=yes','{$title}');";
    echo $html;
}
function caches_mount()
{
    $page = CurrentPageName();