Functions | |
& | unmagic_quote_gpc (&$value) |
& | varGet ($name) |
get a value from a GET variable | |
existVarGet ($name) | |
test for existence of a GET variable | |
& | varPost ($name) |
get a value from a POST variable | |
existVarPost ($name) | |
test for existence of a POST variable | |
& | varSession ($name) |
get a value from a SESSION variable | |
existVarSession ($name) | |
test for existence of a SESSION variable | |
setVarSession ($name, $value) | |
set a SESSION variable | |
unsetVarSession ($name) | |
unset a SESSION variable | |
& | varCookie ($name) |
get a value from a COOKIE variable | |
existVarCookie ($name) | |
test for existence of a COOKIE variable | |
setVarCookie ($name, $value, $expire=0) | |
set a COOKIE variable | |
Variables | |
$sessionPrefix = 'wiclear_' | |
$cookiePrefix = 'wiclear_' |
basically, wuth magic quotes, php can escape automatically or not values. as I find it painfull to browse automatically all variables and strip or unstrip them, I prefer to force developers to call this method to always retrieve stripped variables. It is then up to the developer to properly escape untrusted variables
existVarCookie | ( | $ | name | ) |
test for existence of a COOKIE variable
name | COOKIE variable name |
existVarGet | ( | $ | name | ) |
test for existence of a GET variable
name | GET variable name |
existVarPost | ( | $ | name | ) |
test for existence of a POST variable
name | POST variable name |
existVarSession | ( | $ | name | ) |
test for existence of a SESSION variable
name | SESSION variable name |
setVarCookie | ( | $ | name, | |
$ | value, | |||
$ | expire = 0 | |||
) |
set a COOKIE variable
name | COOKIE variable name | |
value | value of COOKIE variable | |
expire | optional parameter |
setVarSession | ( | $ | name, | |
$ | value | |||
) |
set a SESSION variable
name | SESSION variable name | |
value | value of session variable |
unsetVarSession | ( | $ | name | ) |
unset a SESSION variable
name | SESSION variable name |
& varCookie | ( | $ | name | ) |
get a value from a COOKIE variable
name | COOKIE variable name |
& varGet | ( | $ | name | ) |
get a value from a GET variable
name | GET variable name |
& varPost | ( | $ | name | ) |
get a value from a POST variable
name | POST variable name |
& varSession | ( | $ | name | ) |
get a value from a SESSION variable
name | SESSION variable name |