Fixed bug #431256 - Alias expanded not RFC 821-compatible
[squirrelmail.git] / functions / constants.php
1 <?php
2 /**
3 * constants.php
4 *
5 * Copyright (c) 1999-2001 The SquirrelMail Development Team
6 * Licensed under the GNU GPL. For full terms see the file COPYING.
7 *
8 * Loads constants used by the rest of the Squirrelmail source.
9 * This file is include by src/login.php, src/redirect.php and
10 * src/load_prefs.php.
11 *
12 * $Id$
13 */
14
15 /******************************************************/
16 /* Set values for constants used in the options code. */
17 /******************************************************/
18
19 /* Define constants for the various option types. */
20 define('SMOPT_TYPE_STRING', 0);
21 define('SMOPT_TYPE_STRLIST', 1);
22 define('SMOPT_TYPE_TEXTAREA', 2);
23 define('SMOPT_TYPE_INTEGER', 3);
24 define('SMOPT_TYPE_FLOAT', 4);
25 define('SMOPT_TYPE_BOOLEAN', 5);
26
27 /* Define constants for the options refresh levels. */
28 define('SMOPT_REFRESH_NONE', 0);
29 define('SMOPT_REFRESH_FOLDERLIST', 1);
30 define('SMOPT_REFRESH_ALL', 2);
31
32 /**************************************************************/
33 /* Set values for constants used by Squirrelmail preferences. */
34 /**************************************************************/
35
36 /* Define constants for javascript settings. */
37 define('SMPREF_JS_ON', 1);
38 define('SMPREF_JS_OFF', 2);
39 define('SMPREF_JS_AUTODETECT', 3);
40
41 do_hook("loading_constants");
42 ?>