thomascube
2005-10-31 7cc38e0bebb30f12b1c643ea96a038453be185e1
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()))