X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=include%2Fconstants.php;h=c581ec5cd43c51707a7d03167de3065a59b7570a;hp=249f2432216feff9285837dacff85f3af036d284;hb=ea72131677da03d6287fe826838231be356e4607;hpb=3fa09710c8488fa92f9be6ff66282b35cdaa538f diff --git a/include/constants.php b/include/constants.php index 249f2432..c581ec5c 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-2007 The SquirrelMail Project Team + * @copyright 1999-2012 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package squirrelmail @@ -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-2012'); /**************************************************************/ /* 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'); @@ -259,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', + );