Fixing HTML vaidation.
[squirrelmail.git] / include / errors.php
CommitLineData
1455d7ec 1<?php
2
3/**
57311df7 4 * errors.php
5 *
d4e46166 6 * @copyright &copy; 2005-2009 The SquirrelMail Project Team
4b4abf93 7 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
57311df7 8 * @version $Id$
9 * @package squirrelmail
10 */
1455d7ec 11
57311df7 12/** init error array */
1455d7ec 13$aError = array();
14
15define('SQM_ERROR_IMAP',1);
16define('SQM_ERROR_FS',2);
17define('SQM_ERROR_SMTP',4);
18define('SQM_ERROR_LDAP',8);
19define('SQM_ERROR_DB',16);
20define('SQM_ERROR_PLUGIN',32);
21// define('SQM_ERROR_X',64); future error category
22
6d31e3a3 23
24
1455d7ec 25$aErrors['SQM_IMAP_NO_THREAD'] = array(
26 'level' => E_USER_ERROR,
27 'category' => SQM_ERROR_IMAP,
47fa73ef 28 'message' => _("Thread sorting is not supported by your IMAP server.") . "\n" .
29 _("Please contact your system administrator and report this error."),
1455d7ec 30 'link' => '',
6d31e3a3 31 'tip' => _("Run \"configure\", choose option 4 (General options) and set option 10 (Disable server thread sort) to true).")
1455d7ec 32);
33
34$aErrors['SQM_IMAP_NO_SORT'] = array(
35 'level' => E_USER_ERROR,
36 'category' => SQM_ERROR_IMAP,
47fa73ef 37 'message' => _( "Server-side sorting is not supported by your IMAP server.") . "\n" .
38 _("Please contact your system administrator and report this error."),
1455d7ec 39 'link' => '',
6d31e3a3 40 'tip' => _("Run \"configure\", choose option 4 (General options) and set option 11 (Disable server-side sorting) to true.")
1455d7ec 41);
42
6d31e3a3 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
81de00c0 52$aErrors['SQM_IMAP_APPEND_QUOTA_ERROR'] = array(
53 'level' => E_USER_NOTICE,
54 'category' => SQM_ERROR_IMAP,
55 'message' => _( "Out of quota error."),
56 'link' => '',
e7c3f032 57 'tip' => _("Remove unneccessary messages from your folders. Start with your Trash folder.")
81de00c0 58);
59
60$aErrors['SQM_IMAP_APPEND_ERROR'] = array(
61 'level' => E_USER_NOTICE,
62 'category' => SQM_ERROR_IMAP,
63 'message' => _( "An error occured when SquirrelMail appended a message to the mailbox as listed in this message."),
64 'link' => ''
65);
66
6d31e3a3 67$aErrors['SQM_IMAP_ERROR'] = array(
68 'level' => E_USER_ERROR,
69 'category' => SQM_ERROR_IMAP,
70 'message' => _( "Your IMAP server returned an error.") . "\n" .
71 _("Please contact your system administrator and report this error."),
72 'link' => ''
73);
81de00c0 74
75$aErrors['SQM_IMAP_BYE'] = array(
76 'level' => E_USER_ERROR,
77 'category' => SQM_ERROR_IMAP,
78 'message' => _( "IMAP server closed the connection.") . "\n" .
79 _("Please contact your system administrator and report this error."),
80 'link' => ''
81);
82
1455d7ec 83//$aError['SQM_FS'] // Filesystem related errors