Modified sqimap_session_id to return something when there is no session ID
[squirrelmail.git] / functions / constants.php
index a16b1a4ed859aea412478b8286b8b4c091a07576..2a3620f83145e91159b5288c9c4aa6943802e275 100644 (file)
@@ -1,16 +1,17 @@
 <?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$
-     */
+     ** 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. */
@@ -18,7 +19,9 @@
 
     /* 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. */
@@ -44,5 +47,5 @@
     define('SMPREF_JS_ON', 1);
     define('SMPREF_JS_AUTODETECT', 2);
 
-    do_hook("loading_constants");
+    do_hook('loading_constants');
 ?>