diff options
| author | Tarik Gasmi | 2007-09-18 17:18:38 +0200 |
|---|---|---|
| committer | Tarik Gasmi | 2007-09-18 17:18:38 +0200 |
| commit | 12183ece8e4cb1bb81072a72f696572c8b3a07ee (patch) | |
| tree | 1e7b274e6a4229d4d1819d4feaabe272b1037a62 /ldap-site-mngmt/webinterface/computers/host_add.php | |
| parent | Added theme.conf for openslx theme for pxe. Only labels should be added autom... (diff) | |
| download | core-12183ece8e4cb1bb81072a72f696572c8b3a07ee.tar.gz core-12183ece8e4cb1bb81072a72f696572c8b3a07ee.tar.xz core-12183ece8e4cb1bb81072a72f696572c8b3a07ee.zip | |
ldap-site-mngmt: actualized WebIF and DHCPConfig Generationscript
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1340 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'ldap-site-mngmt/webinterface/computers/host_add.php')
| -rw-r--r-- | ldap-site-mngmt/webinterface/computers/host_add.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ldap-site-mngmt/webinterface/computers/host_add.php b/ldap-site-mngmt/webinterface/computers/host_add.php index bde6f26a..0f01fe75 100644 --- a/ldap-site-mngmt/webinterface/computers/host_add.php +++ b/ldap-site-mngmt/webinterface/computers/host_add.php @@ -5,7 +5,7 @@ $hostname = $_POST['hostname']; $hostdesc = $_POST['hostdesc']; $mac = $_POST['mac']; $ip = $_POST['ip']; - +$dhcp = $_POST['dhcpcont']; $hostname = htmlentities($hostname); $hostdesc = htmlentities($hostdesc); @@ -67,13 +67,15 @@ if ( $hostname != ""){ $hostDN = "HostName=".$hostname.",cn=computers,".$auDN; # print_r($hostDN); echo "<br>"; - if (add_host($hostDN,$hostname,$hostdesc,$mac,$ip,$atts)){ + if (add_host($hostDN,$hostname,$hostdesc,$mac,$ip,$atts,$dhcp)){ $mesg .= "<br>Neuer Rechner erfolgreich angelegt<br>"; } else{ $mesg .= "<br>Fehler beim anlegen des Rechners!<br>"; } + # DHCP + $url = 'hostoverview.php'; } } |
