X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=include%2Fconstants.php;h=8d5461b8f3870978a2483b1d7f2b0f09b8eafcea;hb=f197ec8835b64975ff47dc6cd86dae75605baebf;hp=bf6491871a9121fb13faa46f29ccda76d8efe433;hpb=1c2963ab54956d8b61f094966d67e5d2ac4b255a;p=squirrelmail.git diff --git a/include/constants.php b/include/constants.php index bf649187..8d5461b8 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-2016 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-2009'); +define('SM_COPYRIGHT', '1999-2016'); /**************************************************************/ /* Set values for constants used by SquirrelMail preferences. */ @@ -231,13 +231,14 @@ define('SMOPT_TYPE_COMMENT', 7); define('SMOPT_TYPE_FLDRLIST', 8); define('SMOPT_TYPE_FLDRLIST_MULTI', 9); define('SMOPT_TYPE_EDIT_LIST', 10); -define('SMOPT_TYPE_STRLIST_MULTI', 11); -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('SMOPT_TYPE_EDIT_LIST_ASSOCIATIVE', 11); +define('SMOPT_TYPE_STRLIST_MULTI', 12); +define('SMOPT_TYPE_BOOLEAN_CHECKBOX', 13); +define('SMOPT_TYPE_BOOLEAN_RADIO', 14); +define('SMOPT_TYPE_STRLIST_RADIO', 15); +define('SMOPT_TYPE_SUBMIT', 16); +define('SMOPT_TYPE_INFO', 17); +define('SMOPT_TYPE_PASSWORD', 18); // Define constants for the layout scheme for edit lists define('SMOPT_EDIT_LIST_LAYOUT_LIST', 0); @@ -260,3 +261,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', + );