|
can I have someone helping me on this matter? When I try to login into backend and after entering user ID and password the message below appears:
Fatal error: Cannot redeclare checkinputarray() (previously declared in /home/justdcom/public_html/globals.php:28) in /home/justdcom/public_html/globals.php on line 44
function checkInputArray( &$array, $globalise=false ) { static $banned = array( '_files', '_env', '_get', '_post', '_cookie', '_server', '_session', 'globals' );
foreach ($array as $key => $value) { $intval = intval( $key ); // PHP GLOBALS injection bug $failed = in_array( strtolower( $key ), $banned ); // PHP Zend_Hash_Del_Key_Or_Index bug $failed |= is_numeric( $key ); if ($failed) { die( 'Illegal variable ' . implode( ' or ', $banned ) . ' passed to _script_.' ); } if ($globalise) { $GLOBALS[$key] = $value; } } }
|