thomascube
2008-09-19 bba657e64ff3334ba2f64e88e977a6dc107d682d
program/include/rcmail.php
@@ -460,7 +460,7 @@
      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);
    }
@@ -728,8 +728,9 @@
      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 {