Commit 67f82e66 authored by unknown's avatar unknown

add php8 support

parent 49e802d8
...@@ -81,11 +81,7 @@ function getstart($start = 0,$mode = ''){ ...@@ -81,11 +81,7 @@ function getstart($start = 0,$mode = ''){
return $start; return $start;
} }
function setconfig($string) { function setconfig($string) {
if(!get_magic_quotes_gpc()) {
$string = str_replace('\'', '\\\'', $string); $string = str_replace('\'', '\\\'', $string);
} else {
$string = str_replace('\"', '"', $string);
}
return $string; return $string;
} }
......
...@@ -11,7 +11,7 @@ if(version_compare(PHP_VERSION, '4.3.0', '<')) { ...@@ -11,7 +11,7 @@ if(version_compare(PHP_VERSION, '4.3.0', '<')) {
} }
require GAME_ROOT.'/include/global.func.php'; require GAME_ROOT.'/include/global.func.php';
$magic_quotes_gpc = get_magic_quotes_gpc(); $magic_quotes_gpc = false;
extract(gstrfilter($_COOKIE)); extract(gstrfilter($_COOKIE));
extract(gstrfilter($_POST)); extract(gstrfilter($_POST));
unset($_GET); unset($_GET);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment