thomascube
2008-09-21 95fcc33472a34f4892f223d39452668467cb3129
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,7 +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));
        $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 {
@@ -895,6 +897,9 @@
    if (!$p['task'] || !in_array($p['task'], rcmail::$main_tasks))
      $p['task'] = $this->task;
    $p['_task'] = $p['task'];
    unset($p['task']);
    $url = './';
    $delm = '?';
    foreach (array_reverse($p) as $par => $val)