diff options
author | Tarik Gasmi | 2007-07-06 12:29:06 +0200 |
---|---|---|
committer | Tarik Gasmi | 2007-07-06 12:29:06 +0200 |
commit | 493c1dd8260f24f8bfaf9271418529011b0f2a80 (patch) | |
tree | 834619232835c4786d793848a7f99882034d7bd1 /ldap-site-mngmt/webinterface/dhcp/dhcpservice_change.php | |
parent | Adjusted timings a little bit (waiting for scripts like hwautocfg to (diff) | |
download | core-493c1dd8260f24f8bfaf9271418529011b0f2a80.tar.gz core-493c1dd8260f24f8bfaf9271418529011b0f2a80.tar.xz core-493c1dd8260f24f8bfaf9271418529011b0f2a80.zip |
Actualised LDAP SiteManagement Webinterface and Perl-Config-Skripts
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1225 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'ldap-site-mngmt/webinterface/dhcp/dhcpservice_change.php')
-rw-r--r-- | ldap-site-mngmt/webinterface/dhcp/dhcpservice_change.php | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/ldap-site-mngmt/webinterface/dhcp/dhcpservice_change.php b/ldap-site-mngmt/webinterface/dhcp/dhcpservice_change.php index 5096d355..55e51cd9 100644 --- a/ldap-site-mngmt/webinterface/dhcp/dhcpservice_change.php +++ b/ldap-site-mngmt/webinterface/dhcp/dhcpservice_change.php @@ -5,6 +5,9 @@ $cn = "DHCP_".$_POST['cn']; $oldcn = "DHCP_".$_POST['oldcn']; $dhcpoffer = $_POST['dhcpoffer']; $olddhcpoffer = $_POST['olddhcpoffer']; +$dhcpoptdefinition = $_POST['dhcpoptdefinition']; +$olddhcpoptdefinition = $_POST['olddhcpoptdefinition']; +$adddhcpoptdefinition = $_POST['adddhcpoptdefinition']; $dhcpDN = $_POST['dhcpdn']; @@ -123,6 +126,23 @@ if ( $dhcpoffer != "none" ){ } ##################################### +# Selbstdefinierte Optionen + +if ( $adddhcpoptdefinition != "" ){ + echo "Selbst-definierte DHCP Option hinzufügen.<br>"; + $entryadd['optiondefinition'] = $adddhcpoptdefinition; + if(ldap_mod_add($ds,$dhcpDN,$entryadd)){ + $mesg = "Selbst-definierte DHCP Option erfolgreich eingetragen<br><br>"; + }else{ + $mesg = "Fehler beim eintragen Selbst-definierte DHCP Option<br><br>"; + } +} + +#todo: array_vergleich -> Ă„nderung -> ldap_modify +#print_r($dhcpoptdefinition);echo "<br>"; +#print_r($olddhcpoptdefinition);echo "<br>"; + +##################################### # Restliche Attribute $entryadd = array(); @@ -148,14 +168,8 @@ foreach (array_keys($atts) as $key){ } } -#print_r($entryadd); echo "<br>"; -#print_r($entrymod); echo "<br>"; -#print_r($entrydel); echo "<br>"; - if (count($entryadd) != 0 ){ - #print_r($entryadd); echo "<br>"; - #echo "neu anlegen<br>"; foreach (array_keys($entryadd) as $key){ $addatts .= "<b>".$key."</b>,"; } @@ -167,8 +181,6 @@ if (count($entryadd) != 0 ){ } if (count($entrymod) != 0 ){ - #print_r($entrymod); echo "<br>"; - #echo "ändern<br>"; foreach (array_keys($entrymod) as $key){ $modatts .= "<b>".$key."</b>,"; } @@ -180,8 +192,6 @@ if (count($entrymod) != 0 ){ } if (count($entrydel) != 0 ){ - #print_r($entrydel); echo "<br>"; - #echo "löschen<br>"; foreach (array_keys($entrydel) as $key){ $delatts .= "<b>".$key."</b>,"; } |