Source for file constants.php
Documentation is available at constants.php
* Loads constants used by the rest of the SquirrelMail source.
* This file is include by src/login.php, src/redirect.php and
* @copyright 1999-2020 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: constants.php 14840 2020-01-07 07:42:38Z pdontthink $
/** Need to enable plugin functions for a hook */
require_once(SM_PATH .
'functions/plugin.php'); /* Required for the hook */
/**************************************************************/
/* Set values for constants used by Squirrelmail preferences. */
/**************************************************************/
/* Define basic, general purpose preference constants. */
define('SMPREF_NONE', 'none');
/* Define constants for location based preferences. */
define('SMPREF_LOC_TOP', 'top');
define('SMPREF_LOC_BETWEEN', 'between');
define('SMPREF_LOC_BOTTOM', 'bottom');
define('SMPREF_LOC_LEFT', '');
define('SMPREF_LOC_RIGHT', 'right');
/* Define preferences for folder settings. */
define('SMPREF_UNSEEN_NONE', 1);
define('SMPREF_UNSEEN_INBOX', 2);
define('SMPREF_UNSEEN_ALL', 3);
define('SMPREF_UNSEEN_SPECIAL', 4); // Only special folders
define('SMPREF_UNSEEN_NORMAL', 5); // Only normal folders
define('SMPREF_UNSEEN_ONLY', 1);
define('SMPREF_UNSEEN_TOTAL', 2);
/* Define constants for time/date display preferences. */
define('SMPREF_TIME_24HR', 1);
define('SMPREF_TIME_12HR', 2);
/* Define constants for javascript preferences. */
define('SMPREF_JS_AUTODETECT', 2);
/* Define constants for address book functionalities. */
define('SM_ABOOK_FIELD_NICKNAME', 0);
define('SM_ABOOK_FIELD_FIRSTNAME', 1);
define('SM_ABOOK_FIELD_LASTNAME', 2);
define('SM_ABOOK_FIELD_EMAIL', 3);
define('SM_ABOOK_FIELD_LABEL', 4);
/* Define constants for script libraries. */
define('SM_SCRIPT_LIB_REMOTE_REQUEST', 'remote_request.js');
define('SM_SCRIPT_LIB_RELOAD_PAGE', 'reload_page.js');
define('SM_SCRIPT_LIB_COMMON', 'common.js');
Documentation generated on Mon, 13 Jan 2020 04:24:23 +0100 by phpDocumentor 1.4.3