alecpl
2010-09-08 2aa2b332f6e216ceeabc36ef6b942c40d91bda5a
index.php
@@ -2,9 +2,9 @@
/*
 +-------------------------------------------------------------------------+
 | RoundCube Webmail IMAP Client                                           |
 | Version 0.3-20090814                                                    |
 | Version 0.4-20100807                                                    |
 |                                                                         |
 | Copyright (C) 2005-2009, RoundCube Dev. - Switzerland                   |
 | Copyright (C) 2005-2010, RoundCube Dev. - Switzerland                   |
 |                                                                         |
 | This program is free software; you can redistribute it and/or modify    |
 | it under the terms of the GNU General Public License version 2          |
@@ -103,12 +103,7 @@
    $RCMAIL->authenticate_session();
    // log successful login
    if ($RCMAIL->config->get('log_logins')) {
      write_log('userlogins', sprintf('Successful login for %s (id %d) from %s',
        $RCMAIL->user->get_username(),
        $RCMAIL->user->ID,
        $_SERVER['REMOTE_ADDR']));
    }
    rcmail_log_login();
    // restore original request parameters
    $query = array();
@@ -247,9 +242,13 @@
while ($redirects < 5) {
  $stepfile = !empty($action_map[$RCMAIL->task][$RCMAIL->action]) ?
    $action_map[$RCMAIL->task][$RCMAIL->action] : strtr($RCMAIL->action, '-', '_') . '.inc';
  // execute a plugin action
  if (preg_match('/^plugin\./', $RCMAIL->action)) {
  if ($RCMAIL->plugins->is_plugin_task($RCMAIL->task)) {
    $RCMAIL->plugins->exec_action($RCMAIL->task.'.'.$RCMAIL->action);
    break;
  }
  else if (preg_match('/^plugin\./', $RCMAIL->action)) {
    $RCMAIL->plugins->exec_action($RCMAIL->action);
    break;
  }
@@ -275,5 +274,4 @@
  'line' => __LINE__,
  'file' => __FILE__,
  'message' => "Invalid request"), true, true);
?>