Tim Wheatley
12-26-2001, 07:29 PM
<b>This error now solved, please scroll down three posts...</b>
Greatly appreciate some help. It's obviously some hack that's done it, but anyway,
When I try to run...
http://my---site/admin/user.php?action=modify
I get this error...
Fatal error: Cannot redeclare stripslashesarray() in /data/docs/my---site/docs/forum/admin/global.php on line 13
Here's lines 12-thru-28 of global.php...
// get rid of slashes in get / post / cookie data
function stripslashesarray (&$arr) {
while (list($key,$val)=each($arr)) {
if ((strtoupper($key)!=$key or "".intval($key)=="$key") and $key!="templatesused" and $key!="argc" and $key!="argv") {
if (is_string($val)) {
$arr[$key]=stripslashes($val);
}
if (is_array($val)) {
$arr[$key]=stripslashesarray($val);
}
}
}
return $arr;
}
----
Any ideas what could be wrong with this? I'm not very experienced as you can tell... :rolleyes:
Greatly appreciate some help. It's obviously some hack that's done it, but anyway,
When I try to run...
http://my---site/admin/user.php?action=modify
I get this error...
Fatal error: Cannot redeclare stripslashesarray() in /data/docs/my---site/docs/forum/admin/global.php on line 13
Here's lines 12-thru-28 of global.php...
// get rid of slashes in get / post / cookie data
function stripslashesarray (&$arr) {
while (list($key,$val)=each($arr)) {
if ((strtoupper($key)!=$key or "".intval($key)=="$key") and $key!="templatesused" and $key!="argc" and $key!="argv") {
if (is_string($val)) {
$arr[$key]=stripslashes($val);
}
if (is_array($val)) {
$arr[$key]=stripslashesarray($val);
}
}
}
return $arr;
}
----
Any ideas what could be wrong with this? I'm not very experienced as you can tell... :rolleyes: