示例#1
0
$user = new usersMenus();
$sock = new sockets();
$EnableSquidUrgencyPublic = $sock->GET_INFO("EnableSquidUrgencyPublic");
if (!is_numeric($EnableSquidUrgencyPublic)) {
    $EnableSquidUrgencyPublic = 0;
}
if ($EnableSquidUrgencyPublic == 0) {
    if (!$user->AsSquidAdministrator) {
        $tpl = new templates();
        header("content-type: application/x-javascript");
        echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');";
        die;
    }
}
if (isset($_GET["other-options"])) {
    other_options();
    exit;
}
if (isset($_GET["popup"])) {
    popup();
    exit;
}
if (isset($_GET["perfs"])) {
    perfs();
    exit;
}
if (isset($_POST["SquidUrgency"])) {
    SquidUrgency();
    exit;
}
if (isset($_POST["EnableSquidUrgencyPublic"])) {
示例#2
0
	
	$user=new usersMenus();
	$sock=new sockets();
	$EnableSquidUrgencyPublic=$sock->GET_INFO("EnableSquidUrgencyPublic");
	if(!is_numeric($EnableSquidUrgencyPublic)){$EnableSquidUrgencyPublic=0;}
	
	if($EnableSquidUrgencyPublic==0){
		if(!$user->AsSquidAdministrator){
			$tpl=new templates();
			header("content-type: application/x-javascript");
			echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
			die();
		}	
	}
	
	if(isset($_GET["other-options"])){other_options();exit;}
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_GET["perfs"])){perfs();exit;}
	if(isset($_POST["SquidUrgency"])){SquidUrgency();exit;}
	if(isset($_POST["EnableSquidUrgencyPublic"])){EnableSquidUrgencyPublic();exit;}
	
	
	js();

	
function js(){

	$tpl=new templates();
	$title=$tpl->_ENGINE_parse_body("{urgency_mode}");
	$page=CurrentPageName();
	header("content-type: application/x-javascript");