Finished converting folder options page to new options stuff. Moved some options...
[squirrelmail.git] / functions / constants.php
index 37d4c46aba4e51a8b4e34ead63c25b451d0ea7ed..a16b1a4ed859aea412478b8286b8b4c091a07576 100644 (file)
      * $Id$
      */
 
-    /* Define constants for javascript settings. */
+    /**************************************************************/
+    /* Set values for constants used by Squirrelmail preferences. */
+    /**************************************************************/
+
+    /* Define basic, general purpose preference constants. */
+    define('SMPREF_NO', 0);
+    define('SMPREF_YES', 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 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_OFF', 2);
-    define('SMPREF_JS_AUTODETECT', 3);
+    define('SMPREF_JS_AUTODETECT', 2);
 
     do_hook("loading_constants");
 ?>