errors.php 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. /**
  3. * errors.php
  4. *
  5. * @copyright &copy; 2005-2006 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_ERROR'] = array(
  44. 'level' => E_USER_ERROR,
  45. 'category' => SQM_ERROR_IMAP,
  46. 'message' => _( "Your IMAP server returned an error.") . "\n" .
  47. _("Please contact your system administrator and report this error."),
  48. 'link' => ''
  49. );
  50. //$aError['SQM_FS'] // Filesystem related errors
  51. ?>