Changeset 882 in subversion


Ignore:
Timestamp:
Oct 17, 2007 4:44:10 PM (6 years ago)
Author:
thomasb
Message:

Show appropriate warning on connection error

Location:
trunk/roundcubemail
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/index.php

    r871 r882  
    33 +-----------------------------------------------------------------------+ 
    44 | RoundCube Webmail IMAP Client                                         | 
    5  | Version 0.1-20070809                                                  | 
     5 | Version 0.1-20071017                                                  | 
    66 |                                                                       | 
    77 | Copyright (C) 2005-2007, RoundCube Dev. - Switzerland                 | 
     
    4242 
    4343// application constants 
    44 define('RCMAIL_VERSION', '0.1-20070809'); 
     44define('RCMAIL_VERSION', '0.1-20071017'); 
    4545define('RCMAIL_CHARSET', 'UTF-8'); 
    4646define('JS_OBJECT_NAME', 'rcmail'); 
     
    173173  else 
    174174  { 
    175     $OUTPUT->show_message("loginfailed", 'warning'); 
     175    $OUTPUT->show_message($IMAP->error_code == -1 ? 'imaperror' : 'loginfailed', 'warning'); 
    176176    rcmail_kill_session(); 
    177177  } 
     
    202202  if (!$conn) 
    203203  { 
    204     $OUTPUT->show_message('imaperror', 'error'); 
     204    $OUTPUT->show_message($IMAP->error_code == -1 ? 'imaperror' : 'sessionerror', 'error'); 
    205205    rcmail_kill_session(); 
    206206  } 
  • trunk/roundcubemail/program/include/rcube_imap.inc

    r875 r882  
    6666  var $search_charset = ''; 
    6767  var $debug_level = 1; 
     68  var $error_code = 0; 
    6869 
    6970 
     
    132133    else if (!$this->conn && $GLOBALS['iil_error']) 
    133134      { 
     135      $this->error_code = $GLOBALS['iil_errornum']; 
    134136      raise_error(array('code' => 403, 
    135137                       'type' => 'imap', 
Note: See TracChangeset for help on using the changeset viewer.