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/rbs/new_rbservice.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/rbs/new_rbservice.php')
| -rw-r--r-- | ldap-site-mngmt/webinterface/rbs/new_rbservice.php | 94 |
1 files changed, 0 insertions, 94 deletions
diff --git a/ldap-site-mngmt/webinterface/rbs/new_rbservice.php b/ldap-site-mngmt/webinterface/rbs/new_rbservice.php deleted file mode 100644 index 29d6a947..00000000 --- a/ldap-site-mngmt/webinterface/rbs/new_rbservice.php +++ /dev/null @@ -1,94 +0,0 @@ -<?php -include('../standard_header.inc.php'); - -# 3. Dateiname und evtl. Pfad des Templates für die Webseite -$webseite = "new_rbservice.dwt"; - -include('rbs_header.inc.php'); - -################################################################################### - -$mnr = 0; -$sbmnr = -1; - -$mnr = $_GET['mnr']; - -# Menuleisten erstellen -createMainMenu($rollen, $mainnr); -createRBSMenu($rollen, $mnr, $auDN, $sbmnr); - -################################################################################### - -# nochmal zur Sicherheit: falls doch RBS angelegt - -$rbscn = str_replace ( "_", " ", $_GET['rbscn']); -$template->assign(array("RBSCN" => $rbscn, - "TFTP" => "", - "TFTPIP" => "", - "INITBOOTFILE" => "", - "TFTPKERNEL" => "", - "TFTPPXE" => "", - "TFTPCLIENTCONF" => "", - "NFS" => "", - "NFSIP" => "", - "NFSPATH" => "", - "NBD" => "", - "NBDIP" => "", - "HDN" => "", - "HN" => "", - "IP" => "", - "OFFERSELF" => $auDN, - "SELFOU" => $au_ou, - "MNR" => $mnr, - "SBMNR" => $sbmnr)); - - -# RBS 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++){ - $rbsoffers[$i]['ou'] = $expou[$i]; - $rbsoffers[$i]['dn'] = implode(',',$expdn); - $expdn = array_slice($expdn, 1); -} -#print_r($rbsoffers); - -$template->define_dynamic("Rbsoffers", "Webseite"); -foreach ($rbsoffers as $offer){ - $template->assign(array("RBSOFFER" => $offer['dn'], - "RBSOFFEROU" => $offer['ou'],)); - $template->parse("RBSOFFERS_LIST", ".Rbsoffers"); -} - -### Rechner -$hostorgroup = $exp[0]; -$hosts_array = get_hosts($auDN,array("dn","hostname","ipaddress")); - -$template->define_dynamic("TftpHosts", "Webseite"); -$template->define_dynamic("NfsHosts", "Webseite"); -$template->define_dynamic("NbdHosts", "Webseite"); -foreach ($hosts_array as $item){ - $template->assign(array("HDN" => $item['dn'], - "HN" => $item['hostname'], - "IP" => $item['ipaddress'])); - $template->parse("TFTPHOSTS_LIST", ".TftpHosts"); - $template->assign(array("HDN" => $item['dn'], - "HN" => $item['hostname'], - "IP" => $item['ipaddress'])); - $template->parse("NFSHOSTS_LIST", ".NfsHosts"); - $template->assign(array("HDN" => $item['dn'], - "HN" => $item['hostname'], - "IP" => $item['ipaddress'])); - $template->parse("NBDHOSTS_LIST", ".NbdHosts"); -} - - -################################################################################### - -include("rbs_footer.inc.php"); - -?>
\ No newline at end of file |
