global.php
This includes code to update < 4.1.0 globals to the newer format It also has some session register functions that work across various php versions.
Bring in the config file We need $session_name config.php $version depends on strings.php.
strings.php sets $PHP_SELF.
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 These are plain integer comparisons, as our internal version is constructed by us, as an array of 3 ints.
Called: check_sm_version(1,3,3)
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 Sat, 07 Oct 2006 16:31:25 +0300 by phpDocumentor 1.3.0RC6