Bring the left_main_after_each_folder hook to life
[squirrelmail.git] / functions / constants.php
index e223c464f76940fdbbf4ebbaf8a6595ee6c0a3a3..6bf50519b42f681cd9bd3258273349425ec85c99 100644 (file)
@@ -1,51 +1,14 @@
 <?php
-
-    /**
-     *  constants.php
-     *
-     *  Copyright (c) 1999-2001 The SquirrelMail Development 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.
-     *
-     *  $Id$
-     */
-
-    /**************************************************************/
-    /* Set values for constants used by Squirrelmail preferences. */
-    /**************************************************************/
-
-    /* Define basic, general purpose preference constants. */
-    define('SMPREF_NO', 0);
-    define('SMPREF_OFF', 0);
-    define('SMPREF_YES', 1);
-    define('SMPREF_ON', 1);
-    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_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_OFF', 0);
-    define('SMPREF_JS_ON', 1);
-    define('SMPREF_JS_AUTODETECT', 2);
-
-    do_hook('loading_constants');
-?>
+/**
+ * old constants function file location
+ *
+ * @copyright &copy; 1999-2007 The SquirrelMail Project Team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
+ * @version $Id$
+ * @package squirrelmail
+ */
+
+/** break if somebody tries to load this file */
+die('Rewrite your code, functions/constants.php file location is changed in 1.5.2.'
+    .' Direct loading of functions/constants.php is deprecated.');
+?>
\ No newline at end of file