Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   TBDev (http://www.bvlist.com/forumdisplay.php?f=20)
-   -   Ratiomaster stop uploading to zero leechers (http://www.bvlist.com/showthread.php?t=12272)

Tedmorris 6th June 2020 03:17

Ratiomaster stop uploading to zero leechers
 
PHP Code:

// if user is a seeder, then only supply leechers.
$wantseeds '';
if (
$seeder == 'yes'$wantseeds 'AND seeder = "no"';
    
$res mysql_query("SELECT $fields FROM peers WHERE torrent = $torrentid $wantseeds $limit") or err'peers query failure' );
unset(
$wantseeds); 

So this code stops a seeder supplying to himself but how could this code be tweaked to stop a leecher spoofing fake upload amounts IF they are the only leech?

So we have lets say 20 seeds and one leecher using ratiomaster how could the leecher be stopped or detected uploading spoofed data when that user is the only leecher?

Elena 14th June 2020 10:29

1 Attachment(s)
I have a user, downloaded 4.10 MB, and uploaded 4.73 GB. Explicitly clocked up the rating, but the machine will not see this, only with your hands you need to look and edit the statics of the user.

rio 14th June 2020 18:45

You can use Ajax to update the info jQuery is pretty easy or you could use vanilla js
https://api.jquery.com/jquery.ajax/
https://developer.mozilla.org/en-US/...etting_Started


All times are GMT +2. The time now is 21:06.

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