From 59cf91925ca8da43d2427331b23e4673b0e53095 Mon Sep 17 00:00:00 2001 From: Tarik Gasmi Date: Mon, 14 May 2007 08:03:48 +0000 Subject: Other webinterface data. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1077 95ad53e4-c205-0410-b2fa-d234c58c8868 --- ldap-site-mngmt/webinterface/dhcp/dhcpsubnets.php | 65 +++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 ldap-site-mngmt/webinterface/dhcp/dhcpsubnets.php (limited to 'ldap-site-mngmt/webinterface/dhcp/dhcpsubnets.php') diff --git a/ldap-site-mngmt/webinterface/dhcp/dhcpsubnets.php b/ldap-site-mngmt/webinterface/dhcp/dhcpsubnets.php new file mode 100644 index 00000000..1104f496 --- /dev/null +++ b/ldap-site-mngmt/webinterface/dhcp/dhcpsubnets.php @@ -0,0 +1,65 @@ +assign(array("SUBNETDN" => "", + "SUBNETCN" => "Noch keine Subnets angelegt", + "NETMASK" => "", + "DHCP" => "", + "RANGE" => "", + "HOSTS" => "")); + +# rbservice und pxe daten (voerst nur ein rbs) +$subnet_array = get_dhcpsubnets($auDN,array("dn","cn","dhcpoptnetmask","dhcprange","dhcphlpcont")); + +$template->define_dynamic("Subnets", "Webseite"); +foreach ($subnet_array as $subnet){ + $range = ""; + if ($subnet['dhcprange'] != ""){ + $exp = explode('_',$subnet['dhcprange']); + $range = $exp[0]." - ".$exp[1]; + } + if ($subnet['dhcphlpcont'] != ""){ + $exp = ldap_explode_dn($subnet['dhcphlpcont'],1); + $dhcpservice = $exp[0]."  [".$exp[2]."]"; + }else{ + $dhcpservice = ""; + } + + $template->assign(array("SUBNETDN" => $subnet['dn'], + "SUBNETCN" => $subnet['cn'], + "NETMASK" => $subnet['dhcpoptnetmask'], + "DHCP" => $dhcpservice, + "RANGE" => $range, + "HOSTS" => "")); + $template->parse("SUBNETS_LIST", ".Subnets"); +} + + +################################################################################### + +include("dhcp_footer.inc.php"); + +?> -- cgit v1.2.3-55-g7522