Hi All,
I am creating a custom page, and for some reason when I try to return $mybb->input["cid"} it returns as null or 0.
However if I try to return $_GET["cid"] it returns with the correct value.
THis is on a custom page
THere is a whole lot of other stuff on my page but if I just narrow down to that is doesnt work.
Other things like $lang $templates, $db and $mybb->user all seem to work however.
Can anyone think of any reason for this?
Ok for some reason I am guessing because it had "id" in the variable it was looking at cid as an int rather than a string and sanitizing it.
If I change the rewrite rule to con= all is sweet.
Useful info to know
I am creating a custom page, and for some reason when I try to return $mybb->input["cid"} it returns as null or 0.
However if I try to return $_GET["cid"] it returns with the correct value.
THis is on a custom page
<?php
define('IN_MYBB', 1);
require("global.php");
echo "input: ".$mybb->input["cid"];
echo "<br/>input $_GET: " $_GET["cid"];
?>
THere is a whole lot of other stuff on my page but if I just narrow down to that is doesnt work.
Other things like $lang $templates, $db and $mybb->user all seem to work however.
Can anyone think of any reason for this?
Ok for some reason I am guessing because it had "id" in the variable it was looking at cid as an int rather than a string and sanitizing it.
If I change the rewrite rule to con= all is sweet.
Useful info to know