/include/constants.php

Description

constants.php

Loads constants used by the rest of the SquirrelMail source.

Before 1.5.2 script was stored in functions/constants.php

Constants
MBX_PREF_AUTO_EXPUNGE = 2 (line 122)
MBX_PREF_COLUMNS = 4 (line 124)
MBX_PREF_INTERNALDATE = 3 (line 123)
MBX_PREF_LIMIT = 1 (line 121)
MBX_PREF_SORT = 0 (line 120)

Mailbox preference array keys

  • since: 1.5.1
PG_SEL_MAX = 10 (line 73)

default value for page_selector_max

  • since: 1.5.1
SMPREF_JS_AUTODETECT = 2 (line 67)
SMPREF_JS_OFF = 0 (line 65)

Define constants for javascript preferences.

  • since: 1.2.0
SMPREF_JS_ON = 1 (line 66)
SMPREF_LOC_BETWEEN = 'between' (line 37)
SMPREF_LOC_BOTTOM = 'bottom' (line 38)
SMPREF_LOC_LEFT = '' (line 39)
SMPREF_LOC_RIGHT = 'right' (line 40)
SMPREF_LOC_TOP = 'top' (line 36)

Define constants for location based preferences.

  • since: 1.2.0
SMPREF_NO = 0 (line 26)

Define basic, general purpose preference constants.

  • since: 1.2.0
SMPREF_NONE = 'none' (line 30)
SMPREF_OFF = 0 (line 27)
SMPREF_ON = 1 (line 29)
SMPREF_TIME_12HR = 2 (line 59)
SMPREF_TIME_24HR = 1 (line 58)

Define constants for time/date display preferences.

  • since: 1.2.0
SMPREF_UNSEEN_ALL = 3 (line 48)
SMPREF_UNSEEN_INBOX = 2 (line 47)
SMPREF_UNSEEN_NONE = 1 (line 46)

Define preferences for folder settings.

  • since: 1.2.0
SMPREF_UNSEEN_NORMAL = 5 (line 50)
SMPREF_UNSEEN_ONLY = 1 (line 51)
SMPREF_UNSEEN_SPECIAL = 4 (line 49)
SMPREF_UNSEEN_TOTAL = 2 (line 52)
SMPREF_YES = 1 (line 28)
SQM_ADDR_ADL = 1 (line 132)
SQM_ADDR_HOST = 3 (line 134)
SQM_ADDR_MAILBOX = 2 (line 133)
SQM_ADDR_PERSONAL = 0 (line 131)

Email address array keys

  • since: 1.5.1
SQM_COL_ATTACHMENT = 7 (line 148)
SQM_COL_BCC = 11 (line 152)
SQM_COL_CC = 10 (line 151)
SQM_COL_CHECK = 0 (line 141)

Supported columns to show in a messages list

The MBX_PREF_COLUMNS contains an ordered array with these columns

  • since: 1.5.1
SQM_COL_DATE = 2 (line 143)
SQM_COL_FLAGS = 4 (line 145)
SQM_COL_FROM = 1 (line 142)
SQM_COL_INT_DATE = 8 (line 149)
SQM_COL_PRIO = 6 (line 147)
SQM_COL_SIZE = 5 (line 146)
SQM_COL_SUBJ = 3 (line 144)
SQM_COL_TO = 9 (line 150)
SQM_MAX_MBX_IN_CACHE = 3 (line 86)

The number of mailboxes to cache msg headers

  • since: 1.5.1
SQM_MAX_PAGES_IN_CACHE = 5 (line 80)

The number of pages to cache msg headers

  • since: 1.5.1
SQSORT_CC_ASC = 11 (line 103)
SQSORT_CC_DESC = 12 (line 104)
SQSORT_DATE_ASC = 1 (line 93)
SQSORT_DATE_DESC = 2 (line 94)
SQSORT_FROM_ASC = 3 (line 95)
SQSORT_FROM_DESC = 4 (line 96)
SQSORT_INT_DATE_ASC = 13 (line 105)
SQSORT_INT_DATE_DESC = 14 (line 106)
SQSORT_NONE = 0 (line 92)

Sort constants used for sorting of messages

  • since: 1.5.1
SQSORT_SIZE_ASC = 7 (line 99)
SQSORT_SIZE_DESC = 8 (line 100)
SQSORT_SUBJ_ASC = 5 (line 97)
SQSORT_SUBJ_DESC = 6 (line 98)
SQSORT_THREAD = 32 (line 114)

Special sort constant thread which is added to above sort mode.

By doing a bitwise check ($sort & SQSORT_THREAD) we know if the mailbox is sorted by thread.

  • since: 1.5.1
SQSORT_TO_ASC = 9 (line 101)
SQSORT_TO_DESC = 10 (line 102)
SQ_PHP_TEMPLATE = 'PHP_' (line 167)

Template engines supported

  • since: 1.5.2
SQ_SMARTY_TEMPLATE = 'Smarty_' (line 168)
SQ_TYPE_ARRAY = 'array' (line 161)
SQ_TYPE_BOOL = 'bool' (line 160)
SQ_TYPE_INT = 'int' (line 158)

Generic variable type constants

  • since: 1.5.2
SQ_TYPE_STRING = 'string' (line 159)

Documentation generated on Sat, 07 Oct 2006 16:10:10 +0300 by phpDocumentor 1.3.0RC6