summaryrefslogtreecommitdiffstats
path: root/ldap-site-mngmt/webinterface/computers/hostoverview.php
diff options
context:
space:
mode:
Diffstat (limited to 'ldap-site-mngmt/webinterface/computers/hostoverview.php')
-rw-r--r--ldap-site-mngmt/webinterface/computers/hostoverview.php50
1 files changed, 31 insertions, 19 deletions
diff --git a/ldap-site-mngmt/webinterface/computers/hostoverview.php b/ldap-site-mngmt/webinterface/computers/hostoverview.php
index c2bec0a2..b59dbea6 100644
--- a/ldap-site-mngmt/webinterface/computers/hostoverview.php
+++ b/ldap-site-mngmt/webinterface/computers/hostoverview.php
@@ -2,20 +2,15 @@
include('../standard_header.inc.php');
-# 1. Seitentitel - wird in der Titelleiste des Browser angezeigt.
-$titel = "Computers Management";
-# 2. Nummer des zugehörigen Hauptmenus (Registerkarte) beginnend bei 0, siehe Dokumentation.doc.
-$mainnr = 3;
-$mnr = 1;
-$sbmnr = -1;
-$mcnr = -1;
-# 3. Dateiname und evtl. Pfad des Templates für die Webseite
+# Dateiname und evtl. Pfad des Templates für die Webseite
$webseite = "hostoverview.dwt";
-include("../class.FastTemplate.php");
-
include('computers_header.inc.php');
+$mnr = 1;
+$sbmnr = -1;
+$mcnr = -1;
+
###################################################################################
# Menuleisten erstellen
@@ -30,9 +25,11 @@ $template->assign(array("DN" => "",
"HWADDRESS" => "",
"IPADDRESS" => "",
"DHCPCONT" => "",
- "RBSCONT" => ""));
+ "FIXADD" => "",
+ "RBSCONT" => "",
+ "NXTSRV" => ""));
-$attributes = array("dn","hostname","domainname","hwaddress","ipaddress","dhcphlpcont","hlprbservice");
+$attributes = array("dn","hostname","domainname","hwaddress","ipaddress","dhcphlpcont","dhcpoptfixed-address","hlprbservice","dhcpoptnext-server");
$host_array = get_hosts($auDN,$attributes);
$template->define_dynamic("Rechner", "Webseite");
@@ -44,22 +41,35 @@ foreach ($host_array as $host){
$hostip = explode('_',$host['ipaddress']);
$dhcpcont = "";
+ $dhcpfixadd = "";
if ( count($host['dhcphlpcont']) != 0 ){
$dhcpexpdn = ldap_explode_dn($host['dhcphlpcont'],1);
$dhcpcn = $dhcpexpdn[0];
- $ocarray = get_node_data($host['dhcphlpcont'],array("objectclass","dhcphlpcont"));
- $sub = array_search('dhcpSubnet', $ocarray['objectclass']);
- if ($sub !== false ){
- $dhcpcont = "Subnet ".$dhcpexpdn[0]." <br>[".$dhcpexpdn[2]."]";
- }else{
- $dhcpcont = "Service ".$dhcpexpdn[0]." <br>[".$dhcpexpdn[2]."]";
- }
+ #$ocarray = get_node_data($host['dhcphlpcont'],array("objectclass","dhcphlpcont"));
+ #$sub = array_search('dhcpSubnet', $ocarray['objectclass']);
+ #if ($sub !== false ){
+ # $dhcpcont = "Subnet ".$dhcpexpdn[0]." <br>[".$dhcpexpdn[2]."]";
+ #}else{
+ $dhcpcont = $dhcpexpdn[0]." <br>[".$dhcpexpdn[2]."]";
+ #}
+ $dhcpfixadd = "dyn";
+ if ( $host['dhcpoptfixed-address'] == "ip" ){
+ $dhcpfixadd = "fix";
+ }
+ if ( $host['dhcpoptfixed-address'] == "hostname" ){
+ $dhcpfixadd = "fix (DNS)";
+ }
}
+
+
$rbscont = "";
+ $dhcpnxtsrv = "";
if ( count($host['hlprbservice']) != 0 ){
$rbsexpdn = ldap_explode_dn($host['hlprbservice'],1);
$rbscont = $rbsexpdn[0]." <br>[".$rbsexpdn[2]."]";
+
+ $dhcpnxtsrv = $host['dhcpoptnext-server'];
}
$template->assign(array("DN" => $host['dn'],
@@ -68,7 +78,9 @@ foreach ($host_array as $host){
"HWADDRESS" => $host['hwaddress'],
"IPADDRESS" => $hostip[0],
"DHCPCONT" => $dhcpcont,
+ "FIXADD" => $dhcpfixadd,
"RBSCONT" => $rbscont,
+ "NXTSRV" => $dhcpnxtsrv,
"AUDN" => $auDN ));
$template->parse("RECHNER_LIST", ".Rechner");