The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Page Variables
I've inherited a site with an old version of Vbulletin that has some custom pages that use global.php for session variables, etc. The custom pages would normally collect variables directly using register globals, instead of $_GET or $_POST. This all worked fine despite the use of register globals.
I've upgraded Vbulletin to 3.6.7, but now variables being passed into pages are not seen once global.php is included in the page. Is there a way I can get the variable values directly instead of using $_GET or $_POST as there are hundreds of pages? |
#2
|
||||
|
||||
maybe by including some code within hook location: global_start will do it for you?
|
#3
|
|||
|
|||
Do you mean add some global code to translate the $_GET or $POST variables to the original ones? Problem is there are hundreds of different variables used across these pages.
|
#4
|
||||
|
||||
Bad coding style to rely on register globals. But it probably could be achieved by using variable variables:
PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|