23d6bd09 |
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 | |
9962527a |
15 | /**************************************************************/ |
16 | /* Set values for constants used by Squirrelmail preferences. */ |
17 | /**************************************************************/ |
18 | |
a440e68f |
19 | /* Define basic, general purpose preference constants. */ |
20 | define('SMPREF_NO', 0); |
e938ae34 |
21 | define('SMPREF_OFF', 0); |
a440e68f |
22 | define('SMPREF_YES', 1); |
e938ae34 |
23 | define('SMPREF_ON', 1); |
a440e68f |
24 | define('SMPREF_NONE', 'none'); |
23d6bd09 |
25 | |
a440e68f |
26 | /* Define constants for location based preferences. */ |
a3ec3c91 |
27 | define('SMPREF_LOC_TOP', 'top'); |
28 | define('SMPREF_LOC_BETWEEN', 'between'); |
29 | define('SMPREF_LOC_BOTTOM', 'bottom'); |
30 | define('SMPREF_LOC_LEFT', ''); |
31 | define('SMPREF_LOC_RIGHT', 'right'); |
32 | |
a440e68f |
33 | /* Define preferences for folder settings. */ |
34 | define('SMPREF_UNSEEN_NONE', 1); |
35 | define('SMPREF_UNSEEN_INBOX', 2); |
36 | define('SMPREF_UNSEEN_ALL', 3); |
37 | define('SMPREF_UNSEEN_ONLY', 1); |
38 | define('SMPREF_UNSEEN_TOTAL', 2); |
39 | |
40 | /* Define constants for time/date display preferences. */ |
41 | define('SMPREF_TIME_24HR', 1); |
42 | define('SMPREF_TIME_12HR', 2); |
43 | |
44 | /* Define constants for javascript preferences. */ |
45 | define('SMPREF_JS_OFF', 0); |
46 | define('SMPREF_JS_ON', 1); |
47 | define('SMPREF_JS_AUTODETECT', 2); |
ce393174 |
48 | |
23d6bd09 |
49 | do_hook("loading_constants"); |
50 | ?> |