The Arcive of vBulletin Modifications Site. |
|
Fatal error: Cannot redeclare stripslashesarray() in Details »»
|
|||||||||||||||||||||||||||
|
Fatal error: Cannot redeclare stripslashesarray() in
Developer Last Online: Jul 2014
Fatal error: Cannot redeclare stripslashesarray() in D:\web_public\site\forum\global.php on line 31
Here got the area where the error is at // get rid of slashes in get / post / cookie data function stripslashesarray (&$arr) { while (list($key,$val)=each($arr)) { if ($key!="templatesused" and $key!="argc" and $key!="argv") { if (is_string($val) AND (strtoupper($key)!=$key OR ("".intval($key)=="$key"))) { $arr["$key"] = stripslashes($val); } else if (is_array($val) AND ($key == 'HTTP_POST_VARS' OR $key == 'HTTP_GET_VARS' OR strtoupper($key)!=$key)) { $arr["$key"] = stripslashesarray($val); } } } How can I fix this here problem? Show Your Support
|
|||||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
im not sure... but you can try changing this line
$arr["$key"] = stripslashesarray($val); to this $arr["$key"] = stripslashes($val); because on the first instance you're defining that function... and in the function you're trying to call a function that you're defining... hope that makes some sense... regards... g-force2k2 |
|
#3
|
|||
|
|||
|
Now I get this error
Fatal error: Cannot redeclare stripslashesarray() in D:\site\site\site\global.php on line 31 Query: UPDATE session SET lastactivity=1033594518,location='/site/member.php' WHERE sessionhash='4312483c78e4ee44ff4012ebf1b1a507' Time before: 0.00029599666595459 Time after: 0.071889042854309 -------------------------------------------------------------------------------- Query: UPDATE user SET lastactivity=1033594518,inforum='0' WHERE userid='1' Time before: 0.072347044944763 Time after: 0.66364800930023 |
|
#4
|
|||
|
|||
|
you've included global.php twice by the sounds of it
|
![]() |
|
|