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/standard_header.inc.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/standard_header.inc.php')
| -rw-r--r-- | ldap-site-mngmt/webinterface/standard_header.inc.php | 86 |
1 files changed, 0 insertions, 86 deletions
diff --git a/ldap-site-mngmt/webinterface/standard_header.inc.php b/ldap-site-mngmt/webinterface/standard_header.inc.php deleted file mode 100644 index 21483eee..00000000 --- a/ldap-site-mngmt/webinterface/standard_header.inc.php +++ /dev/null @@ -1,86 +0,0 @@ -<?php -session_cache_expire(30); -session_start(); - - -include('lib/config.inc.php'); -include('lib/ldap.inc.php'); -include('lib/ldap2.inc.php'); -include('lib/commonlib.inc.php'); -include('syntax_check.php'); -include('lib/au_management_functions.php'); -include('lib/ip_management_functions.php'); -include('lib/host_management_functions.php'); -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']; -$userDN = $_SESSION['dn']; -$usercn = $_SESSION['cn']; -$auDN = $_SESSION['audn']; -#echo "auDN: "; print_r($auDN); echo "<br>"; -$rollen = $_SESSION['rollen']; -#echo "rollen: "; print_r($rollen); echo "<br>"; - - -if (!($ds = uniLdapConnect($uid,$userPassword))){ - echo "<html> - <head> - <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 valign='middle'><td align='center'> - <h3>Es konnte keine Verbindung zum LDAP Server hergestellt werden!</h3> - </td></tr></table></body> - </html> - "; - die; -} - -if ($auDN != ""){ - - # AU Daten holen - $attributes = array("ou","associateddomain","maxipblock","freeipblock","cn","description"); - $au_data = get_au_data($auDN,$attributes); - $assocdom = $au_data[0]['associateddomain']; - $au_ou = $au_data[0]['ou']; - $au_cn = $au_data[0]['cn']; - $au_desc = $au_data[0]['description']; - $au_mipb = $au_data[0]['maxipblock']; - $au_fipb = $au_data[0]['freeipblock']; - - # AU Domain Daten holen - $domain_data = get_domain_data($auDN,array("dn")); - - $expAuDn = explode(",",$auDN); - if ($expAuDn[1] == "ou=RIPM"){ - $domDN = "ou=DNS,".$suffix; - } - else{$domDN = $domain_data[0]['dn']; } - - $domprefix = str_replace('.'.$domsuffix,'',$assocdom); - # print_r($domprefix); - -} - -?>
\ No newline at end of file |
