diff options
author | Tarik Gasmi | 2007-10-26 10:41:22 +0200 |
---|---|---|
committer | Tarik Gasmi | 2007-10-26 10:41:22 +0200 |
commit | 310554c02e4b51c5300f8bdf8ad15e3f0520bc53 (patch) | |
tree | 277727e7c13eeaec94fe8089f547f3108b727bcc /ldap-site-mngmt/webinterface/standard_header.inc.php | |
parent | This should fix a small bug reported by Reiner for SuSE10.3 in stage3. (diff) | |
download | core-310554c02e4b51c5300f8bdf8ad15e3f0520bc53.tar.gz core-310554c02e4b51c5300f8bdf8ad15e3f0520bc53.tar.xz core-310554c02e4b51c5300f8bdf8ad15e3f0520bc53.zip |
LSM Webinterface, new actualized Version
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1401 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'ldap-site-mngmt/webinterface/standard_header.inc.php')
-rw-r--r-- | ldap-site-mngmt/webinterface/standard_header.inc.php | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/ldap-site-mngmt/webinterface/standard_header.inc.php b/ldap-site-mngmt/webinterface/standard_header.inc.php index bf975c90..21483eee 100644 --- a/ldap-site-mngmt/webinterface/standard_header.inc.php +++ b/ldap-site-mngmt/webinterface/standard_header.inc.php @@ -2,6 +2,7 @@ session_cache_expire(30); session_start(); + include('lib/config.inc.php'); include('lib/ldap.inc.php'); include('lib/ldap2.inc.php'); @@ -14,6 +15,21 @@ include('lib/dhcp_management_functions.php'); include('lib/rbs_management_functions.php'); include("class.FastTemplate.php"); +//print_r($_SESSION['status']); +if ( !isset($_SESSION['status']) ){ + redirect(0,"../index.php","",$addSessionId = FALSE); + exit; +} +if ( $_SESSION['status'] != "in" ){ + //$_SESSION['status'] != "out"; + redirect(0,"../index.php","",$addSessionId = FALSE); + exit; +} + + // Fehlerausgabe im Browser anschalten +ini_set('display_errors', 0); +// nur Laufzeitfehler ausgeben +error_reporting(E_ALL ^ E_NOTICE | E_STRICT); $uid = $_SESSION['uid']; $userPassword = $_SESSION['userPassword']; @@ -28,13 +44,13 @@ $rollen = $_SESSION['rollen']; if (!($ds = uniLdapConnect($uid,$userPassword))){ echo "<html> <head> - <title>Rechner und IP Management</title> + <title>Zentrales Rechner / IP Management</title> <link rel='stylesheet' href='../styles.css' type='text/css'> </head> <body> <table border='0' cellpadding='30' cellspacing='0'> - <tr><td> - Es konnte keine Verbindung zum LDAP Server hergestellt werden! + <tr valign='middle'><td align='center'> + <h3>Es konnte keine Verbindung zum LDAP Server hergestellt werden!</h3> </td></tr></table></body> </html> "; @@ -60,7 +76,7 @@ if ($auDN != ""){ if ($expAuDn[1] == "ou=RIPM"){ $domDN = "ou=DNS,".$suffix; } - else{$domDN = $domain_data[0]['dn']; echo "<br>";} + else{$domDN = $domain_data[0]['dn']; } $domprefix = str_replace('.'.$domsuffix,'',$assocdom); # print_r($domprefix); |