Esempio n. 1
0
<?php

session_start();
include_once 'ressources/class.templates.inc';
include_once 'ressources/class.users.menus.inc';
include_once 'ressources/class.dhcpd.inc';
include_once 'ressources/class.computers.inc';
$users = new usersMenus();
if (!$users->AsSystemAdministrator) {
    $tpl = new templates();
    echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');";
    die;
    exit;
}
if (isset($_GET["list-nets"])) {
    list_nets();
    exit;
}
if (isset($_GET["shared-edit"])) {
    shared_edit();
    exit;
}
if (isset($_POST["domain-name"])) {
    shared_post();
    exit;
}
if (isset($_POST["DelDHCPShared"])) {
    shared_del();
    exit;
}
if (isset($_POST["SharedNetsApply"])) {
Esempio n. 2
0
<?php

session_start();
include_once('ressources/class.templates.inc');
include_once('ressources/class.users.menus.inc');
include_once('ressources/class.dhcpd.inc');
$users=new usersMenus();
if(!$users->AsSystemAdministrator){		
	$tpl=new templates();
	echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
	die();exit();
	}
	
	if(isset($_GET["list-nets"])){list_nets();exit;}
	if(isset($_GET["shared-edit"])){shared_edit();exit;}
	if(isset($_POST["domain-name"])){shared_post();exit;}
	if(isset($_POST["DelDHCPShared"])){shared_del();exit;}
	if(isset($_POST["SharedNetsApply"])){shared_apply();exit;}
page();



function page(){
	$tpl=new templates();
	$page=CurrentPageName();
	$addtitl=$tpl->_ENGINE_parse_body("{add}&raquo;&raquo;{network_legend}");
	
	$html="
	<table>
	<tr>
	<td widht=100% valign='top'><div class=explain>{dhcpd_shared_network_explain}</div></td>