Example #1
0
    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;
}
if (isset($_GET["action-rescan"])) {
    action_rescan_js();
    exit;
}
if (isset($_POST["DCHP_LEASE_RESCAN"])) {
    DCHP_LEASE_RESCAN();
    exit;
}
page();
Example #2
0
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}»»{network_legend}");
	
	$html="
	<table>
	<tr>
	<td widht=100% valign='top'><div class=explain>{dhcpd_shared_network_explain}</div></td>
	<td width=1%>". Paragraphe("apply-config-44.gif", "{apply_to_server}", "{apply_settings}","javascript:SharedNetsApply()")."</td>