View Single Post
  #1  
Old 9th April 2020, 18:41
Napon Napon is offline
Banned
 
Join Date: Feb 2016
P2P
Posts: 522
Thumbs down get_magic_quotes_gpc
ok Been looking at this v5 you say works on PHP8 7.4
with just looking at the PHP FILES



ok in the config.phpsample you have this



Code:
const REQUIRED_PHP = 70000, REQUIRED_PHP_VERSION = '7.0';
if (PHP_VERSION_ID < REQUIRED_PHP)
die('PHP '.REQUIRED_PHP_VERSION.' or higher is required.');
if (PHP_INT_SIZE < 8)
die('A 64bit or higher OS + Processor is required.');
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.');

now the bittorrent.php you have this


Code:
function cleanquotes(&$in)
{
    if (is_array($in)) return array_walk($in, 'cleanquotes');
    return $in = stripslashes($in);
}
if (get_magic_quotes_gpc()) {
    array_walk($_GET, 'cleanquotes');
    array_walk($_POST, 'cleanquotes');
    array_walk($_COOKIE, 'cleanquotes');
    array_walk($_REQUEST, 'cleanquotes');
}
And this
Code:
function unesc($x)
{
    if (get_magic_quotes_gpc()) return stripslashes($x);
    return $x;
}

so there is a call back from the onstart of this code telling you to swich get_magic_quotes_gpc off as its off in the PHP.INIT on everyones server this function as been gone for along time now way before 5.6.32


So you call this new code no its not it as the above still and do not call me a liar As soon as you start the site everyone will get call backs from this.. from installing to signup the error will show this Warning This function has been DEPRECATED as of PHP 7.4.0. Relying on this function is highly discouraged.

Last edited by Napon; 9th April 2020 at 20:56.
Reply With Quote