Changeset 3331 for branches/2.2/phpgwapi


Ignore:
Timestamp:
10/06/10 10:53:41 (14 years ago)
Author:
rafaelraymundo
Message:

Ticket #1366 - Configura dias de validade da senha do usuario(default 90 dias)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/phpgwapi/templates/default/navbar.inc.php

    r1705 r3331  
    265265                                         '</script>'; 
    266266                        } 
    267                          
    268  
    269                         if(($GLOBALS['phpgw_info']['user']['lastpasswd_change'] == '0') && (($GLOBALS['phpgw_info']['user']['agree_terms'] == 1) || ($GLOBALS['phpgw_info']['server']['use_agree_term']!='True'))) 
     267 
     268                        if (!$GLOBALS['phpgw_info']['server']['max_password_age']) 
     269                                $GLOBALS['phpgw_info']['server']['max_password_age'] = 90; 
     270 
     271                        if(($GLOBALS['phpgw_info']['user']['lastpasswd_change'] == '0'  && (($GLOBALS['phpgw_info']['user']['agree_terms'] == 1) || ($GLOBALS['phpgw_info']['server']['use_agree_term']!='True'))) || 
     272                                ($GLOBALS['phpgw_info']['user']['lastpasswd_change'] < time() - (86400*$GLOBALS['phpgw_info']['server']['max_password_age']))) 
    270273                        { 
    271274                                $changepasswd_url = $_SERVER['HTTP_HOST'] . $GLOBALS['phpgw_info']['server']['webserver_url'] . '/preferences/changepassword.php?cd=1'; 
Note: See TracChangeset for help on using the changeset viewer.