Plugins have to be able to update the message cache if they manipulate messages
[squirrelmail.git] / functions / constants.php
index 37d4c46aba4e51a8b4e34ead63c25b451d0ea7ed..6bf50519b42f681cd9bd3258273349425ec85c99 100644 (file)
@@ -1,21 +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$
-     */
+/**
+ * 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
+ */
 
-    /* Define constants for javascript settings. */
-    define('SMPREF_JS_ON', 1);
-    define('SMPREF_JS_OFF', 2);
-    define('SMPREF_JS_AUTODETECT', 3);
-
-    do_hook("loading_constants");
-?>
+/** 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