summaryrefslogtreecommitdiffstats
path: root/ldap-site-mngmt/webinterface/start.php
diff options
context:
space:
mode:
Diffstat (limited to 'ldap-site-mngmt/webinterface/start.php')
-rw-r--r--ldap-site-mngmt/webinterface/start.php83
1 files changed, 0 insertions, 83 deletions
diff --git a/ldap-site-mngmt/webinterface/start.php b/ldap-site-mngmt/webinterface/start.php
deleted file mode 100644
index d0d34320..00000000
--- a/ldap-site-mngmt/webinterface/start.php
+++ /dev/null
@@ -1,83 +0,0 @@
-<?php
-
-#Pfad festlegen wo die Dateien sich befinden
-include('standard_header.inc.php');
-
-$titel = "Rechner und IP Management Startseite";
-$webseite = "home.dwt";
-
-# neues Template-Objekt erstellen
-$template = new FastTemplate(".");
-# dem erstellten Template-Objekt eine Vorlage zuweisen
-$template->define(array("Vorlage" => "index.dwt",
- "Login" => "logout_form.inc.dwt",
- "Webseite" => $webseite));
-
-$template->assign(array("SEITENTITEL" => $titel,"USERCN" => $usercn));
-
-############################################################
-
-$template->define_dynamic("Aus", "Webseite");
-#$template->define_dynamic("Roles", "Webseite");
-
-$roles = getRoles($ds, $userDN);
-#print_r($roles); echo "<br><br>";
-if (count($roles) == 1 ){
- $mesg = "";
- $rollenurlstring = implode('_',$roles[0]['role']);
- $url = "zwischen.php?audn=".$roles[0]['au']."&rollen=".$rollenurlstring;
- redirect(0, $url, $mesg, $addSessionId = TRUE);
- die;
-}
-
-
-foreach ($roles as $item){
-
- $auDN = $item['au'];
- $expDN = explode(',',$auDN);
- $expOU = explode('=',$expDN[0]);
- $au = $expOU[1];
- $audata = get_au_data($auDN,array("cn","description"));
-
- $template->assign(array( "CN" => "","MA" => "", "HA" => "", "DA" => "", "ZA" => "", "RA" => ""));
- $template->assign(array( "AU" => $au, "AUDN" => $auDN, "CN" => $audata[0]['cn'], "ROLLEN" => implode('_',$item['role'])));
-
- $rollen = "";
- foreach ($item['role'] as $role){
- $rollen .= $role." &nbsp;";
- $template->assign(array( "MA" => $rollen));
-
- /*if ($role == MainAdmin){
- $template->assign(array( "MA" => $role));
- }
- if ($role == HostAdmin){
- $template->assign(array( "HA" => $role));
- }
- if ($role == DhcpAdmin){
- $template->assign(array( "DA" => $role));
- }
- if ($role == ZoneAdmin){
- $template->assign(array( "ZA" => $role));
- }
- if ($role == RbsAdmin){
- $template->assign(array( "RA" => $role));
- }*/
- }
- $template->parse("AUS_LIST", ".Aus");
- $template->clear_dynamic("Aus");
-}
-
-
-#############################################################
-
-# Daten in die Vorlage parsen
-$template->assign(array("PFAD" => $START_PATH));
-
-$template->parse("LOGIN", "Login");
-$template->parse("HAUPTFENSTER", "Webseite");
-$template->parse("PAGE", "Vorlage");
-
-# Fertige Seite an den Browser senden
-$template->FastPrint("PAGE");
-
-?>