documenting functions and adding some sq_mb_list_encodings updates
[squirrelmail.git] / functions / global.php
index 1330022c647bfb297b8cf26a43a1fda65ced18cc..af6975319c68195e0f561debecd159bcd8d80844 100644 (file)
@@ -3,7 +3,7 @@
 /**
  * global.php
  *
- * Copyright (c) 1999-2004 The SquirrelMail Project Team
+ * Copyright (c) 1999-2005 The SquirrelMail Project Team
  * Licensed under the GNU GPL. For full terms see the file COPYING.
  *
  * This includes code to update < 4.1.0 globals to the newer format
@@ -14,8 +14,6 @@
  * @package squirrelmail
  */
 
-/** Bring in the config file. */
-require_once(SM_PATH . 'config/config.php');
 
 /** set the name of the session cookie */
 if(isset($session_name) && $session_name) {
@@ -24,10 +22,11 @@ if(isset($session_name) && $session_name) {
     ini_set('session.name' , 'SQMSESSID');
 }
 
-/** If magic_quotes_runtime is on, SquirrelMail breaks in new and creative ways.
- *  Force magic_quotes_runtime off.
- *  tassium@squirrelmail.org - I put it here in the hopes that all SM code includes this.
- *  If there's a better place, please let me know.
+/**
+ * If magic_quotes_runtime is on, SquirrelMail breaks in new and creative ways.
+ * Force magic_quotes_runtime off.
+ * tassium@squirrelmail.org - I put it here in the hopes that all SM code includes this.
+ * If there's a better place, please let me know.
  */
 ini_set('magic_quotes_runtime','0');
 
@@ -197,8 +196,8 @@ function sqgetGlobalVar($name, &$value, $search = SQ_INORDER) {
        as strings. */
     switch ($search) {
         /* we want the default case to be first here,
-          so that if a valid value isn't specified,
-          all three arrays will be searched. */
+           so that if a valid value isn't specified,
+           all three arrays will be searched. */
       default:
       case SQ_INORDER: // check session, post, get
       case SQ_SESSION:
@@ -236,6 +235,7 @@ function sqgetGlobalVar($name, &$value, $search = SQ_INORDER) {
         }
         break;
     }
+    /* Nothing found, return FALSE */
     return FALSE;
 }