Пример #1
0
    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;
}
if (isset($_GET["justbutton"])) {
    justbutton_js();
    exit;
}
if (isset($_GET["activedirectory"])) {
    activedirectory_js();
    exit;
}
if (isset($_GET["ssl"])) {
    ssl_js();
    exit;
}
if (isset($_GET["popup-ssl"])) {
Пример #2
0
	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");
	$html="
		jQuery(function(){
			jQuery('head').append('<link href=\"/css/styles_main.css\" rel=\"stylesheet\" type=\"text/css\" title=\"styles_main_css\"  />');
			jQuery('head').append('<link href=\"/ressources/templates/default/blurps.css\" rel=\"stylesheet\" type=\"text/css\" title=\"blurps_css\"/>');