diff options
Diffstat (limited to 'ldap-site-mngmt/webinterface/dhcp/dhcpsubnets.php')
-rw-r--r-- | ldap-site-mngmt/webinterface/dhcp/dhcpsubnets.php | 89 |
1 files changed, 0 insertions, 89 deletions
diff --git a/ldap-site-mngmt/webinterface/dhcp/dhcpsubnets.php b/ldap-site-mngmt/webinterface/dhcp/dhcpsubnets.php deleted file mode 100644 index 88e10576..00000000 --- a/ldap-site-mngmt/webinterface/dhcp/dhcpsubnets.php +++ /dev/null @@ -1,89 +0,0 @@ -<?php - -include('../standard_header.inc.php'); - -# Dateiname und evtl. Pfad des Templates für die Webseite -$webseite = "dhcpsubnets.dwt"; - -include('dhcp_header.inc.php'); - -$mnr = -1; -$sbmnr = -1; -$mcnr = -1; - -################################################################################### - -$mnr = $_GET['mnr']; - -# Menuleisten erstellen -createMainMenu($rollen, $mainnr); -createDhcpMenu($rollen, $mnr, $auDN, $sbmnr); - -################################################################################### - -$template->assign(array("SUBNETDN" => "", - "SUBNETCN" => "Noch keine Subnets angelegt", - "NETMASK" => "", - "DHCP" => "", - "POOLS" => "")); - -# rbservice und pxe daten (voerst nur ein rbs) -$subnet_array = get_dhcpsubnets($auDN,array("dn","cn","dhcpoptnetmask","dhcprange","dhcphlpcont")); - -$template->define_dynamic("Subnets", "Webseite"); -$template->define_dynamic("Pools", "Webseite"); - -foreach ($subnet_array as $subnet){ - # Pools des Subnetzes - $pools = get_dhcppools_subnet($subnet['dn'],array("dhcprange","dhcpoptallow","dhcpoptdeny","dhcpoptignore")); - #print_r($pools); echo "<br><br>"; - $poollist = "<ul>"; - foreach ($pools as $pool){ - $poollist .= "<li>"; - if (count($pool['dhcprange']) >1){ - for ($i=0; $i<count($pool['dhcprange']); $i++){ - $range = explode('_',$pool['dhcprange'][$i]); - $poollist .= $range[0]." - ".$range[1]; - if ($i+1 != count($pool['dhcprange'])){ - $poollist .= "<br>"; - } - } - }else{ - $range = explode('_',$pool['dhcprange']); - $poollist .= $range[0]." - ".$range[1]; - } - if ($pool['dhcpoptallow'] != ""){ - $poollist .= "<br>ALLOW ".$pool['dhcpoptallow']; - } - if ($pool['dhcpoptignore'] != ""){ - $poollist .= "<br>IGNORE ".$pool['dhcpoptignore']; - } - if ($pool['dhcpoptdeny'] != ""){ - $poollist .= "<br>DENY ".$pool['dhcpoptdeny']; - } - $poollist .= " [Abt.: ".$pool['poolAU']."]</li><br>"; - } - $poollist .= "</ul>"; - - # Dienstzuordnung des Subnetzes - $dhcpservice = ""; - if ($subnet['dhcphlpcont'] != ""){ - $exp = ldap_explode_dn($subnet['dhcphlpcont'],1); - $dhcpservice = $exp[0]."<br>[".$exp[2]."]"; - } - - $subnetcn = "<a href='dhcpsubnet.php?dn=".$subnet['dn']."&mnr=".$mnr."' class='headerlink'><b>".$subnet['cn']."</b></a>"; - $template->assign(array("SUBNETDN" => $subnet['dn'], - "SUBNETCN" => $subnetcn, - "NETMASK" => $subnet['dhcpoptnetmask'], - "DHCP" => $dhcpservice, - "POOLS" => $poollist)); - $template->parse("SUBNETS_LIST", ".Subnets"); -} - - -################################################################################### - -include("dhcp_footer.inc.php"); - -?> |