Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Project U-232 (http://www.bvlist.com/forumdisplay.php?f=80)
-   -   get_magic_quotes_gpc (http://www.bvlist.com/showthread.php?t=12243)

Napon 9th April 2020 18:41

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.

iseeyoucopy 10th April 2020 18:00

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

Napon 10th April 2020 19:19

yep that will work as i do not us the code

Bump: oops they update github lol with this never said thax did they

antimidas 12th April 2020 16:46

Quote:

Originally Posted by Napon (Post 54684)
yep that will work as i do not us the code

Bump: oops they update github lol with this never said thax did they


They would be iseeyoucopy or someone with access to bigjoos repo.... Not anyone who picked up where bigjoos left off...... *oops*

Napon 12th April 2020 16:53

well its done thats the main thing oops:drink:

but Evil-Trinity-master

Code:

////////Strip slashes by system//////////
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');
}

Code:

function unesc($x)
{
    if (get_magic_quotes_gpc()) return stripslashes($x);
    return $x;
}

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'))

not fixed
i mean i removed this old function over 3 years ago on a 09 i did..its been gone for some time now if your going to update the code do it properly

antimidas 12th April 2020 18:15

Quote:

Originally Posted by Napon (Post 54697)
well its done thats the main thing oops:drink:

but Evil-Trinity-master

Code:

////////Strip slashes by system//////////
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');
}

Code:

function unesc($x)
{
    if (get_magic_quotes_gpc()) return stripslashes($x);
    return $x;
}

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'))

not fixed
i mean i removed this old function over 3 years ago on a 09 i did..its been gone for some time now if your going to update the code do it properly

Evil-trinity is not v5..... I have been working on code all day... fresh install running on php7.4 with mariadb10.4

Yes it has a lot to go, but I am one person. I also has stated over and over that I am a novice coder at best. Also a single father... So my kid comes before anything else.

Bump: But, I will take the free help and say thank you. I appreciate it. And glad we can have a somewhat civil convo

Napon 12th April 2020 18:32

Today i downloader your v6 and i want though it looking at the core of it yes its very good..Also im not a cunt all the time at all just a easy going man realy..glad i could help out with you but when i get time ill put the Platforn on my pc and give it a spin..and see what i can do with it mate :friend:..


All times are GMT +2. The time now is 20:56.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.