X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=functions%2Fconstants.php;h=4734a819a05fca6c8b2cac78c9ec401bd3f96b9f;hp=15756f8cf017801fd8191f2b8f54a3f65c796489;hb=e938ae34d62fa626a9e9221c1dea6d854a0aa714;hpb=ce39317491517268fe421d95b7329bbe80a2fe8d diff --git a/functions/constants.php b/functions/constants.php index 15756f8c..4734a819 100644 --- a/functions/constants.php +++ b/functions/constants.php @@ -16,18 +16,35 @@ /* Set values for constants used by Squirrelmail preferences. */ /**************************************************************/ - /* Define constants for javascript settings. */ - define('SMPREF_JS_ON', 1); - define('SMPREF_JS_OFF', 2); - define('SMPREF_JS_AUTODETECT', 3); + /* Define basic, general purpose preference constants. */ + define('SMPREF_NO', 0); + define('SMPREF_OFF', 0); + define('SMPREF_YES', 1); + define('SMPREF_ON', 1); + 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('SMPREF_NONE', 'none'); + /* Define preferences for folder settings. */ + define('SMPREF_UNSEEN_NONE', 1); + define('SMPREF_UNSEEN_INBOX', 2); + define('SMPREF_UNSEEN_ALL', 3); + 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_OFF', 0); + define('SMPREF_JS_ON', 1); + define('SMPREF_JS_AUTODETECT', 2); do_hook("loading_constants"); ?>