I’m trying to use the global $IN method to grab a url query value, but it’s saying GBL is undefined:
Example url:
http://donq.mine.nu/test/_chainselect/?_value=5
- I do include global $DB, $IN; at the top of the script
- I do have PHP enabled, and tried both on input and output
- I’ve tried numerous different query keys and values
$IN->GBL(‘_value’) results in:
Undefined property: Input::$GBL in /Users/pete/Projects/Clients/2009-07 - Don Q/src/system/core/core.functions.php(637) : eval()'d code on line 8print_r($IN) results in:
Input Object
(
[AGENT] => Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_7; en-us) AppleWebKit/530.18 (KHTML, like Gecko) Version/4.0.1 Safari/530.18
[IP] => 127.0.0.1
[SID] =>
[URI] => /test/_chainselect/
[QSTR] =>
[Pages_QSTR] =>
[SEGS] => Array
(
[1] => test
[2] => _chainselect
)
[trim_input] => 1
[global_vars] => Array
(
)
[whitelisted] => n
[blacklisted] => n
[reserved] => Array
(
[0] => css
[1] => trackback
)
[make_safe] => Array
(
[0] => RET
[1] => XSS
[2] => URI
[3] => ACT
)
)No where does GBL even show up, any clue?