Correct value of undefined hostname
[squirrelmail.git] / include / constants.php
index 5faea98649861b9fc51525b86a01e3adee2357a6..79fcabaa1f75708834495dc264d79165bb0716be 100644 (file)
@@ -25,6 +25,21 @@ define('SM_VERSION', '1.5.2 [SVN]');
 /* Set values for constants used by SquirrelMail preferences. */
 /**************************************************************/
 
 /* 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
 /**
  * Define basic, general purpose preference constants.
  * @since 1.2.0