Sunday, September 2, 2007

PHPAuction runs on PHP 5

I had to use PhpAuction v2.0 in order to create a website for my client. But this script is written in old fashiniod way and it requires register_globals to be set on. I prepared a little patches for it. Files that should be fixed:
includes/ (Place the code below to the begining of the file)
$p = array_merge($_GET,$_POST,$_SERVER); foreach($p as $k=>$v){ $GLOBALS[$k] = $v; }

admin/ (Place the code below immediately after session_start();)

In this way PhpAuction v2.0 from could be used on both PHP 4&5 with register_globals switched off

1 comment:

Christian Bokhove said...

I had the same problem. Traced it to Global Vars. then found your code. Thanks.