thomascube
2005-10-31 dba5f7c44a92c8e6986fa9395536347508145f60
index.php
@@ -46,7 +46,9 @@
$OUTPUT_TYPE = 'html';
$JS_OBJECT_NAME = 'rcmail';
if ($INSTALL_PATH!='')
if (empty($INSTALL_PATH))
  $INSTALL_PATH = './';
else
  $INSTALL_PATH .= '/';
   
// RC include folders MUST be included FIRST to avoid other
@@ -141,7 +143,7 @@
  }
// check session cookie and auth string
else if ($_action!='login' && $sess_auth)
else if ($_action!='login' && $sess_auth && $_SESSION['user_id'])
  {
  if ($_auth !== $sess_auth || $_auth != rcmail_auth_hash($_SESSION['client_id'], $_SESSION['auth_time']) ||
      ($CONFIG['session_lifetime'] && $SESS_CHANGED + $CONFIG['session_lifetime']*60 < mktime()))