コード例 #1
0
$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()
{
    $page = CurrentPageName();
    $tpl = new templates();
コード例 #2
0
ファイル: squid.cachemgr.php プロジェクト: rsd/artica-1.5
	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(){
	$page=CurrentPageName();