13
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