janaf
09-30-2010, 08:43 AM
I have a php direct eval page but have problems after 4.0.7 update.
Functionally, the code depends on this line, which is not working:
$mystring=vB::$vbulletin->input->clean_gpc('r', 'mystring', TYPE_STR);
$output=$mystring;
The code should read URL arguments: <myurl>&mystring=Hello
Now, it returns nothing, $mystring is empty. Does anyone have a suggestion how to make this work? Workarounds?
I have also tried this syntax:
$mystring=$vbulletin->input->clean_gpc('r', 'mystring', TYPE_STR);
but get: Fatal error: Call to a member function clean_gpc() on a non-object in <url>
A slightly longer version with the cycle of what the page does is here; it has a form with a drop-down posting values to itself:
$mystring=vB::$vbulletin->input->clean_gpc('r', 'mystring', TYPE_STR);
$output=$mystring;
$output.='<br><form action="" method="POST">';
$output.='<input type="hidden" name="securitytoken" value="'.vb::$vbulletin->userinfo[securitytoken].'" />';
$output.='<select name="nominalsize"><option value="">[Say Hello]</option><option value="Hello World">Hello World</option></select><br>';
$output.='<input type="submit" value=" Submit " />';
$output.='</form>';
This page where I used this code used to have a few thousand pageviews daily, and is now at stand-still for more than a week :mad:
A long version with my full code is here;
https://vborg.vbsupport.ru/showthread.php?t=250920
But the key to the problem is the first line here, so the longer version may just be confusing...
Please help! My vb-coding experience is low, I'm depending on you guys.....
Functionally, the code depends on this line, which is not working:
$mystring=vB::$vbulletin->input->clean_gpc('r', 'mystring', TYPE_STR);
$output=$mystring;
The code should read URL arguments: <myurl>&mystring=Hello
Now, it returns nothing, $mystring is empty. Does anyone have a suggestion how to make this work? Workarounds?
I have also tried this syntax:
$mystring=$vbulletin->input->clean_gpc('r', 'mystring', TYPE_STR);
but get: Fatal error: Call to a member function clean_gpc() on a non-object in <url>
A slightly longer version with the cycle of what the page does is here; it has a form with a drop-down posting values to itself:
$mystring=vB::$vbulletin->input->clean_gpc('r', 'mystring', TYPE_STR);
$output=$mystring;
$output.='<br><form action="" method="POST">';
$output.='<input type="hidden" name="securitytoken" value="'.vb::$vbulletin->userinfo[securitytoken].'" />';
$output.='<select name="nominalsize"><option value="">[Say Hello]</option><option value="Hello World">Hello World</option></select><br>';
$output.='<input type="submit" value=" Submit " />';
$output.='</form>';
This page where I used this code used to have a few thousand pageviews daily, and is now at stand-still for more than a week :mad:
A long version with my full code is here;
https://vborg.vbsupport.ru/showthread.php?t=250920
But the key to the problem is the first line here, so the longer version may just be confusing...
Please help! My vb-coding experience is low, I'm depending on you guys.....