Exemplo n.º 1
0
	include_once('ressources/class.system.network.inc');
	
	
	$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["maintenance"])){maintenance_settings();exit;}
	
	if(isset($_GET["remote-users"])){remote_users();exit;}
	if(isset($_GET["local-users"])){local_users();exit;}
	if(isset($_GET["member-add"])){members_add();exit;}
	if(isset($_GET["member-delete"])){members_delete();exit;}		
	
	if(isset($_GET["tools"])){tools();exit;}
	if(isset($_GET["run-compile"])){task_run_sarg();exit;}
	
	if(isset($_GET["events"])){events();exit;}
	if(isset($_GET["squidMaxTableDays"])){SAVE();exit;}
	
js();


function js(){
	$page=CurrentPageName();
	$tpl=new templates();
Exemplo n.º 2
0
session_start();
if ($_SESSION["uid"] == null) {
    echo "window.location.href ='logoff.php';";
    die;
}
include_once 'ressources/class.templates.inc';
include_once 'ressources/class.ldap.inc';
include_once 'ressources/class.users.menus.inc';
include_once 'ressources/class.user.inc';
if (isset($_GET["popup"])) {
    echo popup();
    exit;
}
if (isset($_GET["browser-users"])) {
    local_users();
    exit;
}
js();
function popup()
{
    $page = CurrentPageName();
    $tpl = new templates();
    if (isset($_GET["YahooWin"])) {
        $YahooWin = "YahooWin{$_GET["YahooWin"]}";
    }
    $html = "\n\t<center><strong style='font-size:13px;'>Search:&nbsp;</strong>" . Field_text("local_user_search", null, "font-size:13px;padding:3px;width:220px", null, null, null, false, "SearchLocalUserEnter(event)") . "</center>\n\t<div style='height:300px;width:100%;overflow:auto;margin:8px' id='browser-users'></div>\n\t\n\t\n\t\n\t<script>\n\t\tfunction RefreshLocalMember(){\n\t\t\tvar search=escape(document.getElementById('local_user_search').value);\n\t\t\tLoadAjax('browser-users','{$page}?browser-users='+search+'&field={$_GET["field"]}&YahooWin={$_GET["YahooWin"]}');\n\t\t}\n\t\t\n\t\tfunction SearchLocalUserEnter(e){\n\t\t\tif(checkEnter(e)){RefreshLocalMember();}\n\t\t}\n\t\t\n\t\tRefreshLocalMember();\n\t</script>";
    echo $tpl->_ENGINE_parse_body($html);
}
function js()
{