vB_Input_CleanerClass to handle and sanitize variables from GET, POST and COOKIE etc
Located in /includes/class_core.php (line 1697)
string
$alt_ip
= '' (line 1774)
System state. An attempt to find a second IP for the current visitor (proxy etc)
array
$cleaned_vars
= array() (line 1788)
Keep track of variables that have already been cleaned
string
$ipaddress
= '' (line 1767)
System state. The IP address of the current visitor
vB_Registry
$registry
= null (line 1781)
A reference to the main registry object
string
$reloadurl
= '' (line 1746)
Reload URL. Complete URL of the current page including sessionhash
string
$scriptpath
= '' (line 1739)
System state. The complete URL of the current page, without sessionhash
array
$shortvars
= array(Translation table for short name to long name
array
$superglobal_lookup
= array(Translation table for short superglobal name to long superglobal name
string
$url
= '' (line 1760)
System state. The complete URL of the referring page
string
$wolpath
= '' (line 1753)
System state. The complete URL of the page for Who's Online purposes
Constructor vB_Input_Cleaner (line 1799)
Constructor
First, reverses the effects of magic quotes on GPC Second, translates short variable names to long (u --> userid) Third, deals with $_COOKIE[userid] conflicts
add_fragment (line 2097)
Adds a fragment to a path
add_query (line 2074)
Adds a query string to a path, fixing the query characters.
clean (line 2193)
Makes a single variable safe to use and returns it
clean_array (line 2116)
Makes data in an array safe to use
clean_array_gpc (line 2136)
Makes GPC variables safe to use
clean_gpc (line 2165)
Makes a single GPC variable safe to use and returns it
convert_shortvars (line 2488)
Turns $_POST['t'] into $_POST['threadid'] etc.
do_clean (line 2287)
Does the actual work to make a variable safe
fetch_alt_ip (line 2730)
Fetches an alternate IP address of the current visitor, attempting to detect proxies etc.
fetch_basepath (line 2522)
Fetches the 'basepath' variable that can be used as <base>.
fetch_ip (line 2720)
Fetches the IP address of the current visitor
fetch_relpath (line 2548)
Fetches the path for the current request relative to the basepath.
This is useful for local anchors (<a href="{vb:raw relpath}#post">).
Substracts any overlap between basepath and path with the following results:
base: http://www.example.com/forums/ path: /forums/content.php result: content.php
base: http://www.example.com/forums/admincp path: /forums/content/1-Article result: ../content/1-Article
fetch_server_value (line 2050)
Fetches a value from $_SERVER or $_ENV
fetch_url (line 2678)
Fetches the 'url' variable - usually the URL of the previous page in the history
fetch_wolpath (line 2633)
Fetches the 'wolpath' variable - ie: the same as 'scriptpath' but with a handler for the POST request method
resolve_request_url (line 1947)
Resolves information about the request URL.
stripslashes_deep (line 2465)
Reverses the effects of magic_quotes on an entire array of variables
strip_sessionhash (line 2511)
Strips out the s=gobbledygook& rubbish from URLs
utf8_clean_path (line 2444)
Cleans a query string.
Unicode is decoded, url entities are kept encoded, and slashes are preserved.
xss_clean (line 2408)
Removes HTML characters and potentially unsafe scripting words from a string
xss_clean_url (line 2424)
Removes HTML characters and potentially unsafe scripting words from a URL Note: The query string is preserved.
Documentation generated on Tue, 26 Jan 2010 15:15:05 -0600 by phpDocumentor 1.4.3