Exemple #1
0
<?php
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.inc');
	
$usersmenus=new usersMenus();
if($usersmenus->AsArticaAdministrator==true){}else{header('location:users.index.php');exit;}		
	
	if(isset($_GET["tab"])){main_switch();exit;}
	if(isset($_GET["ajaxmenu"])){echo popup();exit;}
	if(isset($_GET["js"])){main_ajax();exit;}
	if(isset($_GET["AdressBookPopup"])){echo AdressBookPopup();exit;}
	if(isset($_GET["EnableRemoteAddressBook"])){AdressBookPopup_save();exit;}

page();	
function page(){
$page=CurrentPageName();	
$usersmenus=new usersMenus();
if($usersmenus->AsArticaAdministrator==true){}else{header('location:users.index.php');exit;}	
$sys=new systeminfos();

$distri=$sys->ditribution_name;


$html="
<div class=caption>Distribution: <strong>$distri</strong>&nbsp;Kernel:&nbsp;$sys->kernel_version&nbsp;LIBC:&nbsp;$sys->libc_version</div>
<table style='width:600px' align=center>
<tr>
<td width=1% valign='top'>
	<table>
		<tr>
<?php

include_once 'ressources/class.templates.inc';
include_once 'ressources/class.ldap.inc';
include_once 'ressources/class.users.menus.inc';
include_once 'ressources/class.postfix-multi.inc';
include_once 'ressources/class.kas-filter.inc';
$users = new usersMenus();
$tpl = new templates();
if (!$users->AsOrgPostfixAdministrator) {
    echo $tpl->javascript_parse_text("alert('{ERROR_NO_PRIVS}');");
    die;
}
if (isset($_GET["main"])) {
    main_switch();
    exit;
}
if (isset($_GET["popup"])) {
    main_tabs();
    exit;
}
if (isset($_GET["ACTION_SPAM_MODE"])) {
    SAVE();
    exit;
}
if (isset($_GET["OPT_FILTRATION_ON"])) {
    SAVE();
    exit;
}
if (isset($_GET["OPT_SPAM_RATE_LIMIT"])) {
    SAVE();
Exemple #3
0
	if(isset($_GET["MainParams-js"])){MainParams_js();exit;}
	if(isset($_GET["MainParams-tab"])){MainParams_tab();exit;}
	if(isset($_GET["MainParams-popup"])){MainParams_popup();exit;}
	
	
	if(isset($_GET["port-js"])){port_js();exit;}
	if(isset($_GET["port-tab"])){port_tab();exit;}
	if(isset($_GET["port-popup"])){port_popup();exit;}
	
	
	
	if(isset($_GET["delete-virtual-js"])){delete_virtual_js();exit;}
	if(isset($_POST["delete-virtual-perform"])){delete_virtual_perform();exit;}
	
	if(isset($_GET["ports-list"])){main_switch_ports();exit;}
	if(isset($_GET["switch-ports-table"])){main_switch();exit;}
	if(isset($_POST["ipaddr"])){port_save();exit;}
	if(isset($_POST["Uninstall"])){Uninstall();exit;}
	
	if(isset($_POST["VirtualSwitchEnabled"])){VirtualSwitchEnabled();exit;}
	
	
tabs();


function main_switch_status(){
	$switch=$_GET["eth"];
	$tpl=new templates();
	$sock=new sockets();
	$datas=$sock->getFrameWork("vde.php?switch-main-status=$switch");
	$ini=new Bs_IniHandler();