Exemplo n.º 1
0
if (!$GLOBALS["AS_ROOT"]) {
    session_start();
}
include_once dirname(__FILE__) . '/ressources/class.html.pages.inc';
include_once dirname(__FILE__) . '/ressources/class.cyrus.inc';
include_once dirname(__FILE__) . '/ressources/class.main_cf.inc';
include_once dirname(__FILE__) . '/ressources/charts.php';
include_once dirname(__FILE__) . '/ressources/class.syslogs.inc';
include_once dirname(__FILE__) . '/ressources/class.system.network.inc';
include_once dirname(__FILE__) . '/ressources/class.os.system.inc';
if (isset($_GET["parameters"])) {
    parameters();
    exit;
}
if (isset($_GET["parameters-smtp"])) {
    SMTP_PAGE();
    exit;
}
if (isset($_GET["client"])) {
    clientmode();
    exit;
}
if (isset($_POST["ArticaMetaPooling"])) {
    save_server_params();
    exit;
}
if (isset($_POST["EnableArticaMetaClient"])) {
    save_client_params();
    exit;
}
if (isset($_POST["smtp_server_name"])) {
Exemplo n.º 2
0
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.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')";
	
	
}