Call me anal
[squirrelmail.git] / include / constants.php
index 9dae98ac5b13e0aabf67e2933c218485f3798af5..38a85b5de8475fb612a74da2336152a9cf9502fd 100644 (file)
@@ -25,7 +25,7 @@ define('SM_VERSION', '1.5.2 [SVN]');
  * Year interval for copyright notices in the interface
  * @since 1.5.2
  */
-define('SM_COPYRIGHT', '1999-2008');
+define('SM_COPYRIGHT', '1999-2009');
 
 /**************************************************************/
 /* Set values for constants used by SquirrelMail preferences. */
@@ -197,6 +197,7 @@ define('SM_ABOOK_FIELD_LABEL', 4);
  * @since 1.5.2
  */
 define('SQ_TYPE_INT', 'int');
+define('SQ_TYPE_BIGINT', 'bigint');
 define('SQ_TYPE_STRING', 'string');
 define('SQ_TYPE_BOOL', 'bool');
 define('SQ_TYPE_ARRAY', 'array');
@@ -235,6 +236,8 @@ define('SMOPT_TYPE_BOOLEAN_CHECKBOX', 12);
 define('SMOPT_TYPE_BOOLEAN_RADIO', 13);
 define('SMOPT_TYPE_STRLIST_RADIO', 14);
 define('SMOPT_TYPE_SUBMIT', 15);
+define('SMOPT_TYPE_INFO', 16);
+define('SMOPT_TYPE_PASSWORD', 17);
 
 // Define constants for the layout scheme for edit lists
 define('SMOPT_EDIT_LIST_LAYOUT_LIST', 0);
@@ -257,3 +260,32 @@ define('SMOPT_SIZE_NORMAL', 5);
 define('SMOPT_SAVE_DEFAULT', 'save_option');
 define('SMOPT_SAVE_NOOP', 'save_option_noop');
 
+// Convenience array of values 'a' through 'z'
+$a_to_z = array(
+              'a' => 'a',
+              'b' => 'b',
+              'c' => 'c',
+              'd' => 'd',
+              'e' => 'e',
+              'f' => 'f',
+              'g' => 'g',
+              'h' => 'h',
+              'i' => 'i',
+              'j' => 'j',
+              'k' => 'k',
+              'l' => 'l',
+              'm' => 'm',
+              'n' => 'n',
+              'o' => 'o',
+              'p' => 'p',
+              'q' => 'q',
+              'r' => 'r',
+              's' => 's',
+              't' => 't',
+              'u' => 'u',
+              'v' => 'v',
+              'w' => 'w',
+              'x' => 'x',
+              'y' => 'y',
+              'z' => 'z',
+          );