예제 #1
0
    exit;
}
if (isset($_GET["vlans-list"])) {
    vlan_list();
    exit;
}
if (isset($_GET["search"])) {
    vlan_list_list();
    exit;
}
if (isset($_GET["vlan-popup-add"])) {
    vlan_add_form();
    exit;
}
if (isset($_GET["cdir-ipaddr"])) {
    vlan_cdir();
    exit;
}
if (isset($_GET["vlan-ipaddr"])) {
    vlan_add();
    exit;
}
if (isset($_GET["vlan-del"])) {
    vlan_del();
    exit;
}
if (isset($_GET["NetWorkBroadCastVLANAsIpAddr"])) {
    NetWorkBroadCastVLANAsIpAddrSave();
    exit;
}
if (isset($_POST["BuildVLANs"])) {
예제 #2
0
<?php
	if(isset($_GET["verbose"])){$GLOBALS["VERBOSE"]=true;ini_set('display_errors', 1);ini_set('error_reporting', E_ALL);ini_set('error_prepend_string',null);ini_set('error_append_string',null);}
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.system.network.inc');
	include_once('ressources/class.mysql.inc');
	//http://www.mysidenotes.com/2007/08/17/vlan-configuration-on-ubuntu-debian/
	
	$usersmenus=new usersMenus();
	if($usersmenus->AsSystemAdministrator==false){exit;}
	
	if(isset($_GET["vlans-list"])){vlan_list();exit;}
	if(isset($_GET["search"])){vlan_list_list();exit;}
	if(isset($_GET["vlan-popup-add"])){vlan_add_form();exit;}
	if(isset($_GET["cdir-ipaddr"])){vlan_cdir();exit;}
	if(isset($_GET["vlan-ipaddr"])){vlan_add();exit;}
	if(isset($_GET["vlan-del"])){vlan_del();exit;}
	if(isset($_GET["NetWorkBroadCastVLANAsIpAddr"])){NetWorkBroadCastVLANAsIpAddrSave();exit;}
	if(isset($_POST["BuildVLANs"])){vlan_construct();exit;}
	
	vlans_start();
	
	
	
function vlans_start(){
	$page=CurrentPageName();
	$tpl=new templates();
	$virtual_interfaces=$tpl->_ENGINE_parse_body('{virtual_interfaces}');
	$html="