Changeset 3338 for branches/2.2
- Timestamp:
- 10/07/10 13:43:20 (14 years ago)
- Location:
- branches/2.2
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/admin/templates/default/config.tpl
r3331 r3338 143 143 144 144 <tr class="row_off"> 145 <td>{lang_How_many_days_the_password_should_be_kept( default_90)_?}:</td>146 <td> 147 <input name="newsettings[max_p assword_age]" value="{value_max_password_age}" size="5">145 <td>{lang_How_many_days_the_password_should_be_kept(empty to disable this)_?}:</td> 146 <td> 147 <input name="newsettings[max_pwd_age]" value="{value_max_pwd_age}" size="5"> 148 148 </td> 149 149 </tr> -
branches/2.2/phpgwapi/templates/default/navbar.inc.php
r3331 r3338 266 266 } 267 267 268 if (!$GLOBALS['phpgw_info']['server']['max_password_age']) 269 $GLOBALS['phpgw_info']['server']['max_password_age'] = 90; 268 if ($GLOBALS['phpgw_info']['server']['max_pwd_age'] && $GLOBALS['phpgw_info']['server']['max_pwd_age'] > 0 ) 269 { 270 $aux = time() - (86400*$GLOBALS['phpgw_info']['server']['max_pwd_age']); 271 } 272 else 273 { 274 $aux = $GLOBALS['phpgw_info']['server']['max_pwd_age']; 275 } 270 276 271 277 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'])))278 $GLOBALS['phpgw_info']['user']['lastpasswd_change'] < $aux) 273 279 { 274 280 $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.