972d40d926df3e2a30b4e71977699aed23f27453
[squirrelmail.git] / include / errors.php
1 <?php
2
3 /**
4 * errors.php
5 *
6 * @copyright &copy; 2005-2006 The SquirrelMail Project Team
7 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
8 * @version $Id$
9 * @package squirrelmail
10 */
11
12 /** init error array */
13 $aError = array();
14
15 define('SQM_ERROR_IMAP',1);
16 define('SQM_ERROR_FS',2);
17 define('SQM_ERROR_SMTP',4);
18 define('SQM_ERROR_LDAP',8);
19 define('SQM_ERROR_DB',16);
20 define('SQM_ERROR_PLUGIN',32);
21 // define('SQM_ERROR_X',64); future error category
22
23
24
25 $aErrors['SQM_IMAP_NO_THREAD'] = array(
26 'level' => E_USER_ERROR,
27 'category' => SQM_ERROR_IMAP,
28 'message' => _("Thread sorting is not supported by your IMAP server.") . "\n" .
29 _("Please contact your system administrator and report this error."),
30 'link' => '',
31 'tip' => _("Run \"configure\", choose option 4 (General options) and set option 10 (Disable server thread sort) to true).")
32 );
33
34 $aErrors['SQM_IMAP_NO_SORT'] = array(
35 'level' => E_USER_ERROR,
36 'category' => SQM_ERROR_IMAP,
37 'message' => _( "Server-side sorting is not supported by your IMAP server.") . "\n" .
38 _("Please contact your system administrator and report this error."),
39 'link' => '',
40 'tip' => _("Run \"configure\", choose option 4 (General options) and set option 11 (Disable server-side sorting) to true.")
41 );
42
43 $aErrors['SQM_IMAP_BADCHARSET'] = array(
44 'level' => E_USER_NOTICE,
45 'category' => SQM_ERROR_IMAP,
46 'message' => _( "Your used charset is not supported by your IMAP server.") . "\n" .
47 _("Please contact your system administrator and report this error."),
48 'link' => '',
49 '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.")
50 );
51
52 $aErrors['SQM_IMAP_ERROR'] = array(
53 'level' => E_USER_ERROR,
54 'category' => SQM_ERROR_IMAP,
55 'message' => _( "Your IMAP server returned an error.") . "\n" .
56 _("Please contact your system administrator and report this error."),
57 'link' => ''
58 );
59 //$aError['SQM_FS'] // Filesystem related errors
60
61 ?>