summaryrefslogtreecommitdiffstats
path: root/ldap-site-mngmt/webinterface/standard_header.inc.php
diff options
context:
space:
mode:
authorTarik Gasmi2007-09-18 17:18:38 +0200
committerTarik Gasmi2007-09-18 17:18:38 +0200
commit12183ece8e4cb1bb81072a72f696572c8b3a07ee (patch)
tree1e7b274e6a4229d4d1819d4feaabe272b1037a62 /ldap-site-mngmt/webinterface/standard_header.inc.php
parentAdded theme.conf for openslx theme for pxe. Only labels should be added autom... (diff)
downloadcore-12183ece8e4cb1bb81072a72f696572c8b3a07ee.tar.gz
core-12183ece8e4cb1bb81072a72f696572c8b3a07ee.tar.xz
core-12183ece8e4cb1bb81072a72f696572c8b3a07ee.zip
ldap-site-mngmt: actualized WebIF and DHCPConfig Generationscript
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1340 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.php42
1 files changed, 23 insertions, 19 deletions
diff --git a/ldap-site-mngmt/webinterface/standard_header.inc.php b/ldap-site-mngmt/webinterface/standard_header.inc.php
index 62e51f9b..f86de2a0 100644
--- a/ldap-site-mngmt/webinterface/standard_header.inc.php
+++ b/ldap-site-mngmt/webinterface/standard_header.inc.php
@@ -38,28 +38,32 @@ if (!($ds = uniLdapConnect($uid,$userPassword))){
</html>
";
die;
-}
+}
-# 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'];
+if ($auDN != ""){
-# AU Domain Daten holen
-$domain_data = get_domain_data($auDN,array("dn"));
+ # 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']; echo "<br>";}
+
+ $domprefix = str_replace('.'.$domsuffix,'',$assocdom);
+ # print_r($domprefix);
-$expAuDn = explode(",",$auDN);
-if ($expAuDn[1] == "ou=RIPM"){
- $domDN = "ou=DNS,".$suffix;
}
-else{$domDN = $domain_data[0]['dn']; echo "<br>";}
-
-$domprefix = str_replace('.'.$domsuffix,'',$assocdom);
-# print_r($domprefix);
?> \ No newline at end of file