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 --- .../webinterface/dhcp/new_dhcpsubnet.php | 84 ++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 ldap-site-mngmt/webinterface/dhcp/new_dhcpsubnet.php (limited to 'ldap-site-mngmt/webinterface/dhcp/new_dhcpsubnet.php') diff --git a/ldap-site-mngmt/webinterface/dhcp/new_dhcpsubnet.php b/ldap-site-mngmt/webinterface/dhcp/new_dhcpsubnet.php new file mode 100644 index 00000000..a7697c14 --- /dev/null +++ b/ldap-site-mngmt/webinterface/dhcp/new_dhcpsubnet.php @@ -0,0 +1,84 @@ +assign(array("CN" => $subnetcn, + "NETMASK" => $netmask, + "RANGE1" => "", + "RANGE2" => "", + "DESCRIPTION" => "", + "STATEMENTS" => "", + "ALLOW" => "", + "DENY" => "", + "IGNORE" => "", + "DDNSUPDATE" => "", + "DEFAULTLEASE" => "", + "MAXLEASE" => "", + "USEHOSTDCL" => "", + "BROADCAST" => "", + "ROUTERS" => "", + "DOMAINNAME" => "", + "DOMAINNAMESERVERS" => "", + "NEXTSERVER" => "", + "FILENAME" => "", + "SRVIDENT" => "", + "NTPSERVERS" => "", + "OPTGENERIC" => "", + "DHCPSVNOW" => "", + "DHCPSVNOWAU" => "", + "MNR" => $mnr, + "SBMNR" => $sbmnr, + "MCNR" => $mcnr)); + + + +# DHCP Services +$dhcpservices = get_dhcpoffers($auDN); +#print_r($dhcpservices); echo "
"; + +$template->assign(array("DHCPSVDN" => "", + "DHCPSVCN" => "", + "DHCPSVAU" => "")); +if (count($dhcpservices) != 0){ +$template->define_dynamic("Dhcpservices", "Webseite"); + foreach ($dhcpservices as $item){ + $exp = ldap_explode_dn($item,1); + + $template->assign(array("DHCPSVDN" => $item, + "DHCPSVCN" => $exp[0], + "DHCPSVAU" => $exp[2])); + $template->parse("DHCPSERVICES_LIST", ".Dhcpservices"); + } +} + + +################################################################################### + +include("dhcp_footer.inc.php"); + +?> \ No newline at end of file -- cgit v1.2.3-55-g7522