Style police again.
[squirrelmail.git] / functions / constants.php
CommitLineData
23d6bd09 1<?php
2ba13803 2
35586184 3/**
4 * constants.php
5 *
6 * Copyright (c) 1999-2001 The SquirrelMail Development Team
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
35586184 16/*****************************************************************/
17/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!! ***/
18/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION. ***/
19/*** + Base level indent should begin at left margin, as ***/
20/*** the require_once below. ***/
21/*** + All identation should consist of four space blocks ***/
22/*** + Tab characters are evil. ***/
23/*** + all comments should use "slash-star ... star-slash" ***/
24/*** style -- no pound characters, no slash-slash style ***/
25/*** + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD ***/
26/*** ALWAYS USE { AND } CHARACTERS!!! ***/
27/*** + Please use ' instead of ", when possible. Note " ***/
28/*** should always be used in _( ) function calls. ***/
29/*** Thank you for your help making the SM code more readable. ***/
30/*****************************************************************/
9962527a 31
0a17ec32 32require_once('../functions/plugin.php'); // Required for the hook
35586184 33
34/**************************************************************/
35/* Set values for constants used by Squirrelmail preferences. */
36/**************************************************************/
fb120846 37
a440e68f 38 /* Define basic, general purpose preference constants. */
39 define('SMPREF_NO', 0);
e938ae34 40 define('SMPREF_OFF', 0);
a440e68f 41 define('SMPREF_YES', 1);
e938ae34 42 define('SMPREF_ON', 1);
a440e68f 43 define('SMPREF_NONE', 'none');
23d6bd09 44
a440e68f 45 /* Define constants for location based preferences. */
a3ec3c91 46 define('SMPREF_LOC_TOP', 'top');
47 define('SMPREF_LOC_BETWEEN', 'between');
48 define('SMPREF_LOC_BOTTOM', 'bottom');
49 define('SMPREF_LOC_LEFT', '');
50 define('SMPREF_LOC_RIGHT', 'right');
51
a440e68f 52 /* Define preferences for folder settings. */
53 define('SMPREF_UNSEEN_NONE', 1);
54 define('SMPREF_UNSEEN_INBOX', 2);
55 define('SMPREF_UNSEEN_ALL', 3);
56 define('SMPREF_UNSEEN_ONLY', 1);
57 define('SMPREF_UNSEEN_TOTAL', 2);
58
59 /* Define constants for time/date display preferences. */
60 define('SMPREF_TIME_24HR', 1);
61 define('SMPREF_TIME_12HR', 2);
62
63 /* Define constants for javascript preferences. */
64 define('SMPREF_JS_OFF', 0);
65 define('SMPREF_JS_ON', 1);
66 define('SMPREF_JS_AUTODETECT', 2);
ce393174 67
cbe5423b 68 do_hook('loading_constants');
23d6bd09 69?>