X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=functions%2Fconstants.php;h=17bffe92496d938627f2c575cfe684bb9edfd1af;hp=1dba41caf36bc7627d002ace0cc42b067e3e676b;hb=acb7fa6573598f8061a7b96052fb2f7633c04351;hpb=0e4ae91a1b0a5aad24330276d4aee0ee9866eb77 diff --git a/functions/constants.php b/functions/constants.php index 1dba41ca..17bffe92 100644 --- a/functions/constants.php +++ b/functions/constants.php @@ -3,21 +3,23 @@ /** * constants.php * - * Copyright (c) 1999-2001 The SquirrelMail Development Team + * Copyright (c) 1999-2005 The SquirrelMail Project Team * Licensed under the GNU GPL. For full terms see the file COPYING. * - * Loads constants used by the rest of the Squirrelmail source. - * This file is include by src/login.php, src/redirect.php and - * src/load_prefs.php. + * Loads constants used by the rest of the SquirrelMail source. + * This file is included by functions/date.php, include/load_prefs.php, + * plugins/administrator/defines.php, src/login.php and src/redirect.php. * - * $Id$ + * @version $Id$ + * @package squirrelmail */ -require_once('../functions/plugin.php'); // Required for the hook +/** 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. */ -/**************************************************************/ +//////////////////////////////////////////////////////////////// +// Set values for constants used by SquirrelMail preferences. // +//////////////////////////////////////////////////////////////// /* Define basic, general purpose preference constants. */ define('SMPREF_NO', 0); @@ -37,6 +39,8 @@ define('SMPREF_LOC_RIGHT', 'right'); 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);