コード例 #1
0
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.squid.inc');
	include_once('ressources/class.status.inc');
	include_once('ressources/class.artica.graphs.inc');
	
	$users=new usersMenus();
	if(!$users->AsProxyMonitor){die();}
	if(isset($_GET["SWAP"])){SWAP_PAGE();exit;}
	if(isset($_GET["PING"])){PING_PAGE();exit;}
	if(isset($_GET["DNS"])){DNS_PAGE();exit;}
	if(isset($_GET["external-page"])){EXTERNAL_PAGE();exit;}
	if(isset($_GET["performance"])){PERFORMANCE_PAGE();exit;}
	if(isset($_GET["settings"])){SETTINGS_PAGE();exit;}
	if(isset($_GET["smtp"])){SMTP_PAGE();exit;}
	if(isset($_POST["SAVEGLOBAL"])){SAVE();exit;}
	if(isset($_POST["SAVESMTP"])){SAVE_SMTP();exit;}
	if(isset($_GET["tabs"])){tabs();exit;}
	
js();

function js(){
	$tpl=new templates();
	$title=$tpl->javascript_parse_text("{watchdog_settings}");
	$page=CurrentPageName();
	header("content-type: application/x-javascript");
	echo "YahooWin4('850','$page?tabs=yes','$title')";
	
	
}

コード例 #2
0
    exit;
}
if (isset($_GET["settings"])) {
    SETTINGS_PAGE();
    exit;
}
if (isset($_GET["smtp"])) {
    SMTP_PAGE();
    exit;
}
if (isset($_POST["SAVEGLOBAL"])) {
    SAVE();
    exit;
}
if (isset($_POST["SAVESMTP"])) {
    SAVE_SMTP();
    exit;
}
if (isset($_GET["tabs"])) {
    tabs();
    exit;
}
js();
function js()
{
    $tpl = new templates();
    $title = $tpl->javascript_parse_text("{watchdog_settings}");
    $page = CurrentPageName();
    header("content-type: application/x-javascript");
    echo "YahooWin4('1200','{$page}?tabs=yes','{$title}')";
}