errors.php 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?php
  2. /**
  3. * errors.php
  4. *
  5. * @copyright &copy; 2005-2007 The SquirrelMail Project Team
  6. * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  7. * @version $Id$
  8. * @package squirrelmail
  9. */
  10. /** init error array */
  11. $aError = array();
  12. define('SQM_ERROR_IMAP',1);
  13. define('SQM_ERROR_FS',2);
  14. define('SQM_ERROR_SMTP',4);
  15. define('SQM_ERROR_LDAP',8);
  16. define('SQM_ERROR_DB',16);
  17. define('SQM_ERROR_PLUGIN',32);
  18. // define('SQM_ERROR_X',64); future error category
  19. $aErrors['SQM_IMAP_NO_THREAD'] = array(
  20. 'level' => E_USER_ERROR,
  21. 'category' => SQM_ERROR_IMAP,
  22. 'message' => _("Thread sorting is not supported by your IMAP server.") . "\n" .
  23. _("Please contact your system administrator and report this error."),
  24. 'link' => '',
  25. 'tip' => _("Run \"configure\", choose option 4 (General options) and set option 10 (Disable server thread sort) to true).")
  26. );
  27. $aErrors['SQM_IMAP_NO_SORT'] = array(
  28. 'level' => E_USER_ERROR,
  29. 'category' => SQM_ERROR_IMAP,
  30. 'message' => _( "Server-side sorting is not supported by your IMAP server.") . "\n" .
  31. _("Please contact your system administrator and report this error."),
  32. 'link' => '',
  33. 'tip' => _("Run \"configure\", choose option 4 (General options) and set option 11 (Disable server-side sorting) to true.")
  34. );
  35. $aErrors['SQM_IMAP_BADCHARSET'] = array(
  36. 'level' => E_USER_NOTICE,
  37. 'category' => SQM_ERROR_IMAP,
  38. 'message' => _( "Your used charset is not supported by your IMAP server.") . "\n" .
  39. _("Please contact your system administrator and report this error."),
  40. 'link' => '',
  41. 'tip' => _("Run \"configure\", choose option 4 (General options) and set option 12 (Allow server charset search) to false) or choose option 10 (Language settings) and set option 2 (Default charset) to a charset supported by your IMAP server.")
  42. );
  43. $aErrors['SQM_IMAP_APPEND_QUOTA_ERROR'] = array(
  44. 'level' => E_USER_NOTICE,
  45. 'category' => SQM_ERROR_IMAP,
  46. 'message' => _( "Out of quota error."),
  47. 'link' => '',
  48. 'tip' => _("Remove unneccessary messages from your folders. Start with your Trash folder.")
  49. );
  50. $aErrors['SQM_IMAP_APPEND_ERROR'] = array(
  51. 'level' => E_USER_NOTICE,
  52. 'category' => SQM_ERROR_IMAP,
  53. 'message' => _( "An error occured when SquirrelMail appended a message to the mailbox as listed in this message."),
  54. 'link' => ''
  55. );
  56. $aErrors['SQM_IMAP_ERROR'] = array(
  57. 'level' => E_USER_ERROR,
  58. 'category' => SQM_ERROR_IMAP,
  59. 'message' => _( "Your IMAP server returned an error.") . "\n" .
  60. _("Please contact your system administrator and report this error."),
  61. 'link' => ''
  62. );
  63. $aErrors['SQM_IMAP_BYE'] = array(
  64. 'level' => E_USER_ERROR,
  65. 'category' => SQM_ERROR_IMAP,
  66. 'message' => _( "IMAP server closed the connection.") . "\n" .
  67. _("Please contact your system administrator and report this error."),
  68. 'link' => ''
  69. );
  70. //$aError['SQM_FS'] // Filesystem related errors