if ($GLOBALS['phpgw']->acl->get_rights('changepassword','preferences') > 0) { if ($GLOBALS['phpgw_info']['user']['lastpasswd_change'] == 0) { $api_messages = lang('You are required to change your password during your first login') . '
Click here'; } else if ($GLOBALS['phpgw_info']['user']['lastpasswd_change'] < time() - (86400*30)) { $api_messages = lang('it has been more then %1 days since you changed your password',30) . '
Click ' . lang('here') . ''; } if($api_messages) { $url = parse_url($GLOBALS['phpgw']->link('/preferences/changepassword.php')); if($_SERVER['PHP_SELF'] != $url['path']) { $var['messages'] = $api_messages; } } }