| | |
| | | |
| | | // increase maximum execution time for php scripts |
| | | // (does not work in safe mode) |
| | | @set_time_limit(120); |
| | | if (!ini_get('safe_mode')) @set_time_limit(120); |
| | | |
| | | // include base files |
| | | require_once('include/rcube_shared.inc'); |
| | |
| | | } |
| | | |
| | | // check session and auth cookie |
| | | else if ($_action!='login' && $_SESSION['user_id']) |
| | | else if ($_action != 'login' && $_SESSION['user_id'] && $_action != 'send') |
| | | { |
| | | if (!rcmail_authenticate_session() || |
| | | (!empty($CONFIG['session_lifetime']) && isset($SESS_CHANGED) && $SESS_CHANGED + $CONFIG['session_lifetime']*60 < mktime())) |