diff options
| author | Lars Müller | 2008-03-01 19:04:26 +0100 |
|---|---|---|
| committer | Lars Müller | 2008-03-01 19:04:26 +0100 |
| commit | cd46d68991f7ae0cf319f915c5fecdd71b78ee34 (patch) | |
| tree | e9a48065f3203c8e16b14f82216452810d0f53ee /ldap-site-mngmt/webinterface/dhcp/new_dhcpservice.php | |
| parent | Optimizations, improvements ... (diff) | |
| download | core-cd46d68991f7ae0cf319f915c5fecdd71b78ee34.tar.gz core-cd46d68991f7ae0cf319f915c5fecdd71b78ee34.tar.xz core-cd46d68991f7ae0cf319f915c5fecdd71b78ee34.zip | |
Reorganisation of the repo structure as discussed on the devel list.
- Move the majority of trunk and all branches to the new openslx/ dir.
- Move ldap-site-mngmt to contrib/.
- Move openslx/trunk/os-plugins/plugins/vmchooser/src/ to
openslx-src-tools/trunk/os-plugins/plugins/vmchooser/
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1591 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'ldap-site-mngmt/webinterface/dhcp/new_dhcpservice.php')
| -rw-r--r-- | ldap-site-mngmt/webinterface/dhcp/new_dhcpservice.php | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/ldap-site-mngmt/webinterface/dhcp/new_dhcpservice.php b/ldap-site-mngmt/webinterface/dhcp/new_dhcpservice.php deleted file mode 100644 index 622bff20..00000000 --- a/ldap-site-mngmt/webinterface/dhcp/new_dhcpservice.php +++ /dev/null @@ -1,75 +0,0 @@ -<?php - -include('../standard_header.inc.php'); - -# Dateiname und evtl. Pfad des Templates für die Webseite -$webseite = "new_dhcpservice.dwt"; - -include('dhcp_header.inc.php'); - -$mnr = 0; -$sbmnr = -1; - -################################################################################### - -$mnr = $_GET['mnr']; - -# Menuleisten erstellen -createMainMenu($rollen, $mainnr); -createDhcpMenu($rollen, $mnr, $auDN, $sbmnr); - -################################################################################### - -$dhcpcn = str_replace ( "_", " ", $_GET['dhcpcn']); -$template->assign(array("CN" => $dhcpcn, - "PRIMARY" => "", - "SECONDARY" => "", - "DESCRIPTION" => "", - "STATEMENTS" => "", - "ALLOW" => "", - "DENY" => "", - "IGNORE" => "", - "DDNSUPDATE" => "", - "DEFAULTLEASE" => "", - "MAXLEASE" => "", - "USEHOSTDCL" => "", - "DOMAINNAME" => "", - "DOMAINNAMESERVERS" => "", - "MAXMESSIZE" => "", - "SRVIDENT" => "", - "NTPSERVERS" => "", - "OPTGENERIC" => "", - "OFFERSELF" => $auDN, - "SELFOU" => $au_ou, - "MNR" => $mnr, - "SBMNR" => $sbmnr)); - - -# DHCP Service Anbieten (ausser eigene AU) -$expdn = ldap_explode_dn($auDN, 0); # Mit Merkmalen -$expdn = array_slice($expdn, 2); -$expou = ldap_explode_dn($auDN, 1); # nur Werte -$expou = array_slice($expou, 2, -3); -#print_r($expou); echo "<br>"; -#print_r($expdn); echo "<br>"; -for ($i=0; $i<count($expou); $i++){ - $dhcpoffers[$i]['ou'] = $expou[$i]; - $dhcpoffers[$i]['dn'] = implode(',',$expdn); - $expdn = array_slice($expdn, 1); -} -#print_r($dhcpoffers); - -$template->define_dynamic("Dhcpoffers", "Webseite"); -if ( count($dhcpoffers) != 0 ){ - foreach ($dhcpoffers as $offer){ - $template->assign(array("DHCPOFFER" => $offer['dn'], - "DHCPOFFEROU" => $offer['ou'],)); - $template->parse("DHCPOFFERS_LIST", ".Dhcpoffers"); - } -} - -################################################################################### - -include("dhcp_footer.inc.php"); - -?>
\ No newline at end of file |
