Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Torrent Trader (http://www.bvlist.com/forumdisplay.php?f=29)
-   -   TT 2.08 for php 7 (http://www.bvlist.com/showthread.php?t=11940)

fireman 8th April 2019 02:43

Quote:

Originally Posted by Napon (Post 53491)
if u want a proper mysqli tt pm me this no good lol want to be coders
on this site https://www.torrenttrader.xyz/ icewarrior above forum watch out Mr M-JAY THINKS HES A PRO CODER LOL DO NOT INSTALL any of he stuff it will not work same with admin too can not code for shit.. just a side note its torrent trader v2 not v3

Why do you cut down others work together make it the best it can be without bashing Napon

MicroMonkey 16th December 2019 00:12

In announce.php, functions.php, and scrape.php there are references to get_magic_quotes_gpc(), which has been dead for a long time, but everything just worked since it returned false and moved on. It seems the new php 7.4 completely dont like this reference at all, so if you remove it, this code works on 7.4 as well. Im testing this on ubuntu 18.04.3lts and apache 2.4.41
Code:

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

to
Code:

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


and in scrape.php
Code:

foreach (explode("&", $_SERVER["QUERY_STRING"]) as $item) {
    if (preg_match("#^info_hash=(.+)\$#", $item, $m)) {
        $hash = urldecode($m[1]);

        if (get_magic_quotes_gpc())
            $info_hash = stripslashes($hash);
        else
            $info_hash = $hash;
        if (strlen($info_hash) == 20)
            $info_hash = bin2hex($info_hash);
        else if (strlen($info_hash) != 40)
            continue;
        $infohash[] = sqlesc(strtolower($info_hash));
    }
}

to
Code:

foreach (explode("&", $_SERVER["QUERY_STRING"]) as $item) {
    if (preg_match("#^info_hash=(.+)\$#", $item, $m)) {
        $hash = urldecode($m[1]);
            $info_hash = stripslashes($hash);
    //    $info_hash = $hash;
        if (strlen($info_hash) == 20)
            $info_hash = bin2hex($info_hash);
        else if (strlen($info_hash) != 40)
            continue;
        $infohash[] = sqlesc(strtolower($info_hash));
    }
}

try it and see if Its good or not. Im no expert, just trying to have fun and help out. :) If there is a better way, let me know

Napon 16th December 2019 01:09

i can comfirm this how this should be in PHP7 done Also this will work in Over all PHP7 Platforms of 7.1 .7.2 7.3 so on

MicroMonkey 16th December 2019 03:20

only 7.4 has an issue with magic_quotes so far as I can tell. 7.3 and below does not, but I agree with napon, it should be removed.

Napon 5th February 2020 20:19

Quote:

Originally Posted by MicroMonkey (Post 54345)
only 7.4 has an issue with magic_quotes so far as I can tell. 7.3 and below does not, but I agree with napon, it should be removed.


have you set it as a class for this to work in 7.4 you should know alot as changed in the 7.4 use class functions trust me it will work i know ive just coder a mate site to 7.4 using TT code from base github...and set to mysqli

STorrents2019 20th February 2020 11:48

Quote:

Originally Posted by Napon (Post 53491)
if u want a proper mysqli tt pm me this no good lol want to be coders
on this site https://www.torrenttrader.xyz/ icewarrior above forum watch out Mr M-JAY THINKS HES A PRO CODER LOL DO NOT INSTALL any of he stuff it will not work same with admin too can not code for shit.. just a side note its torrent trader v2 not v3

I beg to differ, in fact I pushed TT to v4 beyond either version, completely responsive too, rewritten index results, dynamic Ajax autocomplete search using JQueryUI search that pulls torrent data using JSON, memcached and more. You don’t know what your talking about 😂 I did so much work on it that it felt necessary to push it up a version. Private source.

rio 20th February 2020 19:49

What are point of showing off if your not going to share the source code.

thartley55 20th February 2020 21:52

I agree.
If your "private source" is just that...private...then it is only your version TT2.08, modded to suit your needs.
If it is so heavily modded, maybe you should just rename to completely new source, create a support forums, and either share the basic code with paid mods...or just sell the thing...become another xam.

STorrents2019 21st February 2020 00:32

General thoughts
 
Quote:

Originally Posted by thartley55 (Post 54540)
I agree.
If your "private source" is just that...private...then it is only your version TT2.08, modded to suit your needs.
If it is so heavily modded, maybe you should just rename to completely new source, create a support forums, and either share the basic code with paid mods...or just sell the thing...become another xam.

The difference is, I actually post my work (just not here) but my template is in-house. I'll never pass that on, however anyone determined can copy any theme from anywhere, its the PHP code in template/core that will throw the brakes on the process.

My aim was not to be arrogant it was to let buddy there know he's an idiot blowing smoke out of his ass. Every time I visit this forum, which isn't often enough unfortunately, I'm invited to negativity from some asshole I'm reading about in a thread sounding like a small child who got onto their daddy's laptop.

If things ever go rogue in the in the future, it just may see Github but that is unlikely. As always, a big shout out to those involved in the project. I don't share on here because it took maybe a month to manually enable my account for posting rights, in that time I already committed to xyz. Thats all for now.

thartley55 21st February 2020 00:40

Fair enough.


All times are GMT +2. The time now is 14:42.

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