Exemplo n.º 1
0
include_once 'ressources/class.templates.inc';
include_once 'ressources/class.ldap.inc';
include_once 'ressources/class.users.menus.inc';
include_once 'ressources/class.squid.inc';
$user = new usersMenus();
if (!$user->AsSquidAdministrator) {
    $tpl = new templates();
    echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');";
    exit;
}
if (isset($_GET["popup"])) {
    popup();
    exit;
}
if (isset($_GET["cache_mgr_user"])) {
    SaveCacheManagerParams();
    exit;
}
if (isset($_GET["cachemgr_left_menu"])) {
    cachemgr_left_menu_save();
    exit;
}
js();
function js()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $title = $tpl->_ENGINE_parse_body("{cachemgr}");
    $html = "YahooWin4('450','{$page}?popup=yes','{$title}');";
    echo $html;
}
Exemplo n.º 2
0
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.squid.inc');


	
	
	$user=new usersMenus();
	if(!$user->AsSquidAdministrator){
		$tpl=new templates();
		echo "alert('".$tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		exit;
		
	}
	if(isset($_GET["popup"])){popup();exit;}	
	if(isset($_GET["cache_mgr_user"])){SaveCacheManagerParams();exit;}
	if(isset($_GET["cachemgr_left_menu"])){cachemgr_left_menu_save();exit;}
	
	
	
js();	
	
function js(){
	$page=CurrentPageName();
	$tpl=new templates();
	$title=$tpl->_ENGINE_parse_body("{cachemgr}");
	$html="YahooWin4('450','$page?popup=yes','$title');";
	echo $html;
	}
	
function popup(){