I just play with the code a bit and it should be like this
remove from config.php
PHP Code:
if (get_magic_quotes_gpc() || get_magic_quotes_runtime() || ini_get('magic_quotes_sybase'))
die('PHP is configured incorrectly. Turn off magic quotes.');
if (ini_get('register_long_arrays') || ini_get('register_globals') || ini_get('safe_mode'))
die('PHP is configured incorrectly. Turn off safe_mode, register_globals and register_long_arrays.');
bittorrent.php
PHP Code:
function cleanquotes($in)
{
$in = is_array($in) ? array_map('cleanquotes', $in) : stripslashes($in);
return $in;
}
array_walk($_GET, 'cleanquotes');
array_walk($_POST, 'cleanquotes');
array_walk($_COOKIE, 'cleanquotes');
array_walk($_REQUEST, 'cleanquotes');
PHP Code:
function unesc($x)
{
$x = is_array($x) ? array_map('unesc', $x) : stripslashes($x);
return $x;
}
i think this will do the trick
It will work with PHP Version 7.4.4