Fix XSS problem with unsanitized style tags in messages [CVE-2011-2023]
[squirrelmail.git] / functions / constants.php
index 50daeecf959855d9cc43678fdf341ba91a4b6c8e..70efad629af0d82ab7ceca40c471e369687c85c6 100644 (file)
@@ -1,31 +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 constants for javascript settings. */
-    define('SMPREF_JS_ON', 1);
-    define('SMPREF_JS_OFF', 2);
-    define('SMPREF_JS_AUTODETECT', 3);
-
-    define('SMPREF_LOC_TOP', 'top');
-    define('SMPREF_LOC_BETWEEN', 'between');
-    define('SMPREF_LOC_BOTTOM', 'bottom');
-    define('SMPREF_LOC_LEFT', '');
-    define('SMPREF_LOC_RIGHT', 'right');
-
-    do_hook("loading_constants");
-?>
+/**
+ * old constants function file location
+ *
+ * @copyright 1999-2011 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