Added newmail dropdowns, and preparing for special folders only count mails.
[squirrelmail.git] / functions / constants.php
CommitLineData
23d6bd09 1<?php
2ba13803 2
35586184 3/**
4 * constants.php
5 *
15e6162e 6 * Copyright (c) 1999-2002 The SquirrelMail Project Team
35586184 7 * Licensed under the GNU GPL. For full terms see the file COPYING.
8 *
9 * Loads constants used by the rest of the Squirrelmail source.
10 * This file is include by src/login.php, src/redirect.php and
11 * src/load_prefs.php.
12 *
13 * $Id$
14 */
23d6bd09 15
0a17ec32 16require_once('../functions/plugin.php'); // Required for the hook
35586184 17
18/**************************************************************/
19/* Set values for constants used by Squirrelmail preferences. */
20/**************************************************************/
fb120846 21
0e4ae91a 22/* Define basic, general purpose preference constants. */
23define('SMPREF_NO', 0);
24define('SMPREF_OFF', 0);
25define('SMPREF_YES', 1);
26define('SMPREF_ON', 1);
27define('SMPREF_NONE', 'none');
28
29/* Define constants for location based preferences. */
30define('SMPREF_LOC_TOP', 'top');
31define('SMPREF_LOC_BETWEEN', 'between');
32define('SMPREF_LOC_BOTTOM', 'bottom');
33define('SMPREF_LOC_LEFT', '');
34define('SMPREF_LOC_RIGHT', 'right');
35
36/* Define preferences for folder settings. */
37define('SMPREF_UNSEEN_NONE', 1);
38define('SMPREF_UNSEEN_INBOX', 2);
39define('SMPREF_UNSEEN_ALL', 3);
5ed13ec8 40define('SMPREF_UNSEEN_SPECIAL', 4); // Only special folders
41define('SMPREF_UNSEEN_NORMAL', 5); // Only normal folders
0e4ae91a 42define('SMPREF_UNSEEN_ONLY', 1);
43define('SMPREF_UNSEEN_TOTAL', 2);
44
45/* Define constants for time/date display preferences. */
46define('SMPREF_TIME_24HR', 1);
47define('SMPREF_TIME_12HR', 2);
48
49/* Define constants for javascript preferences. */
50define('SMPREF_JS_OFF', 0);
51define('SMPREF_JS_ON', 1);
52define('SMPREF_JS_AUTODETECT', 2);
53
54do_hook('loading_constants');
55
15e6162e 56?>