1
catsmuvva
Re: Modules Help
  • 2006/1/30 12:20

  • catsmuvva

  • Just popping in

  • Posts: 1

  • Since: 2006/1/28


Dear rgiord54,

I enclose here a *nix shell script I have used on several php4 systems to improve their functionality on php5. I'm not saying it does everything, but it hits the major issues in XOOPS.

#! /bin/sh
for file_name in $1/*.php*; do
if -d $file_name ; then
$0 $file_name
else
echo $file_name
sed -i -e s/\$HTTP_SERVER_VARS/\$_SERVER/g \
-e s/\$HTTP_GET_VARS/\$_GET/g \
-e s/\$HTTP_POST_VARS/\$_POST/g \
-e s/\$HTTP_COOKIE_VARS/\$_COOKIE/g \
-e s/\$HTTP_POST_FILES/\$_FILES/g \
-e s/\$HTTP_ENV_VARS/\$_ENV/g $file_name
fi
done

All it does is rename references to the obsolete HTTP_* variables to their new equivalents.

Warmests

Nicole




TopTop



Login

Who's Online

248 user(s) are online (171 user(s) are browsing Support Forums)


Members: 0


Guests: 248


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits