Source for file constants.php
Documentation is available at constants.php
* Loads constants used by the rest of the SquirrelMail source.
* Before 1.5.2 script was stored in functions/constants.php
* @copyright © 1999-2006 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: constants.php,v 1.6 2006/09/28 14:21:51 pdontthink Exp $
/**************************************************************/
/* Set values for constants used by SquirrelMail preferences. */
/**************************************************************/
* Define basic, general purpose preference constants.
define('SMPREF_NONE', 'none');
* Define constants for location based preferences.
define('SMPREF_LOC_TOP', 'top');
define('SMPREF_LOC_BETWEEN', 'between');
define('SMPREF_LOC_BOTTOM', 'bottom');
define('SMPREF_LOC_LEFT', '');
define('SMPREF_LOC_RIGHT', 'right');
* Define preferences for folder settings.
define('SMPREF_UNSEEN_NONE', 1);
define('SMPREF_UNSEEN_INBOX', 2);
define('SMPREF_UNSEEN_ALL', 3);
define('SMPREF_UNSEEN_SPECIAL', 4); // Only special folders (since 1.2.5)
define('SMPREF_UNSEEN_NORMAL', 5); // Only normal folders (since 1.2.5)
define('SMPREF_UNSEEN_ONLY', 1);
define('SMPREF_UNSEEN_TOTAL', 2);
* Define constants for time/date display preferences.
define('SMPREF_TIME_24HR', 1);
define('SMPREF_TIME_12HR', 2);
* Define constants for javascript preferences.
define('SMPREF_JS_AUTODETECT', 2);
* default value for page_selector_max
* The number of pages to cache msg headers
define('SQM_MAX_PAGES_IN_CACHE',5);
* The number of mailboxes to cache msg headers
define('SQM_MAX_MBX_IN_CACHE',3);
* Sort constants used for sorting of messages
define('SQSORT_INT_DATE_ASC',13);
define('SQSORT_INT_DATE_DESC',14);
* Special sort constant thread which is added to above sort mode.
* By doing a bitwise check ($sort & SQSORT_THREAD) we know if the mailbox
* Mailbox preference array keys
define('MBX_PREF_AUTO_EXPUNGE',2);
define('MBX_PREF_INTERNALDATE',3);
// define('MBX_PREF_FUTURE',unique integer key);
* Email address array keys
define('SQM_ADDR_PERSONAL', 0);
define('SQM_ADDR_MAILBOX', 2);
* Supported columns to show in a messages list
* The MBX_PREF_COLUMNS contains an ordered array with these columns
define('SQM_COL_ATTACHMENT', 7);
define('SQM_COL_INT_DATE', 8);
* Generic variable type constants
define('SQ_TYPE_STRING', 'string');
define('SQ_TYPE_BOOL', 'bool');
define('SQ_TYPE_ARRAY', 'array');
* Template engines supported
define('SQ_PHP_TEMPLATE', 'PHP_');
define('SQ_SMARTY_TEMPLATE', 'Smarty_');
Documentation generated on Sat, 07 Oct 2006 16:10:11 +0300 by phpDocumentor 1.3.0RC6