From 12183ece8e4cb1bb81072a72f696572c8b3a07ee Mon Sep 17 00:00:00 2001 From: Tarik Gasmi Date: Tue, 18 Sep 2007 15:18:38 +0000 Subject: ldap-site-mngmt: actualized WebIF and DHCPConfig Generationscript git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1340 95ad53e4-c205-0410-b2fa-d234c58c8868 --- ldap-site-mngmt/webinterface/computers/host_add.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ldap-site-mngmt/webinterface/computers/host_add.php') 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 "
"; - if (add_host($hostDN,$hostname,$hostdesc,$mac,$ip,$atts)){ + if (add_host($hostDN,$hostname,$hostdesc,$mac,$ip,$atts,$dhcp)){ $mesg .= "
Neuer Rechner erfolgreich angelegt
"; } else{ $mesg .= "
Fehler beim anlegen des Rechners!
"; } + # DHCP + $url = 'hostoverview.php'; } } -- cgit v1.2.3-55-g7522