View Single Post
  #2  
Old 10th April 2020, 18:00
iseeyoucopy iseeyoucopy is offline
VIP
 
Join Date: Jan 2011
P2P
Posts: 28
Default
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
Reply With Quote
The Following User Says Thank You to iseeyoucopy For This Useful Post:
darkalchemy (12th April 2020)