global.php - Main initialization script
Script cleans PHP environment, loads session function wrappers and some generic functions. Includes load string functions and configuration. Script must be loaded before other code is executed. It is loaded by include/validate.php automatically.
Bring in the config file We need $session_name config.php $version depends on strings.php.
strings.php sets $PHP_SELF.
load default config if config does not exist
Returns true if the current internal NaSMail version is at minimum a.b.c
Called: check_nsm_version(1,0,0)
returns true if current php version is at mimimum a.b.c
Called: check_php_version(4,1)
returns true if the current internal SM version is at minimum a.b.c
Function always assumes that it is SquirrelMail 1.4.9 version. Function is provided for backwards compatibility with SquirrelMail plugins.
Search for the var $name in $_SESSION, $_POST, $_GET, $_COOKIE, or $_SERVER and set it in provided var.
If $search is not provided, or == SQ_INORDER, it will search $_SESSION, then $_POST, then $_GET. Otherwise, use one of the defined constants to look for a var in one place specifically.
Note: $search is an int value equal to one of the constants defined above.
example: sqgetGlobalVar('username',$username,SQ_SESSION); -- no quotes around last param!
Deletes an existing session, more advanced than the standard PHP session_destroy(), it explicitly deletes the cookies and global vars.
Function to verify a session has been started. If it hasn't
start a session up. php.net doesn't tell you that $_SESSION (even though autoglobal), is not created unless a session is started, unlike $_POST, $_GET and such
Checks to see if a variable has already been registered in the session.
Add a variable to the session.
Delete a variable from the session.
Recursively strip slashes from the values of an array.
Documentation generated on Sun, 22 Nov 2009 17:36:35 +0200 by phpDocumentor 1.4.3