Beispiel #1
0
}
if (isset($_GET["CurrentTime"])) {
    $t = time();
    $script = "<script>\n\t\tfunction Clock{$t}(){ \n\t\t\t\n\t\t\tIndexHorloge();\n\t\t  } \n\t\t\tsetTimeout('Clock{$t}()',10000);\n\t</script>";
    if (time() - $_SESSION["CurrentTime"] < 9) {
        $script = null;
    }
    if (function_exists("date_default_timezone_get")) {
        $timezone = date_default_timezone_get();
    }
    echo date("H:i:s") . " ({$timezone})" . $script;
    $_SESSION["CurrentTime"] = time();
    die;
}
if (isset($_GET["admin-index-status-mysql"])) {
    echo status_mysql();
    exit;
}
if (isset($_GET["status_right_image"])) {
    status_right_image();
    exit;
}
if (isset($_GET["warnings"])) {
    warnings_js();
    exit;
}
if (isset($_GET["warnings-popup"])) {
    warnings_popup();
    exit;
}
if (isset($_GET["main_admin_tabs"])) {
Beispiel #2
0
    exit;
}
if (isset($_GET["tab-iptables-events"])) {
    firewall_events();
    exit;
}
if (isset($_GET["InstantIpTablesInLeftMenu"])) {
    InstantIpTablesInLeftMenu();
    exit;
}
if (isset($_GET["tab-iptables-stats"])) {
    InstantIptablesStats();
    exit;
}
if (isset($_GET["instantIptables-status"])) {
    status_mysql();
    exit;
}
if (isset($_GET["ban-servers"])) {
    ban_servers_js();
    exit;
}
if (isset($_GET["ban-servers-popup"])) {
    ban_servers_popup();
    exit;
}
if (isset($_POST["ban-servers-add"])) {
    ban_servers_save();
    exit;
}
if (isset($_GET["EnablePostfixAutoBlock"])) {
Beispiel #3
0
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.iptables-chains.inc');
	
	

if(isset($_GET["popup"])){popup();exit;}
if(isset($_GET["status"])){status();exit;}
if(isset($_GET["tab-parameters"])){popup_parameters();exit;}
if(isset($_GET["tab-iptables-rules"])){firewall_popup();exit;}
if(isset($_GET["tab-iptables-events"])){firewall_events();exit;}
if(isset($_GET["InstantIpTablesInLeftMenu"])){InstantIpTablesInLeftMenu();exit;}
if(isset($_GET["tab-iptables-stats"])){InstantIptablesStats();exit;}


if(isset($_GET["instantIptables-status"])){status_mysql();exit;}

if(isset($_GET["ban-servers"])){ban_servers_js();exit;}
if(isset($_GET["ban-servers-popup"])){ban_servers_popup();exit;}
if(isset($_POST["ban-servers-add"])){ban_servers_save();exit;}

if(isset($_GET["EnablePostfixAutoBlock"])){save();exit;}
if(isset($_GET["BlockDenyAddWhiteList"])){echo BlockDenyWhiteList();exit;}
if(isset($_GET["AutoBlockDenyAddWhiteList"])){AutoBlockDenyAddWhiteList();exit;}
if(isset($_GET["PostfixAutoBlockDenyDelWhiteList"])){PostfixAutoBlockDenyDelWhiteList();exit;}

if(isset($_GET["PostfixAutoBlockLoadFW"])){firewall_popup();exit;}
if(isset($_GET["PostfixAutoBlockLoadFWRules"])){echo firewall_rules();exit;}
if(isset($_GET["PostfixEnableFwRule"])){PostfixEnableFwRule();exit;}
if(isset($_GET["PostfixEnableLog"])){PostfixEnableLog();exit;}
if(isset($_GET["compile"])){PostfixAutoBlockCompile();exit;}
Beispiel #4
0
function status_computer()
{
    include_once "ressources/class.os.system.tools.inc";
    status_mysql();
    $os = new os_system();
    $html = RoundedLightGrey($os->html_Memory_usage()) . "<br>";
    echo $html;
}
Beispiel #5
0
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}	
	
	if(isset($_GET["tabs"])){tabs();exit;}
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_GET["status"])){status();exit;}
	if(isset($_GET["title"])){tables_title();exit;}
	if(isset($_GET["schedules"])){schedules();exit;}
	if(isset($_POST["ListenPort"])){SaveParams();exit;}
	if(isset($_POST["per_thread_buffers"])){per_thread_buffers();exit;}
	if(isset($_POST["server_buffers"])){server_buffers();exit;}
	if(isset($_POST["total_memory"])){total_memory();exit;}
	if(isset($_GET["squid-db-status"])){status_service();exit;}
	if(isset($_GET["squid-db-mysql"])){status_mysql();exit;}
	if(isset($_POST["SquidStatsDatabasePath"])){SquidStatsDatabasePath();exit;}
js();

function js(){
	header("content-type: application/x-javascript");
	$page=CurrentPageName();
	$tpl=new templates();
	$title=$tpl->_ENGINE_parse_body("{mysql_statistics_engine}");
	$html="YahooWin('900','$page?tabs=yes','$title');";
	echo $html;	
	
}

function tabs(){
	$q=new mysql_squid_builder();