summaryrefslogtreecommitdiffstats
path: root/ldap-site-mngmt/webinterface/dhcp/dhcpsubnet.php
diff options
context:
space:
mode:
Diffstat (limited to 'ldap-site-mngmt/webinterface/dhcp/dhcpsubnet.php')
-rw-r--r--ldap-site-mngmt/webinterface/dhcp/dhcpsubnet.php125
1 files changed, 0 insertions, 125 deletions
diff --git a/ldap-site-mngmt/webinterface/dhcp/dhcpsubnet.php b/ldap-site-mngmt/webinterface/dhcp/dhcpsubnet.php
deleted file mode 100644
index a7da175d..00000000
--- a/ldap-site-mngmt/webinterface/dhcp/dhcpsubnet.php
+++ /dev/null
@@ -1,125 +0,0 @@
-<?php
-
-include('../standard_header.inc.php');
-
-# Dateiname und evtl. Pfad des Templates für die Webseite
-$webseite = "dhcpsubnet.dwt";
-
-include('dhcp_header.inc.php');
-
-$mnr = -1;
-$sbmnr = -1;
-
-###################################################################################
-
-$mnr = $_GET['mnr'];
-#$sbmnr = $_GET['sbmnr'];
-
-# Menuleisten erstellen
-createMainMenu($rollen, $mainnr);
-createDhcpMenu($rollen, $mnr, $auDN, $sbmnr);
-
-###################################################################################
-
-$template->assign(array("SUBNETDN" => "",
- "CN" => "",
- "NETMASK" => "",
- "RANGE1" => "",
- "RANGE2" => "",
- "DESCRIPTION" => "",
- "STATEMENTS" => "",
- "ALLOW" => "",
- "DENY" => "",
- "IGNORE" => "",
- "DDNSUPDATE" => "",
- "DEFAULTLEASE" => "",
- "MAXLEASE" => "",
- "USEHOSTDCL" => "",
- "BROADCAST" => "",
- "ROUTERS" => "",
- "DOMAINNAME" => "",
- "DOMAINNAMESERVERS" => "",
- "NEXTSERVER" => "",
- "FILENAME" => "",
- "SRVIDENT" => "",
- "NTPSERVERS" => "",
- "OPTGENERIC" => "",
- "DHCPOFFERNOWDN" => "",
- "DHCPSVNOW" => "",
- "MNR" => $mnr,
- "SBMNR" => $sbmnr,
- "MCNR" => $mcnr));
-
-# DHCP Subnet Daten
-$dhcpsubnetDN = $_GET['dn'];
-$attributes = array("dn","cn","dhcpoptnetmask","dhcphlpcont","dhcprange","description","dhcpstatements","dhcpoptallow",
- "dhcpoptddns-update-style","dhcpoptdefault-lease-time","dhcpoptdeny","dhcpoptfilename",
- "dhcpoptignore","dhcpoptmax-lease-time","dhcpoptnext-server","dhcpoptserver-identifier",
- "dhcpoptuse-host-decl-names","dhcpoptbroadcast-address","dhcpoptdhcp-max-message-size",
- "dhcpoptdomain-name","dhcpoptdomain-name-servers","dhcpoptgeneric","dhcpoptntp-servers",
- "dhcpoptroot-path","dhcpoptrouters");
-$subnet_data = get_node_data($dhcpsubnetDN, $attributes);
-#print_r($subnet_data);
-
-# momentane DHCP Service Zuordnung
-if ($subnet_data['dhcphlpcont'] != ""){
- $dhcpsvnowdn = ldap_explode_dn($subnet_data['dhcphlpcont'], 1);
- $dhcpsvnow = "<b>".$dhcpsvnowdn[0]."</b> &nbsp;[AU: ".$dhcpsvnowdn[2]."]";
-}else{
- $dhcpsvnow = "<b>&#8211;</b>";
-}
-
-# DHCP Range
-$iprange = explode('_',$subnet_data['dhcprange']);
-
-$template->assign(array("SUBNETDN" => $dhcpsubnetDN,
- "CN" => $subnet_data['cn'],
- "NETMASK" => $subnet_data['dhcpoptnetmask'],
- "RANGE1" => $iprange[0],
- "RANGE2" => $iprange[1],
- "DESCRIPTION" => $subnet_data['description'],
- "STATEMENTS" => $subnet_data['dhcpstatements'],
- "ALLOW" => $subnet_data['dhcpoptallow'],
- "DENY" => $subnet_data['dhcpoptdeny'],
- "IGNORE" => $subnet_data['dhcpoptignore'],
- "DDNSUPDATE" => $subnet_data['dhcpoptddns-update-style'],
- "DEFAULTLEASE" => $subnet_data['dhcpoptdefault-lease-time'],
- "MAXLEASE" => $subnet_data['dhcpoptmax-lease-time'],
- "USEHOSTDCL" => $subnet_data['dhcpoptuse-host-decl-names'],
- "BROADCAST" => $subnet_data['dhcpoptbroadcast-address'],
- "ROUTERS" => $subnet_data['dhcpoptrouters'],
- "DOMAINNAME" => $subnet_data['dhcpoptdomain-name'],
- "DOMAINNAMESERVERS" => $subnet_data['dhcpoptdomain-name-servers'],
- "NEXTSERVER" => $subnet_data['dhcpoptnext-server'],
- "FILENAME" => $subnet_data['dhcpoptfilename'],
- "SRVIDENT" => $subnet_data['dhcpoptserver-identifier'],
- "NTPSERVERS" => $subnet_data['dhcpoptntp-servers'],
- "OPTGENERIC" => $subnet_data['dhcpoptgeneric'],
- "DHCPOFFERNOWDN" => $subnet_data['dhcphlpcont'],
- "DHCPSVNOW" => $dhcpsvnow,
- "MNR" => $mnr,
- "SBMNR" => $sbmnr,
- "MCNR" => $mcnr));
-
-
-# alternative DHCP Services
-$altdhcp = alternative_dhcpservices($subnet_data['dhcphlpcont']);
-
-$template->assign(array("DHCPSVDN" => "",
- "DHCPSVCN" => "",
- "DHCPSVAU" => ""));
-if (count($altdhcp) != 0){
- $template->define_dynamic("Dhcpservices", "Webseite");
- foreach ($altdhcp as $item){
- $template->assign(array("DHCPSVDN" => $item['dn'],
- "DHCPSVCN" => $item['cn'],
- "DHCPSVAU" => $item['au']));
- $template->parse("DHCPSERVICES_LIST", ".Dhcpservices");
- }
-}
-
-###################################################################################
-
-include("dhcp_footer.inc.php");
-
-?> \ No newline at end of file