errors.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. $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 (Allow server thread sort to false")
  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 (Allow server-side sorting to false")
  34. );
  35. //$aError['SQM_FS'] // Filesystem related errors