Commit 49e802d8 authored by unknown's avatar unknown

add php8 support

parent c253c786
......@@ -15,7 +15,7 @@ require GAME_ROOT.'./include/game/revclubskills.func.php';
require GAME_ROOT.'./include/game/dice.func.php';
error_reporting(E_ALL);
set_error_handler('gameerrorhandler');
$magic_quotes_gpc = get_magic_quotes_gpc();
$magic_quotes_gpc = false;
extract(gstrfilter($_COOKIE));
extract(gstrfilter($_POST));
extract(gstrfilter($_GET));
......
......@@ -663,8 +663,8 @@ if(!$action) {
$quit = TRUE;
}
if(@ini_get(file_uploads)) {
$max_size = @ini_get(upload_max_filesize);
if(function_exists('ini_get') && ini_get('file_uploads')) {
$max_size = ini_get('upload_max_filesize');
$curr_upload_status = $lang['attach_enabled'].$max_size;
$msg .= $lang['attach_enabled_info'].$max_size."\t";
} else {
......@@ -1308,11 +1308,7 @@ function createtable($db, $sql, $dbcharset) {
}
function setconfig($string) {
if(!get_magic_quotes_gpc()) {
$string = str_replace('\'', '\\\'', $string);
} else {
$string = str_replace('\"', '"', $string);
}
return $string;
}
......
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