MK [ [EMAIL PROTECTED] ] skrev:
> At 13:10 05.09.2006, you wrote:
>> I know this is OT, but I do have to ask...
>>
>> I've tried to get amavis-stats 0.1.21 up and running, but with no big
>> success. I can't get it to show tabs and buttons.
>
> the rest is working?
>
>> Anyone? If you feel it's too OT for the list, please respond privately.
>
> if the rest is working: ran into it some time ago...
> it is relatet to PHP5 (if i remember properly)
> should run with PHP4
My system runs on PHP5, and the code from Dale still used a couple of
"old" ways to deal with input.. So, if you run into this, open up the
amavis-stats.php file in your favourite text editor, scroll down to
around line 65 and look up this piece of code:
/* reassign HTTP variables (incase register_globals is off) */
if (!empty($HTTP_GET_VARS)) while (list($name, $value) =
each($HTTP_GET_VARS)) $$name = $value;
if (!empty($HTTP_POST_VARS)) while (list($name, $value) =
each($HTTP_POST_VARS)) $$name = $value;
That's the incompatible part, replace all of it with:
/* reassign HTTP variables (incase register_globals is off) */
if (!empty($_GET)) {
while (list($name, $value) = each($_GET))
$$name = $value;
}
if (!empty($_POST)) {
while (list($name, $value) = each($_POST))
$$name = $value;
}
Save the code and you're up and running.
Have fun!
Anders.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/