fatshoesday Posted May 26, 2009 Share Posted May 26, 2009 Hi, I am having a problem with this installation. I used a file compare program to merge with my site and I now get this error. Fatal error: Cannot redeclare do_magic_quotes_gpc() (previously declared in C:\Domains\get-crocs.com\wwwroot\includes\functions\compatibility.php:18) in C:\Domains\get-crocs.com\wwwroot\includes\functions\compatibility.php on line 18 I am afraid I am a bit clueless and I could do with a point in the right direction as to how to resolve? Thanks Jax Link to comment Share on other sites More sharing options...
steve_s Posted May 26, 2009 Share Posted May 26, 2009 Hi, I am having a problem with this installation. I used a file compare program to merge with my site and I now get this error. I am afraid I am a bit clueless and I could do with a point in the right direction as to how to resolve? Thanks Jax Hi can you paste contents of includes\functions\compatibility.php so we can see what is going on Link to comment Share on other sites More sharing options...
fatshoesday Posted May 26, 2009 Author Share Posted May 26, 2009 Hican you paste contents of includes\functions\compatibility.php so we can see what is going on Thanks, here it is. <?php /* $Id: compatibility.php,v 1.19 2003/04/09 16:12:54 project3000 Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2007 osCommerce Released under the GNU General Public License */ //// // Recursively handle magic_quotes_gpc turned off. // This is due to the possibility of have an array in // $HTTP_xxx_VARS // Ie, products attributes function do_magic_quotes_gpc(&$ar) { if (!is_array($ar)) return false; reset($ar); while (list($key, $value) = each($ar)) { if (is_array($ar[$key])) { do_magic_quotes_gpc($ar[$key]); } else { $ar[$key] = addslashes($value); } } reset($ar); } if (PHP_VERSION >= 4.1) { $HTTP_GET_VARS =& $_GET; $HTTP_POST_VARS =& $_POST; $HTTP_COOKIE_VARS =& $_COOKIE; $HTTP_SESSION_VARS =& $_SESSION; $HTTP_POST_FILES =& $_FILES; $HTTP_SERVER_VARS =& $_SERVER; } else { if (!is_array($HTTP_GET_VARS)) $HTTP_GET_VARS = array(); if (!is_array($HTTP_POST_VARS)) $HTTP_POST_VARS = array(); if (!is_array($HTTP_COOKIE_VARS)) $HTTP_COOKIE_VARS = array(); } // handle magic_quotes_gpc turned off. if (!get_magic_quotes_gpc()) { do_magic_quotes_gpc($HTTP_GET_VARS); do_magic_quotes_gpc($HTTP_POST_VARS); do_magic_quotes_gpc($HTTP_COOKIE_VARS); } if (!function_exists('array_splice')) { function array_splice(&$array, $maximum) { if (sizeof($array) >= $maximum) { for ($i=0; $i<$maximum; $i++) { $new_array[$i] = $array[$i]; } $array = $new_array; } } } if (!function_exists('in_array')) { function in_array($lookup_value, $lookup_array) { reset($lookup_array); while (list($key, $value) = each($lookup_array)) { if ($value == $lookup_value) return true; } return false; } } if (!function_exists('array_reverse')) { function array_reverse($array) { for ($i=0, $n=sizeof($array); $i<$n; $i++) $array_reversed[$i] = $array[($n-$i-1)]; return $array_reversed; } } if (!function_exists('constant')) { function constant($constant) { eval("\$temp=$constant;"); return $temp; } } if (!function_exists('is_null')) { function is_null($value) { if (is_array($value)) { if (sizeof($value) > 0) { return false; } else { return true; } } else { if (($value != '') && ($value != 'NULL') && (strlen(trim($value)) > 0)) { return false; } else { return true; } } } } if (!function_exists('array_merge')) { function array_merge($array1, $array2, $array3 = '') { if (empty($array3) && !is_array($array3)) $array3 = array(); while (list($key, $val) = each($array1)) $array_merged[$key] = $val; while (list($key, $val) = each($array2)) $array_merged[$key] = $val; if (sizeof($array3) > 0) while (list($key, $val) = each($array3)) $array_merged[$key] = $val; return (array) $array_merged; } } if (!function_exists('is_numeric')) { function is_numeric($param) { return ereg('^[0-9]{1,50}.?[0-9]{0,50}$', $param); } } if (!function_exists('array_slice')) { function array_slice($array, $offset, $length = 0) { if ($offset < 0 ) { $offset = sizeof($array) + $offset; } $length = ((!$length) ? sizeof($array) : (($length < 0) ? sizeof($array) - $length : $length + $offset)); for ($i = $offset; $i<$length; $i++) { $tmp[] = $array[$i]; } return $tmp; } } if (!function_exists('array_map')) { function array_map($callback, $array) { if (is_array($array)) { $_new_array = array(); reset($array); while (list($key, $value) = each($array)) { $_new_array[$key] = array_map($callback, $array[$key]); } return $_new_array; } else { return $callback($array); } } } if (!function_exists('str_repeat')) { function str_repeat($string, $number) { $repeat = ''; for ($i=0; $i<$number; $i++) { $repeat .= $string; } return $repeat; } } if (!function_exists('checkdnsrr')) { function checkdnsrr($host, $type) { if(tep_not_null($host) && tep_not_null($type)) { @exec("nslookup -type=$type $host", $output); while(list($k, $line) = each($output)) { if(eregi("^$host", $line)) { return true; } } } return false; } } ?> Link to comment Share on other sites More sharing options...
steve_s Posted May 26, 2009 Share Posted May 26, 2009 Thanks, here it is. <?php /* $Id: compatibility.php,v 1.19 2003/04/09 16:12:54 project3000 Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2007 osCommerce Released under the GNU General Public License */ //// // Recursively handle magic_quotes_gpc turned off. // This is due to the possibility of have an array in // $HTTP_xxx_VARS // Ie, products attributes function do_magic_quotes_gpc(&$ar) { if (!is_array($ar)) return false; reset($ar); while (list($key, $value) = each($ar)) { if (is_array($ar[$key])) { do_magic_quotes_gpc($ar[$key]); } else { $ar[$key] = addslashes($value); } } reset($ar); } if (PHP_VERSION >= 4.1) { $HTTP_GET_VARS =& $_GET; $HTTP_POST_VARS =& $_POST; $HTTP_COOKIE_VARS =& $_COOKIE; $HTTP_SESSION_VARS =& $_SESSION; $HTTP_POST_FILES =& $_FILES; $HTTP_SERVER_VARS =& $_SERVER; } else { if (!is_array($HTTP_GET_VARS)) $HTTP_GET_VARS = array(); if (!is_array($HTTP_POST_VARS)) $HTTP_POST_VARS = array(); if (!is_array($HTTP_COOKIE_VARS)) $HTTP_COOKIE_VARS = array(); } // handle magic_quotes_gpc turned off. if (!get_magic_quotes_gpc()) { do_magic_quotes_gpc($HTTP_GET_VARS); do_magic_quotes_gpc($HTTP_POST_VARS); do_magic_quotes_gpc($HTTP_COOKIE_VARS); } if (!function_exists('array_splice')) { function array_splice(&$array, $maximum) { if (sizeof($array) >= $maximum) { for ($i=0; $i<$maximum; $i++) { $new_array[$i] = $array[$i]; } $array = $new_array; } } } if (!function_exists('in_array')) { function in_array($lookup_value, $lookup_array) { reset($lookup_array); while (list($key, $value) = each($lookup_array)) { if ($value == $lookup_value) return true; } return false; } } if (!function_exists('array_reverse')) { function array_reverse($array) { for ($i=0, $n=sizeof($array); $i<$n; $i++) $array_reversed[$i] = $array[($n-$i-1)]; return $array_reversed; } } if (!function_exists('constant')) { function constant($constant) { eval("\$temp=$constant;"); return $temp; } } if (!function_exists('is_null')) { function is_null($value) { if (is_array($value)) { if (sizeof($value) > 0) { return false; } else { return true; } } else { if (($value != '') && ($value != 'NULL') && (strlen(trim($value)) > 0)) { return false; } else { return true; } } } } if (!function_exists('array_merge')) { function array_merge($array1, $array2, $array3 = '') { if (empty($array3) && !is_array($array3)) $array3 = array(); while (list($key, $val) = each($array1)) $array_merged[$key] = $val; while (list($key, $val) = each($array2)) $array_merged[$key] = $val; if (sizeof($array3) > 0) while (list($key, $val) = each($array3)) $array_merged[$key] = $val; return (array) $array_merged; } } if (!function_exists('is_numeric')) { function is_numeric($param) { return ereg('^[0-9]{1,50}.?[0-9]{0,50}$', $param); } } if (!function_exists('array_slice')) { function array_slice($array, $offset, $length = 0) { if ($offset < 0 ) { $offset = sizeof($array) + $offset; } $length = ((!$length) ? sizeof($array) : (($length < 0) ? sizeof($array) - $length : $length + $offset)); for ($i = $offset; $i<$length; $i++) { $tmp[] = $array[$i]; } return $tmp; } } if (!function_exists('array_map')) { function array_map($callback, $array) { if (is_array($array)) { $_new_array = array(); reset($array); while (list($key, $value) = each($array)) { $_new_array[$key] = array_map($callback, $array[$key]); } return $_new_array; } else { return $callback($array); } } } if (!function_exists('str_repeat')) { function str_repeat($string, $number) { $repeat = ''; for ($i=0; $i<$number; $i++) { $repeat .= $string; } return $repeat; } } if (!function_exists('checkdnsrr')) { function checkdnsrr($host, $type) { if(tep_not_null($host) && tep_not_null($type)) { @exec("nslookup -type=$type $host", $output); while(list($k, $line) = each($output)) { if(eregi("^$host", $line)) { return true; } } } return false; } } ?> That looks same as mine did you add any code in includes/applications_top.php if so look for function do_magic_quotes_gpc if not download your site make a backup unzip into a folder download simple search and replace from here http://www.rjlsoftware.com/software/utility/search/ point it to folder your site is in and search for function do_magic_quotes_gpc a list of files will be outputted if more than one file comes up remove function do_magic_quotes_gpc from the non /includes/functions/compatibility.php if unsure paste the code here of that other file Link to comment Share on other sites More sharing options...
fatshoesday Posted May 27, 2009 Author Share Posted May 27, 2009 That looks same as mine did you add any code in includes/applications_top.php if so look for function do_magic_quotes_gpcif not download your site make a backup unzip into a folder download simple search and replace from here http://www.rjlsoftware.com/software/utility/search/ point it to folder your site is in and search for function do_magic_quotes_gpc a list of files will be outputted if more than one file comes up remove function do_magic_quotes_gpc from the non /includes/functions/compatibility.php if unsure paste the code here of that other file Hi, Thanks for this. The only other place this text exists is in the corresponding file in the admin/includes/function Here it is? <?php /* $Id: compatibility.php,v 1.10 2003/06/23 01:20:05 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2007 osCommerce Released under the GNU General Public License */ //// // Recursively handle magic_quotes_gpc turned off. // This is due to the possibility of have an array in // $HTTP_xxx_VARS // Ie, products attributes function do_magic_quotes_gpc(&$ar) { if (!is_array($ar)) return false; reset($ar); while (list($key, $value) = each($ar)) { if (is_array($ar[$key])) { do_magic_quotes_gpc($ar[$key]); } else { $ar[$key] = addslashes($value); } } reset($ar); } if (PHP_VERSION >= 4.1) { $HTTP_GET_VARS =& $_GET; $HTTP_POST_VARS =& $_POST; $HTTP_COOKIE_VARS =& $_COOKIE; $HTTP_SESSION_VARS =& $_SESSION; $HTTP_POST_FILES =& $_FILES; $HTTP_SERVER_VARS =& $_SERVER; } else { if (!is_array($HTTP_GET_VARS)) $HTTP_GET_VARS = array(); if (!is_array($HTTP_POST_VARS)) $HTTP_POST_VARS = array(); if (!is_array($HTTP_COOKIE_VARS)) $HTTP_COOKIE_VARS = array(); } // handle magic_quotes_gpc turned off. if (!get_magic_quotes_gpc()) { do_magic_quotes_gpc($HTTP_GET_VARS); do_magic_quotes_gpc($HTTP_POST_VARS); do_magic_quotes_gpc($HTTP_COOKIE_VARS); } if (!function_exists('is_numeric')) { function is_numeric($param) { return ereg("^[0-9]{1,50}.?[0-9]{0,50}$", $param); } } if (!function_exists('is_uploaded_file')) { function is_uploaded_file($filename) { if (!$tmp_file = get_cfg_var('upload_tmp_dir')) { $tmp_file = dirname(tempnam('', '')); } if (strchr($tmp_file, '/')) { if (substr($tmp_file, -1) != '/') $tmp_file .= '/'; } elseif (strchr($tmp_file, '\\')) { if (substr($tmp_file, -1) != '\\') $tmp_file .= '\\'; } return file_exists($tmp_file . basename($filename)); } } if (!function_exists('move_uploaded_file')) { function move_uploaded_file($file, $target) { return copy($file, $target); } } if (!function_exists('checkdnsrr')) { function checkdnsrr($host, $type) { if(tep_not_null($host) && tep_not_null($type)) { @exec("nslookup -type=$type $host", $output); while(list($k, $line) = each($output)) { if(eregi("^$host", $line)) { return true; } } } return false; } } if (!function_exists('in_array')) { function in_array($lookup_value, $lookup_array) { reset($lookup_array); while (list($key, $value) = each($lookup_array)) { if ($value == $lookup_value) return true; } return false; } } if (!function_exists('array_merge')) { function array_merge($array1, $array2, $array3 = '') { if ($array3 == '') $array3 = array(); while (list($key, $val) = each($array1)) $array_merged[$key] = $val; while (list($key, $val) = each($array2)) $array_merged[$key] = $val; if (sizeof($array3) > 0) while (list($key, $val) = each($array3)) $array_merged[$key] = $val; return (array)$array_merged; } } if (!function_exists('array_shift')) { function array_shift(&$array) { $i = 0; $shifted_array = array(); reset($array); while (list($key, $value) = each($array)) { if ($i > 0) { $shifted_array[$key] = $value; } else { $return = $array[$key]; } $i++; } $array = $shifted_array; return $return; } } if (!function_exists('array_reverse')) { function array_reverse($array) { $reversed_array = array(); for ($i=sizeof($array)-1; $i>=0; $i--) { $reversed_array[] = $array[$i]; } return $reversed_array; } } if (!function_exists('array_slice')) { function array_slice($array, $offset, $length = '0') { $length = abs($length); if ($length == 0) { $high = sizeof($array); } else { $high = $offset+$length; } for ($i=$offset; $i<$high; $i++) { $new_array[$i-$offset] = $array[$i]; } return $new_array; } } /* * http_build_query() natively supported from PHP 5.0 * From Pear::PHP_Compat */ if ( !function_exists('http_build_query') && (PHP_VERSION >= 4)) { function http_build_query($formdata, $numeric_prefix = null, $arg_separator = null) { // If $formdata is an object, convert it to an array if ( is_object($formdata) ) { $formdata = get_object_vars($formdata); } // Check we have an array to work with if ( !is_array($formdata) || !empty($formdata) ) { return false; } // Argument seperator if ( empty($arg_separator) ) { $arg_separator = ini_get('arg_separator.output'); if ( empty($arg_separator) ) { $separator = '&'; } } // Start building the query $tmp = array(); foreach ( $formdata as $key => $val ) { if ( is_null($val) ) { continue; } if ( is_integer($key) && ( $numeric_prefix != null ) ) { $key = $numeric_prefix . $key; } if ( is_scalar($val) ) { array_push($tmp, urlencode($key) . '=' . urlencode($val)); continue; } // If the value is an array, recursively parse it if ( is_array($val) || is_object($val) ) { array_push($tmp, http_build_query_helper($val, urlencode($key), $arg_separator)); continue; } // The value is a resource return null; } return implode($separator, $tmp); } // Helper function function http_build_query_helper($array, $name, $arg_separator) { $tmp = array(); foreach ( $array as $key => $value ) { if ( is_array($value) ) { array_push($tmp, http_build_query_helper($value, sprintf('%s[%s]', $name, $key), $arg_separator)); } elseif ( is_scalar($value) ) { array_push($tmp, sprintf('%s[%s]=%s', $name, urlencode($key), urlencode($value))); } elseif ( is_object($value) ) { array_push($tmp, http_build_query_helper(get_object_vars($value), sprintf('%s[%s]', $name, $key), $arg_separator)); } } return implode($arg_separator, $tmp); } } ?> Link to comment Share on other sites More sharing options...
fatshoesday Posted May 27, 2009 Author Share Posted May 27, 2009 Hi, Thanks for this. The only other place this text exists is in the corresponding file in the admin/includes/function Here it is? <?php /* $Id: compatibility.php,v 1.10 2003/06/23 01:20:05 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2007 osCommerce Released under the GNU General Public License */ //// // Recursively handle magic_quotes_gpc turned off. // This is due to the possibility of have an array in // $HTTP_xxx_VARS // Ie, products attributes function do_magic_quotes_gpc(&$ar) { if (!is_array($ar)) return false; reset($ar); while (list($key, $value) = each($ar)) { if (is_array($ar[$key])) { do_magic_quotes_gpc($ar[$key]); } else { $ar[$key] = addslashes($value); } } reset($ar); } if (PHP_VERSION >= 4.1) { $HTTP_GET_VARS =& $_GET; $HTTP_POST_VARS =& $_POST; $HTTP_COOKIE_VARS =& $_COOKIE; $HTTP_SESSION_VARS =& $_SESSION; $HTTP_POST_FILES =& $_FILES; $HTTP_SERVER_VARS =& $_SERVER; } else { if (!is_array($HTTP_GET_VARS)) $HTTP_GET_VARS = array(); if (!is_array($HTTP_POST_VARS)) $HTTP_POST_VARS = array(); if (!is_array($HTTP_COOKIE_VARS)) $HTTP_COOKIE_VARS = array(); } // handle magic_quotes_gpc turned off. if (!get_magic_quotes_gpc()) { do_magic_quotes_gpc($HTTP_GET_VARS); do_magic_quotes_gpc($HTTP_POST_VARS); do_magic_quotes_gpc($HTTP_COOKIE_VARS); } if (!function_exists('is_numeric')) { function is_numeric($param) { return ereg("^[0-9]{1,50}.?[0-9]{0,50}$", $param); } } if (!function_exists('is_uploaded_file')) { function is_uploaded_file($filename) { if (!$tmp_file = get_cfg_var('upload_tmp_dir')) { $tmp_file = dirname(tempnam('', '')); } if (strchr($tmp_file, '/')) { if (substr($tmp_file, -1) != '/') $tmp_file .= '/'; } elseif (strchr($tmp_file, '\\')) { if (substr($tmp_file, -1) != '\\') $tmp_file .= '\\'; } return file_exists($tmp_file . basename($filename)); } } if (!function_exists('move_uploaded_file')) { function move_uploaded_file($file, $target) { return copy($file, $target); } } if (!function_exists('checkdnsrr')) { function checkdnsrr($host, $type) { if(tep_not_null($host) && tep_not_null($type)) { @exec("nslookup -type=$type $host", $output); while(list($k, $line) = each($output)) { if(eregi("^$host", $line)) { return true; } } } return false; } } if (!function_exists('in_array')) { function in_array($lookup_value, $lookup_array) { reset($lookup_array); while (list($key, $value) = each($lookup_array)) { if ($value == $lookup_value) return true; } return false; } } if (!function_exists('array_merge')) { function array_merge($array1, $array2, $array3 = '') { if ($array3 == '') $array3 = array(); while (list($key, $val) = each($array1)) $array_merged[$key] = $val; while (list($key, $val) = each($array2)) $array_merged[$key] = $val; if (sizeof($array3) > 0) while (list($key, $val) = each($array3)) $array_merged[$key] = $val; return (array)$array_merged; } } if (!function_exists('array_shift')) { function array_shift(&$array) { $i = 0; $shifted_array = array(); reset($array); while (list($key, $value) = each($array)) { if ($i > 0) { $shifted_array[$key] = $value; } else { $return = $array[$key]; } $i++; } $array = $shifted_array; return $return; } } if (!function_exists('array_reverse')) { function array_reverse($array) { $reversed_array = array(); for ($i=sizeof($array)-1; $i>=0; $i--) { $reversed_array[] = $array[$i]; } return $reversed_array; } } if (!function_exists('array_slice')) { function array_slice($array, $offset, $length = '0') { $length = abs($length); if ($length == 0) { $high = sizeof($array); } else { $high = $offset+$length; } for ($i=$offset; $i<$high; $i++) { $new_array[$i-$offset] = $array[$i]; } return $new_array; } } /* * http_build_query() natively supported from PHP 5.0 * From Pear::PHP_Compat */ if ( !function_exists('http_build_query') && (PHP_VERSION >= 4)) { function http_build_query($formdata, $numeric_prefix = null, $arg_separator = null) { // If $formdata is an object, convert it to an array if ( is_object($formdata) ) { $formdata = get_object_vars($formdata); } // Check we have an array to work with if ( !is_array($formdata) || !empty($formdata) ) { return false; } // Argument seperator if ( empty($arg_separator) ) { $arg_separator = ini_get('arg_separator.output'); if ( empty($arg_separator) ) { $separator = '&'; } } // Start building the query $tmp = array(); foreach ( $formdata as $key => $val ) { if ( is_null($val) ) { continue; } if ( is_integer($key) && ( $numeric_prefix != null ) ) { $key = $numeric_prefix . $key; } if ( is_scalar($val) ) { array_push($tmp, urlencode($key) . '=' . urlencode($val)); continue; } // If the value is an array, recursively parse it if ( is_array($val) || is_object($val) ) { array_push($tmp, http_build_query_helper($val, urlencode($key), $arg_separator)); continue; } // The value is a resource return null; } return implode($separator, $tmp); } // Helper function function http_build_query_helper($array, $name, $arg_separator) { $tmp = array(); foreach ( $array as $key => $value ) { if ( is_array($value) ) { array_push($tmp, http_build_query_helper($value, sprintf('%s[%s]', $name, $key), $arg_separator)); } elseif ( is_scalar($value) ) { array_push($tmp, sprintf('%s[%s]=%s', $name, urlencode($key), urlencode($value))); } elseif ( is_object($value) ) { array_push($tmp, http_build_query_helper(get_object_vars($value), sprintf('%s[%s]', $name, $key), $arg_separator)); } } return implode($arg_separator, $tmp); } } ?> Link to comment Share on other sites More sharing options...
steve_s Posted May 27, 2009 Share Posted May 27, 2009 ok remove this code from that file function do_magic_quotes_gpc(&$ar) { if (!is_array($ar)) return false; reset($ar); while (list($key, $value) = each($ar)) { if (is_array($ar[$key])) { do_magic_quotes_gpc($ar[$key]); } else { $ar[$key] = addslashes($value); } } reset($ar); } if (PHP_VERSION >= 4.1) { $HTTP_GET_VARS =& $_GET; $HTTP_POST_VARS =& $_POST; $HTTP_COOKIE_VARS =& $_COOKIE; $HTTP_SESSION_VARS =& $_SESSION; $HTTP_POST_FILES =& $_FILES; $HTTP_SERVER_VARS =& $_SERVER; } else { if (!is_array($HTTP_GET_VARS)) $HTTP_GET_VARS = array(); if (!is_array($HTTP_POST_VARS)) $HTTP_POST_VARS = array(); if (!is_array($HTTP_COOKIE_VARS)) $HTTP_COOKIE_VARS = array(); } // handle magic_quotes_gpc turned off. if (!get_magic_quotes_gpc()) { do_magic_quotes_gpc($HTTP_GET_VARS); do_magic_quotes_gpc($HTTP_POST_VARS); do_magic_quotes_gpc($HTTP_COOKIE_VARS); } Link to comment Share on other sites More sharing options...
fatshoesday Posted May 27, 2009 Author Share Posted May 27, 2009 ok remove this code from that file function do_magic_quotes_gpc(&$ar) { if (!is_array($ar)) return false; reset($ar); while (list($key, $value) = each($ar)) { if (is_array($ar[$key])) { do_magic_quotes_gpc($ar[$key]); } else { $ar[$key] = addslashes($value); } } reset($ar); } if (PHP_VERSION >= 4.1) { $HTTP_GET_VARS =& $_GET; $HTTP_POST_VARS =& $_POST; $HTTP_COOKIE_VARS =& $_COOKIE; $HTTP_SESSION_VARS =& $_SESSION; $HTTP_POST_FILES =& $_FILES; $HTTP_SERVER_VARS =& $_SERVER; } else { if (!is_array($HTTP_GET_VARS)) $HTTP_GET_VARS = array(); if (!is_array($HTTP_POST_VARS)) $HTTP_POST_VARS = array(); if (!is_array($HTTP_COOKIE_VARS)) $HTTP_COOKIE_VARS = array(); } // handle magic_quotes_gpc turned off. if (!get_magic_quotes_gpc()) { do_magic_quotes_gpc($HTTP_GET_VARS); do_magic_quotes_gpc($HTTP_POST_VARS); do_magic_quotes_gpc($HTTP_COOKIE_VARS); } Unfortunately, that did not seem to work. I am still getting this error. Fatal error: Cannot redeclare do_magic_quotes_gpc() (previously declared in C:\Domains\get-crocs.com\wwwroot\includes\functions\compatibility.php:18) in C:\Domains\get-crocs.com\wwwroot\includes\functions\compatibility.php on line 18 Link to comment Share on other sites More sharing options...
steve_s Posted May 27, 2009 Share Posted May 27, 2009 Unfortunately, that did not seem to work. I am still getting this error. There must be some where else its being declared, do another search search if it comes up Silly question but you did upload the amended file, amount of times i have forgot to do that Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.