From cd46d68991f7ae0cf319f915c5fecdd71b78ee34 Mon Sep 17 00:00:00 2001
From: Lars Müller
Date: Sat, 1 Mar 2008 18:04:26 +0000
Subject: Reorganisation of the repo structure as discussed on the devel list.
- Move the majority of trunk and all branches to the new openslx/ dir.
- Move ldap-site-mngmt to contrib/.
- Move openslx/trunk/os-plugins/plugins/vmchooser/src/ to
openslx-src-tools/trunk/os-plugins/plugins/vmchooser/
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1591 95ad53e4-c205-0410-b2fa-d234c58c8868
---
.../webinterface/computers/dhcphost.php | 185 ---------------------
1 file changed, 185 deletions(-)
delete mode 100644 ldap-site-mngmt/webinterface/computers/dhcphost.php
(limited to 'ldap-site-mngmt/webinterface/computers/dhcphost.php')
diff --git a/ldap-site-mngmt/webinterface/computers/dhcphost.php b/ldap-site-mngmt/webinterface/computers/dhcphost.php
deleted file mode 100644
index 5e64000d..00000000
--- a/ldap-site-mngmt/webinterface/computers/dhcphost.php
+++ /dev/null
@@ -1,185 +0,0 @@
-
";
-$dhcphlpcont = $host['dhcphlpcont'];
-$dhcpmaxlease = $host['dhcpoptmax-lease-time'];
-$dhcpdefaultlease = $host['dhcpoptdefault-lease-time'];
-$objectDN = $dhcphlpcont;
-$rbsDN = $host['hlprbservice'];
-
-$rbs_dhcpopt = "";
-$host_dhcpopt = "";
-$dhcp_selectbox = "";
-
-##########################################################
-# DHCP Setup
-
-# DHCP Daten
-if ($dhcphlpcont == ""){
- $objecttype = "nodhcp";
-
- # DHCP Selectbox
- $altdhcp = alternative_dhcpobjects($objecttype,$objectDN,$hostip[0]);
- $dhcp_selectbox .= "
- | ";
-
- $dhcp = "Eingebunden in DHCP Dienst: |
-
- Rechner ist in keinem DHCP Dienst angemeldet
|
-
- DHCP Dienst auswählen:
| ".$dhcp_selectbox;
-
- $rbs = "
- Sie müssen den Rechner zuerst in einem DHCP Dienst anmelden, bevor Sie ihn
- einem Remote Boot Dienst zuordnen können (DHCP Optionen!!).
|
-
- ";
-}else{
- # Host in Service oder Subnet?
- $objecttype = "service";
- $dhcp = "";
-
- /*$ocarray = get_node_data($dhcphlpcont,array("objectclass","dhcphlpcont"));
- #print_r($ocarray); echo "
";
- $sub = array_search('dhcpSubnet', $ocarray['objectclass']);
- #print_r($sub);
- if ($sub !== false ){
- $objecttype = "subnet";
- $exp0 = explode(',',$dhcphlpcont);
- $expsub = explode('=',$exp0[0]); $dhcpsub = $expsub[1];
- $dhcp .= "Subnet ".$dhcpsub." / ";
- $dhcphlpcont = $ocarray['dhcphlpcont'];
- }*/
-
- $exp1 = explode(',',$dhcphlpcont);
- $expdhcp = explode('=',$exp1[0]); $dhcpserv = $expdhcp[1];
- $expdhcpau = explode('=',$exp1[2]); $dhcpau = $expdhcpau[1];
-
- # DHCP Selectbox
- $altdhcp = alternative_dhcpobjects($objecttype,$objectDN,$hostip[0]);
- $dhcp_selectbox .= "
- | ";
-
- $dhcp .= "Eingebunden in DHCP Dienst: |
-
- Service ".$dhcpserv." / AU ".$dhcpau."
|
-
- DHCP Dienst ändern:
| ".$dhcp_selectbox;
-
-
- $fixedaddselopt = "";
- switch ( $host['dhcpoptfixed-address'] ){
- case "":
- $fixedaddress = " -
(dynamische Vergabe)";
- if ( $hostip[0] != "" ){
- $fixedaddselopt .= "";
- }
- $fixedaddselopt .= "";
- break;
- case "ip":
- $fixedaddress = "".$hostip[0]."
(Fixe IP Adresse)";
- $fixedaddselopt .= "
- ";
- break;
- case "hostname":
- $fixedaddress = "".$host['hostname']."
(Fixe IP Adresse über DNS aufgelöst)";
- if ( $hostip[0] != "" ){
- $fixedaddselopt .= "";
- }
- $fixedaddselopt .= "";
- break;
- }
-
-
- $host_dhcpopt = "
| DHCP Optionen: |
-
- | hardware ethernet: |
- ".$host['hwaddress']." |
- |
-
-
- | fixed-address: |
- ".$fixedaddress." |
-
-
- |
-
";
-
-}
-
-$template->assign(array("HOSTDN" => $hostDN,
- "HOSTNAME" => $host['hostname'],
- #"DOMAINNAME" => $host['domainname'],
- "HWADDRESS" => $host['hwaddress'],
- "IPADDRESS" => $hostip[0],
- "OLDDHCP" => $objectDN,
- "OLDFIXADD" => $host['dhcpoptfixed-address'],
- "OLDRBS" => $rbsDN,
- "DHCPCONT" => $dhcp,
- "HOST_DHCPOPT" => $host_dhcpopt,
- "NEXTSERVER" => $host['dhcpoptnext-server'],
- "FILENAME" => $host['dhcpoptfilename'],
- "DEFAULTLEASE" => $dhcpdefaultlease,
- "MAXLEASE" => $dhcpmaxlease,
- "HOSTLINK" => "