summaryrefslogtreecommitdiffstats
path: root/ldap-site-mngmt/webinterface/standard_header.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'ldap-site-mngmt/webinterface/standard_header.inc.php')
-rw-r--r--ldap-site-mngmt/webinterface/standard_header.inc.php86
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