コード例 #1
0
ファイル: squid.bubble.php プロジェクト: brucewu16899/1.6.x
<?php
if(isset($_GET["verbose"])){$GLOBALS["VERBOSE"]=true;ini_set('display_errors', 1);ini_set('error_reporting', E_ALL);ini_set('error_prepend_string',null);ini_set('error_append_string',null);}
	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');
	
$usersmenus=new usersMenus();
if(!$usersmenus->AsSquidAdministrator){
	$tpl=new templates();
	$alert=$tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}');
	echo "alert('$alert');";
	die();	
}
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_POST["SquidBubbleMode"])){SquidBubbleMode();exit;}

js();


function js(){
	header("content-type: application/x-javascript");
	$page=CurrentPageName();
	$tpl=new templates();
	$YahooWin=2;
	if(isset($_GET["YahooWin"])){$YahooWin=$_GET["YahooWin"];$YahooWinUri="&YahooWin={$_GET["YahooWin"]}";}
	$title=$tpl->_ENGINE_parse_body("{HotSpot}");
	$html="
	var YahooWinx=$YahooWin;
	if(YahooWinx==2){
		YahooWin2Hide();
コード例 #2
0
ファイル: squid.bubble.php プロジェクト: BillTheBest/1.6.x
include_once 'ressources/class.ldap.inc';
include_once 'ressources/class.users.menus.inc';
include_once 'ressources/class.squid.inc';
$usersmenus = new usersMenus();
if (!$usersmenus->AsSquidAdministrator) {
    $tpl = new templates();
    $alert = $tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}');
    echo "alert('{$alert}');";
    die;
}
if (isset($_GET["popup"])) {
    popup();
    exit;
}
if (isset($_POST["SquidBubbleMode"])) {
    SquidBubbleMode();
    exit;
}
js();
function js()
{
    header("content-type: application/x-javascript");
    $page = CurrentPageName();
    $tpl = new templates();
    $YahooWin = 2;
    if (isset($_GET["YahooWin"])) {
        $YahooWin = $_GET["YahooWin"];
        $YahooWinUri = "&YahooWin={$_GET["YahooWin"]}";
    }
    $title = $tpl->_ENGINE_parse_body("{HotSpot}");
    $html = "\n\tvar YahooWinx={$YahooWin};\n\tif(YahooWinx==2){\n\t\tYahooWin2Hide();\n\t\tYahooWin6Hide();\n\t}\t\n\tYahooWin{$YahooWin}('700','{$page}?popup=yes{$YahooWinUri}','{$title}')";