X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=include%2Fconstants.php;h=79fcabaa1f75708834495dc264d79165bb0716be;hp=adaff8179f628c1d2e08eb1fabd8246ea438cfd6;hb=daf777102978219856d97b6b4e93f8b5815db234;hpb=c2b585c5e1d529845bf8e596f1c20c90e4caa1e5 diff --git a/include/constants.php b/include/constants.php index adaff817..79fcabaa 100644 --- a/include/constants.php +++ b/include/constants.php @@ -6,7 +6,7 @@ * 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 + * @copyright © 1999-2007 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package squirrelmail @@ -15,10 +15,31 @@ /** @ignore */ +/** + * SquirrelMail version number -- DO NOT CHANGE + * @since 1.5.2 + */ +define('SM_VERSION', '1.5.2 [SVN]'); + /**************************************************************/ /* Set values for constants used by SquirrelMail preferences. */ /**************************************************************/ +/** + * Define constants for SquirrelMail debug modes. + * Note that these are binary so that modes can be + * mixed and matched, and they are also ordered from + * minor to severe. When adding new modes, please + * order them in a sensical way (MODERATE is the 10th + * bit; ADVANCED is the 20th bit). + * @since 1.5.2 + */ +define('SM_DEBUG_MODE_OFF', 0); // complete error suppression +define('SM_DEBUG_MODE_SIMPLE', 1); // PHP E_ERROR +define('SM_DEBUG_MODE_MODERATE', 512); // PHP E_ALL +define('SM_DEBUG_MODE_ADVANCED', 524288); // PHP E_ALL plus log errors intentionally suppressed +define('SM_DEBUG_MODE_STRICT', 536870912); // PHP E_STRICT + /** * Define basic, general purpose preference constants. * @since 1.2.0 @@ -51,6 +72,10 @@ define('SMPREF_UNSEEN_NORMAL', 5); // Only normal folders (since 1.2.5) define('SMPREF_UNSEEN_ONLY', 1); define('SMPREF_UNSEEN_TOTAL', 2); +define('SMPREF_MAILBOX_SELECT_LONG', 0); +define('SMPREF_MAILBOX_SELECT_INDENTED', 1); +define('SMPREF_MAILBOX_SELECT_DELIMITED', 2); + /** * Define constants for time/date display preferences. * @since 1.2.0 @@ -160,3 +185,16 @@ define('SQ_TYPE_STRING', 'string'); define('SQ_TYPE_BOOL', 'bool'); define('SQ_TYPE_ARRAY', 'array'); +/** + * Template engines supported + * @since 1.5.2 + */ +define('SQ_PHP_TEMPLATE', 'PHP_'); +define('SQ_SMARTY_TEMPLATE', 'Smarty_'); + +/** + * Used by plugins to indicate an incompatibility with a SM version + * @since 1.5.2 + */ +define('SQ_INCOMPATIBLE', 'INCOMPATIBLE'); +