mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-09 23:48:28 +01:00
Default expires now one week from today, instead of 12-31-1969
This commit is contained in:
parent
9973835b36
commit
71b16171cf
@ -844,9 +844,11 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
$userData['account_expires_month'] = date('m',$userData['expires']);
|
||||
$userData['account_expires_day'] = date('d',$userData['expires']);
|
||||
$userData['account_expires_year'] = date('Y',$userData['expires']);
|
||||
/* Change this to be an admin/setup setting. For now, default to expire one week from today. */
|
||||
$time_var = time() + (60*60*24*7);
|
||||
$userData['account_expires_month'] = date('m',$userData['expires'] ? $userData['expires'] : $time_var);
|
||||
$userData['account_expires_day'] = date('d',$userData['expires'] ? $userData['expires'] : $time_var);
|
||||
$userData['account_expires_year'] = date('Y',$userData['expires'] ? $userData['expires'] : $time_var);
|
||||
}
|
||||
}
|
||||
$page_params['menuaction'] = 'admin.boaccounts.'.($_account_id?'edit':'add').'_user';
|
||||
|
Loading…
Reference in New Issue
Block a user