summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7a4b68c)
raw | patch | inline | side by side (parent: 7a4b68c)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 5 Jul 2010 12:42:55 +0000 (12:42 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 5 Jul 2010 12:42:55 +0000 (12:42 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@18929 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/html/main.php | patch | blob | history |
index 2f19db629a72e526cb23a74502777817d3311612..04c37402637e00a01e7850041f60e9b39a5164b0 100644 (file)
--- a/gosa-core/html/main.php
+++ b/gosa-core/html/main.php
$plist->gen_headlines();
$plist->gen_menu();
+/* check if we are using account expiration */
+$smarty->assign("hideMenus", FALSE);
+if ($config->get_cfg_value("handleExpiredAccounts") == "true"){
+ $expired= ldap_expired_account($config, $ui->dn, $ui->username);
+ if ($expired == 2){
+ new log("security","gosa","",array(),"password for user \"$ui->username\" is about to expire") ;
+ msg_dialog::display(_("Password change"), _("Your password is about to expire, please change your password!"), INFO_DIALOG);
+ } elseif ($expired == 3){
+ $smarty->assign("hideMenus", TRUE);
+ $plug = (isset($_GET['plug'])) ? $_GET['plug'] : null;
+ foreach ($plist->dirlist as $key => $value){
+ if (preg_match("/\bpassword\b/i",$value)){
+ if($plug != $key) {
+ $_GET['plug'] = $key;
+ }
+ break;
+ }
+ }
+ }
+}
+
+
if (isset($_GET['plug']) && $plist->plugin_access_allowed($_GET['plug'])){
$plug= validate($_GET['plug']);
$plugin_dir= $plist->get_path($plug);
}
}
-/* check if we are using account expiration */
-$smarty->assign("hideMenus", FALSE);
-if ($config->get_cfg_value("handleExpiredAccounts") == "true"){
- $expired= ldap_expired_account($config, $ui->dn, $ui->username);
- if ($expired == 2){
- new log("security","gosa","",array(),"password for user \"$ui->username\" is about to expire") ;
- msg_dialog::display(_("Password change"), _("Your password is about to expire, please change your password!"), INFO_DIALOG);
- } elseif ($expired == 3){
- $smarty->assign("hideMenus", TRUE);
- }
-}
-
/* Load plugin */
if (is_file("$plugin_dir/main.inc")){
$display ="";