| 1 | <?php |
| 2 | |
| 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 | */ |
| 15 | |
| 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 | /*****************************************************************/ |
| 31 | |
| 32 | require_once('../functions/plugin.php'); // Required for the hook |
| 33 | |
| 34 | /**************************************************************/ |
| 35 | /* Set values for constants used by Squirrelmail preferences. */ |
| 36 | /**************************************************************/ |
| 37 | |
| 38 | /* Define basic, general purpose preference constants. */ |
| 39 | define('SMPREF_NO', 0); |
| 40 | define('SMPREF_OFF', 0); |
| 41 | define('SMPREF_YES', 1); |
| 42 | define('SMPREF_ON', 1); |
| 43 | define('SMPREF_NONE', 'none'); |
| 44 | |
| 45 | /* Define constants for location based preferences. */ |
| 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 | |
| 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); |
| 67 | |
| 68 | do_hook('loading_constants'); |
| 69 | ?> |