From 310554c02e4b51c5300f8bdf8ad15e3f0520bc53 Mon Sep 17 00:00:00 2001
From: Tarik Gasmi
Date: Fri, 26 Oct 2007 08:41:22 +0000
Subject: LSM Webinterface, new actualized Version
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1401 95ad53e4-c205-0410-b2fa-d234c58c8868
---
ldap-site-mngmt/webinterface/dhcp/dhcppool.php | 43 +++++++++++++++++++++++---
1 file changed, 38 insertions(+), 5 deletions(-)
(limited to 'ldap-site-mngmt/webinterface/dhcp/dhcppool.php')
diff --git a/ldap-site-mngmt/webinterface/dhcp/dhcppool.php b/ldap-site-mngmt/webinterface/dhcp/dhcppool.php
index d35edd18..aa58201f 100644
--- a/ldap-site-mngmt/webinterface/dhcp/dhcppool.php
+++ b/ldap-site-mngmt/webinterface/dhcp/dhcppool.php
@@ -24,9 +24,9 @@ createDhcpMenu($rollen, $mnr, $auDN, $sbmnr);
# DHCP Pools Daten holen
$attributes = array("dn","cn","dhcphlpcont","dhcprange","description","dhcpstatements","dhcpoptallow",
"dhcpoptdefault-lease-time","dhcpoptdeny","dhcpoptignore","dhcpoptmax-lease-time",
- "dhcpoptgeneric");
+ "dhcpoptgeneric","hlprbservice","dhcpoptfilename","dhcpoptnext-server");
$pools = get_dhcppools($auDN, $attributes);
-#print_r($pools);
+
if (count($pools) == 0){
redirect(0, "dhcpnopool.php?mnr=".$mnr, "", $addSessionId = TRUE);
die;
@@ -43,6 +43,8 @@ $template->assign(array("POOLDN" => "",
"ALLOW" => "",
"DENY" => "",
"IGNORE" => "",
+ "RBS" => "",
+ "RBSSELECT" => "",
"DEFAULTLEASE" => "",
"MAXLEASE" => "",
"MNR" => $mnr));
@@ -59,7 +61,8 @@ foreach ($pools as $pool){
$subnetdnexp = ldap_explode_dn( $pool['dhcphlpcont'], 0);
$subnetauexp = array_slice($subnetdnexp, 3);
$subnetau = implode(',',$subnetauexp);
-
+ $rbsDN = $pool['hlprbservice'];
+
$template->clear_parse("DHCPRANGES_LIST");
@@ -105,8 +108,34 @@ foreach ($pools as $pool){
$ucselectbox = "
";
- }
-
+ }
+
+ # RBS Setup
+ $rbs_selectbox = "";
+ $rbs_addselectbox = "";
+ $altrbs = alternative_rbservices($rbsDN);
+
+ $rbs_selectbox .= "";
+
+ if ($rbsDN == ""){
+ $rbs = "Keine Einbindung";
+ }else{
+ $rbsdnexp = ldap_explode_dn($pool['hlprbservice'],1);
+ $rbs = $rbsdnexp[0]."
DHCP Next-Server: ".$pool['dhcpoptnext-server']."
DHCP Filename: ".$pool['dhcpoptfilename'];
+ }
+
+
$template->assign(array("POOLDN" => $pool['dn'],
"CN" => $pool['cn'],
"SUBNETDN" => $pool['dhcphlpcont'],
@@ -119,6 +148,10 @@ foreach ($pools as $pool){
"ALLOW" => $pool['dhcpoptallow'],
"DENY" => $pool['dhcpoptdeny'],
"IGNORE" => $pool['dhcpoptignore'],
+ "RBS" => $rbs,
+ "RBSSELECT" => $rbs_selectbox,
+ "RBSADD" => $rbs_addselectbox,
+ "OLDRBS" => $rbsDN,
"DEFAULTLEASE" => $pool['dhcpoptdefault-lease-time'],
"MAXLEASE" => $pool['dhcpoptmax-lease-time'],
"MNR" => $mnr));
--
cgit v1.2.3-55-g7522