From: hickert Date: Mon, 5 Jul 2010 12:46:23 +0000 (+0000) Subject: Added comments X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7eb31750a82ef26d33ace7c63c535ff40810badc;p=gosa.git Added comments git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6@18930 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/html/main.php b/gosa-core/html/main.php index 04c374026..97c3c9bd8 100644 --- a/gosa-core/html/main.php +++ b/gosa-core/html/main.php @@ -192,11 +192,19 @@ $smarty->assign("hideMenus", FALSE); if ($config->get_cfg_value("handleExpiredAccounts") == "true"){ $expired= ldap_expired_account($config, $ui->dn, $ui->username); if ($expired == 2){ + + // The users password is about to xpire soon, display a warning message. 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){ + + // The password is expired, we are now going to enforce a new one from the user. + + // Hide the GOsa menus to avoid leaving the enforced password change dialog. $smarty->assign("hideMenus", TRUE); $plug = (isset($_GET['plug'])) ? $_GET['plug'] : null; + + // Search for the 'password' class and set its id as active plug. foreach ($plist->dirlist as $key => $value){ if (preg_match("/\bpassword\b/i",$value)){ if($plug != $key) {