| | |
| | | raise_error(array( |
| | | 'code' => 600, |
| | | 'type' => 'php', |
| | | 'file' => "config/main.inc.php", |
| | | 'file' => RCMAIL_CONFIG_DIR."/main.inc.php", |
| | | 'message' => "Acces denied for new user $username. 'auto_create_user' is disabled" |
| | | ), true, false); |
| | | } |
| | |
| | | if (!$valid || ($_SERVER['REQUEST_METHOD']!='POST' && $now - $_SESSION['auth_time'] > 300)) { |
| | | $_SESSION['last_auth'] = $_SESSION['auth_time']; |
| | | $_SESSION['auth_time'] = $now; |
| | | setcookie('sessauth', $this->get_auth_hash(session_id(), $now), '/', |
| | | $_SERVER['HTTPS'] && ($_SERVER['HTTPS']!='off')); |
| | | $cookie = session_get_cookie_params(); |
| | | setcookie('sessauth', $this->get_auth_hash(session_id(), $now), 0, $cookie['path'], |
| | | $cookie['domain'], $_SERVER['HTTPS'] && ($_SERVER['HTTPS']!='off')); |
| | | } |
| | | } |
| | | else { |