From b192e30ee65a420e12b71cbc0b410754983c052e Mon Sep 17 00:00:00 2001 From: Tarik Gasmi Date: Mon, 14 May 2007 07:46:29 +0000 Subject: Some webinterface data. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1076 95ad53e4-c205-0410-b2fa-d234c58c8868 --- ldap-site-mngmt/webinterface/start.php | 68 ++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 ldap-site-mngmt/webinterface/start.php (limited to 'ldap-site-mngmt/webinterface/start.php') diff --git a/ldap-site-mngmt/webinterface/start.php b/ldap-site-mngmt/webinterface/start.php new file mode 100644 index 00000000..f64005e5 --- /dev/null +++ b/ldap-site-mngmt/webinterface/start.php @@ -0,0 +1,68 @@ +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 "

"; +foreach ($roles as $item){ + + $auDN = $item['au']; + $expDN = explode(',',$auDN); + $expOU = explode('=',$expDN[0]); + $au = $expOU[1]; + + $template->assign(array( "MA" => "", "HA" => "", "DA" => "", "ZA" => "")); + $template->assign(array( "AU" => $au, "AUDN" => $auDN, "ROLLEN" => implode('_',$item['role']))); + + foreach ($item['role'] as $role){ + 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)); + } + } + $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"); +?> -- cgit v1.2.3-55-g7522