~ubuntu-branches/ubuntu/hardy/squirrelmail/hardy-updates

« back to all changes in this revision

Viewing changes to functions/constants.php

  • Committer: Bazaar Package Importer
  • Author(s): Sam Johnston
  • Date: 2004-02-04 01:42:12 UTC
  • Revision ID: james.westby@ubuntu.com-20040204014212-ek9533qvd2vo1wa1
Tags: upstream-1.5.0
ImportĀ upstreamĀ versionĀ 1.5.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
 
 
3
/**
 
4
 * constants.php
 
5
 *
 
6
 * Copyright (c) 1999-2003 The SquirrelMail Project 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: constants.php,v 1.19 2003/10/28 21:27:46 tassium Exp $
 
14
 * @package squirrelmail
 
15
 */
 
16
 
 
17
/** Need to enable plugin functions for a hook */
 
18
require_once(SM_PATH . 'functions/plugin.php');  /* Required for the hook */
 
19
 
 
20
/**************************************************************/
 
21
/* Set values for constants used by Squirrelmail preferences. */
 
22
/**************************************************************/
 
23
 
 
24
/* Define basic, general purpose preference constants. */
 
25
define('SMPREF_NO', 0);
 
26
define('SMPREF_OFF', 0);
 
27
define('SMPREF_YES', 1);
 
28
define('SMPREF_ON', 1);
 
29
define('SMPREF_NONE', 'none');
 
30
 
 
31
/* Define constants for location based preferences. */
 
32
define('SMPREF_LOC_TOP', 'top');
 
33
define('SMPREF_LOC_BETWEEN', 'between');
 
34
define('SMPREF_LOC_BOTTOM', 'bottom');
 
35
define('SMPREF_LOC_LEFT', '');
 
36
define('SMPREF_LOC_RIGHT', 'right');
 
37
 
 
38
/* Define preferences for folder settings. */
 
39
define('SMPREF_UNSEEN_NONE', 1);
 
40
define('SMPREF_UNSEEN_INBOX', 2);
 
41
define('SMPREF_UNSEEN_ALL', 3);
 
42
define('SMPREF_UNSEEN_SPECIAL', 4); // Only special folders
 
43
define('SMPREF_UNSEEN_NORMAL', 5);  // Only normal folders
 
44
define('SMPREF_UNSEEN_ONLY', 1);
 
45
define('SMPREF_UNSEEN_TOTAL', 2);
 
46
 
 
47
/* Define constants for time/date display preferences. */
 
48
define('SMPREF_TIME_24HR', 1);
 
49
define('SMPREF_TIME_12HR', 2);
 
50
 
 
51
/* Define constants for javascript preferences. */
 
52
define('SMPREF_JS_OFF', 0);
 
53
define('SMPREF_JS_ON', 1);
 
54
define('SMPREF_JS_AUTODETECT', 2);
 
55
 
 
56
do_hook('loading_constants');
 
57
 
 
58
?>