Exemplo n.º 1
0
<?php
include_once(dirname(__FILE__)."/ressources/class.mini.admin.inc");
include_once(dirname(__FILE__)."/ressources/class.templates.inc");
include_once(dirname(__FILE__)."/ressources/class.user.inc");
include_once(dirname(__FILE__)."/ressources/class.langages.inc");


if(isset($_GET["script"])){echo toolbox();}



function toolbox(){
	
	$array[$_SESSION["uid"]]="RefreshCenterPanel()";
	
	if($_GET["script"]=="miniadm.www.services.php"){
		$title="myWebServices";
		$array["{myWebServices}"]="Loadjs('miniadm.www.services.php')";
	}
	if($_GET["script"]=="center-panel"){
		$array["{home}"]="RefreshCenterPanel()";
	}	
	
	if($_GET["script"]=="miniamd.user.rtmm.php"){
		$array["{postfix_realtime_events_text}"]="LoadAjax('BodyContent','miniamd.user.rtmm.php')";
	}	
	
	if($_GET["script"]=="miniadm.openvpn.client.php"){
		$array["{my_vpn_cnx}"]="LoadAjax('BodyContent','miniadm.openvpn.client.php')";
	}
Exemplo n.º 2
0
include_once dirname(__FILE__) . "/ressources/class.squid.inc";
include_once dirname(__FILE__) . "/ressources/class.squid.accesslogs.inc";
if (isset($_GET["monitor-parameters"])) {
    monitor_parameters_js();
    exit;
}
if (isset($_GET["monitor-parameters-popup"])) {
    monitor_parameters_popup();
    exit;
}
if (isset($_GET["tabs"])) {
    tabs();
    exit;
}
if (isset($_GET["toolbox"])) {
    toolbox();
    exit;
}
if (isset($_GET["status"])) {
    services_status_start();
    exit;
}
if (isset($_GET["services-status-table"])) {
    services_status();
    exit;
}
if (isset($_GET["accesslogs"])) {
    accesslogs_table();
    exit;
}
if (isset($_GET["events-list"])) {
Exemplo n.º 3
0
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}
	if(isset($_GET["script"])){popup_script();exit;}
	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_GET["remote_imap_server"])){add_account();exit;}
	if(isset($_GET["imapsynclist"])){imapsynclist();exit;}
	if(isset($_GET["imapSyncDelete"])){imapSyncDelete();exit;}
	if(isset($_GET["AddForm"])){add_popup();exit;}
	if(isset($_GET["events"])){events();exit;}
	if(isset($_GET["schedule"])){schedule();exit;}
	if(isset($_GET["imapsync_save_schedule"])){schedule_save();exit;}
	if(isset($_GET["imapRun"])){imapRun();exit;}
	if(isset($_GET["imapStop"])){imapStop();exit;}
	if(isset($_GET["toolbox"])){toolbox();exit;}
	if(isset($_GET["imapsync-folders"])){folders_sync_form();exit;}
	if(isset($_GET["folder-to-sync"])){folders_sync_add();exit;}
	if(isset($_GET["folder-to-sync-del"])){folders_sync_del();exit;}
	if(isset($_GET["imapsync-adv"])){adv_options_form();exit;}
	if(isset($_GET["syncinternaldate"])){adv_options_save();exit;}
	
js();

function popup_script(){
	$uid=$_GET["uid"];
	$page=CurrentPageName();
	$id=$_GET["id"];
	
	if(!is_numeric($id)){echo "<H2>!!??</H2>
	<script>
Exemplo n.º 4
0
<?php

include_once dirname(__FILE__) . "/ressources/class.mini.admin.inc";
include_once dirname(__FILE__) . "/ressources/class.templates.inc";
include_once dirname(__FILE__) . "/ressources/class.user.inc";
include_once dirname(__FILE__) . "/ressources/class.langages.inc";
if (isset($_GET["script"])) {
    echo toolbox();
}
function toolbox()
{
    $array[$_SESSION["uid"]] = "RefreshCenterPanel()";
    if ($_GET["script"] == "miniadm.www.services.php") {
        $title = "myWebServices";
        $array["{myWebServices}"] = "Loadjs('miniadm.www.services.php')";
    }
    if ($_GET["script"] == "center-panel") {
        $array["{home}"] = "RefreshCenterPanel()";
    }
    if ($_GET["script"] == "miniamd.user.rtmm.php") {
        $array["{postfix_realtime_events_text}"] = "LoadAjax('BodyContent','miniamd.user.rtmm.php')";
    }
    if ($_GET["script"] == "miniadm.openvpn.client.php") {
        $array["{my_vpn_cnx}"] = "LoadAjax('BodyContent','miniadm.openvpn.client.php')";
    }
    if ($_GET["script"] == "my.addressbook.php") {
        $array["{my_address_book}"] = "LoadAjax('BodyContent','my.addressbook.php')";
    }
    if ($_GET["script"] == "miniadm.webfiltering.index.php") {
        $array["{APP_PROXY_CATS}"] = "Loadjs('miniadm.webfiltering.index.php')";
    }
	$user=new usersMenus();
	if($user->AsPostfixAdministrator==false){
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}
	
	
	if(isset($_GET["list"])){popup_list();exit;}
	if(isset($_GET["popup"])){main_table();exit;}
	if(isset($_GET["smtpd_sasl_exceptions_networks_add"])){add();exit;}
	if(isset($_GET["smtpd_sasl_exceptions_networks_del"])){del();exit;}
	
	
	
	if(isset($_GET["popup-toolbox"])){toolbox();exit;}
	if(isset($_GET["smtpd_sasl_exceptions_mynet"])){smtpd_sasl_exceptions_mynet_save();exit;}
	
	js();
	
	
function js(){
if(GET_CACHED(__FILE__,__FUNCTION__,null)){return null;}
$prefix="smtpd_sasl_exceptions_networks_";
$page=CurrentPageName();
$users=new usersMenus();
$tpl=new templates();
$title=$tpl->_ENGINE_parse_body('{smtpd_sasl_exceptions_networks}');
$give_the_new_network=$tpl->javascript_parse_text("{give the new network}");