Esempio n. 1
0
	
	
$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["watchdog"])){Save();exit;}
if(isset($_GET["tabs"])){tabs();exit;}
if(isset($_GET["events"])){events_table();exit;}
if(isset($_GET["rows-table"])){rows_table();exit;}
if(isset($_GET["notifs"])){smtp_notifs();exit;}
if(isset($_POST["ENABLED_SQUID_WATCHDOG"])){save_watchdog_notif();exit;}
js();


function Save(){
	$sock=new sockets();
	$final=base64_encode(serialize($_POST));
	$sock->SaveConfigFile($final, "SquidWatchdogMonitConfig");
	$sock->SET_INFO("SquidCacheReloadTTL", $_POST["SquidCacheReloadTTL"]);
	$sock->getFrameWork("squid.php?watchdog-config=yes");
	
}

function js(){
	
Esempio n. 2
0
    exit;
}
if (isset($_GET["tabs"])) {
    tabs();
    exit;
}
if (isset($_GET["events"])) {
    events_table();
    exit;
}
if (isset($_GET["rows-table"])) {
    rows_table();
    exit;
}
if (isset($_GET["notifs"])) {
    smtp_notifs();
    exit;
}
if (isset($_POST["ENABLED_SQUID_WATCHDOG"])) {
    save_watchdog_notif();
    exit;
}
js();
function Save()
{
    $sock = new sockets();
    $final = base64_encode(serialize($_POST));
    $sock->SaveConfigFile($final, "SquidWatchdogMonitConfig");
    $sock->SET_INFO("SquidCacheReloadTTL", $_POST["SquidCacheReloadTTL"]);
    $sock->getFrameWork("squid.php?watchdog-config=yes");
}
Esempio n. 3
0
<?php
session_start();

if(!isset($_SESSION["uid"])){die();}
include_once(dirname(__FILE__)."/ressources/class.templates.inc");
include_once(dirname(__FILE__)."/ressources/class.users.menus.inc");
include_once(dirname(__FILE__)."/ressources/class.mysql.archive.builder.inc");
include_once(dirname(__FILE__)."/ressources/class.user.inc");
include_once(dirname(__FILE__).'/ressources/smtp/smtp.php');

$users=new usersMenus();
if(!$users->AsHotSpotManager){die();}

if(isset($_GET["tabs"])){tabs();exit;}
if(isset($_GET["popup"])){popup();exit;}
if(isset($_GET["smtp-params"])){smtp_notifs();exit;}
if(isset($_POST["ENABLED_AUTO_LOGIN"])){Save();exit;}
if(isset($_POST["tls_enabled"])){Save();exit;}

if(isset($_GET["test-smtp-js"])){tests_smtp();exit;}

js();


function tabs(){
	$page=CurrentPageName();
	$tpl=new templates();
	$users=new usersMenus();

	if(!$users->WIFIDOG_INSTALLED){
		echo FATAL_ERROR_SHOW_128("{ERROR_SERVICE_NOT_INSTALLED} <hr><center>".button("{manual_update}", "Loadjs('update.upload.php')",32)."</center>");