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/ip/ip_dhcp.php | 54 +++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 ldap-site-mngmt/webinterface/ip/ip_dhcp.php (limited to 'ldap-site-mngmt/webinterface/ip/ip_dhcp.php') diff --git a/ldap-site-mngmt/webinterface/ip/ip_dhcp.php b/ldap-site-mngmt/webinterface/ip/ip_dhcp.php new file mode 100644 index 00000000..b89d6506 --- /dev/null +++ b/ldap-site-mngmt/webinterface/ip/ip_dhcp.php @@ -0,0 +1,54 @@ +assign(array("SUBNET" => "Noch kein DHCP Objekt angelegt", + "RANGE1" => "", + "RANGE2" => "", + "DHCPDN" => "")); + +$subnet_array = get_subnets($auDN,array("dn","cn","dhcprange")); +# print_r ($subnet_array); + +$template->define_dynamic("Subnets", "Webseite"); + +foreach ($subnet_array as $subnet){ + $exp = explode('_',$subnet['dhcprange']); + + $template->assign(array("SUBNET" => $subnet['cn'], + "RANGE1" => $exp[0], + "RANGE2" => $exp[1], + "DHCPDN" => $subnet['dn'], + "AUDN" => $auDN )); + $template->parse("SUBNETS_LIST", ".Subnets"); +} + + +##################################################################################### + +include("ip_footer.inc.php"); + +?> \ No newline at end of file -- cgit v1.2.3-55-g7522