errors.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * errors.php
  4. *
  5. * Copyright (c) 2005 The SquirrelMail Project Team
  6. * Licensed under the GNU GPL. For full terms see the file COPYING.
  7. *
  8. * @version $Id$
  9. * @package squirrelmail
  10. */
  11. /** init error array */
  12. $aError = array();
  13. define('SQM_ERROR_IMAP',1);
  14. define('SQM_ERROR_FS',2);
  15. define('SQM_ERROR_SMTP',4);
  16. define('SQM_ERROR_LDAP',8);
  17. define('SQM_ERROR_DB',16);
  18. define('SQM_ERROR_PLUGIN',32);
  19. // define('SQM_ERROR_X',64); future error category
  20. $aErrors['SQM_IMAP_NO_THREAD'] = array(
  21. 'level' => E_USER_ERROR,
  22. 'category' => SQM_ERROR_IMAP,
  23. 'message' => _("Thread sorting is not supported by your IMAP server.") . "\n" .
  24. _("Please contact your system administrator and report this error."),
  25. 'link' => '',
  26. 'tip' => _("Run \"configure\", choose option 4 (General options) and set option 10 (Allow server thread sort to false).")
  27. );
  28. $aErrors['SQM_IMAP_NO_SORT'] = array(
  29. 'level' => E_USER_ERROR,
  30. 'category' => SQM_ERROR_IMAP,
  31. 'message' => _( "Server-side sorting is not supported by your IMAP server.") . "\n" .
  32. _("Please contact your system administrator and report this error."),
  33. 'link' => '',
  34. 'tip' => _("Run \"configure\", choose option 4 (General options) and set option 11 (Allow server-side sorting to false).")
  35. );
  36. //$aError['SQM_FS'] // Filesystem related errors
  37. ?>