thomascube
2006-09-07 e170b4b7f85767703293116c95d9e02020b1c99a
index.php
@@ -2,7 +2,7 @@
/*
 +-----------------------------------------------------------------------+
 | RoundCube Webmail IMAP Client                                         |
 | Version 0.1-beta2                                                     |
 | Version 0.1-20060907                                                  |
 |                                                                       |
 | Copyright (C) 2005-2006, RoundCube Dev. - Switzerland                 |
 | Licensed under the GNU GPL                                            |
@@ -40,7 +40,7 @@
*/
define('RCMAIL_VERSION', '0.1-beta2');
define('RCMAIL_VERSION', '0.1-20060907');
// define global vars
$CHARSET = 'UTF-8';
@@ -87,12 +87,6 @@
// set PEAR error handling
// PEAR::setErrorHandling(PEAR_ERROR_TRIGGER, E_USER_NOTICE);
// use gzip compression if supported
if (function_exists('ob_gzhandler') && !ini_get('zlib.output_compression'))
  ob_start('ob_gzhandler');
else
  ob_start();
// catch some url/post parameters
$_task = get_input_value('_task', RCUBE_INPUT_GPC);
@@ -104,6 +98,18 @@
if (!empty($_GET['_remote']))
  $REMOTE_REQUEST = TRUE;
// set output buffering
if ($_action != 'get' && $_action != 'viewsource')
  {
  // use gzip compression if supported
  if (function_exists('ob_gzhandler') && !ini_get('zlib.output_compression'))
    ob_start('ob_gzhandler');
  else
    ob_start();
  }
// start session with requested task
rcmail_startup($_task);
@@ -175,7 +181,7 @@
else if ($_action!='login' && $_SESSION['user_id'])
  {
  if (!rcmail_authenticate_session() ||
      ($CONFIG['session_lifetime'] && isset($SESS_CHANGED) && $SESS_CHANGED + $CONFIG['session_lifetime']*60 < mktime()))
      (!empty($CONFIG['session_lifetime']) && isset($SESS_CHANGED) && $SESS_CHANGED + $CONFIG['session_lifetime']*60 < mktime()))
    {
    $message = show_message('sessionerror', 'error');
    rcmail_kill_session();
@@ -288,6 +294,9 @@
  if ($_action=='rss')
    include('program/steps/mail/rss.inc');
  if ($_action=='quotaimg')
    include('program/steps/mail/quotaimg.inc');
  // make sure the message count is refreshed