示例#1
0
function main_switch()
{
    switch ($_GET["main"]) {
        case "nmap-list":
            echo main_network_list();
            exit;
            break;
        case "nmap-add":
            echo main_form_add();
            exit;
            break;
        case "nmap-log":
            echo main_events();
            exit;
            break;
        case "status":
            echo main_status();
            exit;
            break;
        case "nmap-evdetails":
            echo main_events_fill();
            break;
        default:
            main_settings();
            break;
    }
}
示例#2
0
<?php
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.mysql.inc');
	include_once('ressources/class.samba.aliases.inc');

	if(isset($_GET["debug-page"])){ini_set('display_errors', 1);ini_set('error_reporting', E_ALL);$GLOBALS["VERBOSE"]=true;}
	if(isset($_GET["tabs"])){tabs();exit;}
	if(isset($_GET["settings"])){main_settings();exit;}
	if(isset($_POST["strict_allocate"])){main_settings_save();exit;}
	

	js();
function js(){
	$page=CurrentPageName();
	$tpl=new templates();	
	$title="{file_sharing_behavior}&nbsp;&raquo;&nbsp;{$_GET["hostname"]}";
	$hostname=$_GET["hostname"];
	if($hostname==null){$title="{virtual_server}&nbsp;&raquo;&nbsp;{add}";}
	$title=$tpl->_ENGINE_parse_body($title);
	$html="YahooWin3(650,'$page?tabs=yes&hostname=$hostname','$title')";
	echo $html;	
	}
	
	function tabs(){
		$page=CurrentPageName();
		$tpl=new templates();
		$array["settings"]='{main_settings}';
		
		while (list ($num, $ligne) = each ($array) ){
示例#3
0
function main_page()
{
    $tpl = new templates();
    switch ($_GET["section"]) {
        case "smtp-domain-rule":
            echo main_domain_rule_single();
            break;
        case "events":
            echo main_events();
            break;
        case "config-file":
            echo main_config_amavisfile();
            break;
        case "global-settings":
            echo main_settings();
            break;
        case "events":
            echo main_events();
            break;
        case "global-status":
            echo page_status(1);
            break;
        default:
            echo main_settings();
            break;
    }
}
示例#4
0
function main_page()
{
    switch ($_GET["section"]) {
        case "script":
            echo main_script();
            break;
        case "smtp-domain-rule":
            echo main_domain_rule_single();
            break;
        case "events":
            echo main_events();
            break;
        case "fresh-events":
            echo main_freshevents();
            break;
        case "global-settings":
            echo main_settings();
            break;
        default:
            echo main_settings();
            break;
    }
}
示例#5
0
function main_switch()
{
    switch ($_GET["main"]) {
        case "index":
            echo ajax_index();
            exit;
            break;
        case "conf":
            echo main_conf();
            exit;
            break;
        case "rlogs":
            echo main_rlogs();
            exit;
            break;
        case "nmap-add":
            echo main_form_add();
            exit;
            break;
        case "status":
            echo main_status();
            exit;
            break;
        case "mysql":
            echo main_mysql();
            exit;
            break;
        case "rlogss":
            echo main_rlogs_parse();
            exit;
            break;
        case "multiple-roundcube":
            echo multiple_roundcube();
            exit;
            break;
        default:
            main_settings();
            break;
    }
}
示例#6
0
include_once 'ressources/class.templates.inc';
include_once 'ressources/class.ldap.inc';
include_once 'ressources/class.users.menus.inc';
include_once 'ressources/class.mysql.inc';
include_once 'ressources/class.samba.aliases.inc';
if (isset($_GET["debug-page"])) {
    ini_set('display_errors', 1);
    ini_set('error_reporting', E_ALL);
    $GLOBALS["VERBOSE"] = true;
}
if (isset($_GET["tabs"])) {
    tabs();
    exit;
}
if (isset($_GET["settings"])) {
    main_settings();
    exit;
}
if (isset($_POST["RootDir"])) {
    main_settings_save();
    exit;
}
if (isset($_GET["ipaddr-field"])) {
    field_ipaddr();
    exit;
}
js();
function js()
{
    $page = CurrentPageName();
    $tpl = new templates();