/**
* 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
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');
* sqgetGlobalVar('username',$username,SQ_SESSION);
* -- no quotes around last param!
*
+ * WARNING: Since 1.4.5 and 1.5.1 function nulls $value,
+ * if variable is not available.
+ *
* @param string name the name of the var to search
* @param mixed value the variable to return
* @param int search constant defining where to look
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:
}
break;
}
+ /* Nothing found, reset $value and return FALSE */
+ $value = null;
return FALSE;
}
}
// vim: et ts=4
-?>
\ No newline at end of file
+?>