Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
access to download
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Mods Requests

2020-11-04 21:58:09
Sorry I should be clearer :D

##########################
# BANN DOWNLOAD FAIBLE RATIO#
##########################

// ban download if ratio 0.49
$minratio = 0.49;
$vipnumber = 3; // or $site_config['vip'];
$stmt = SQL_Query_exec("SELECT id FROM users WHERE uploaded / downloaded < $minratio AND class < $vipnumber");
while ($arr = mysqli_fetch_assoc($stmt)) {
// now we link download banned mod
SQL_Query_exec("UPDATE users SET downloadbanned = 'yes' WHERE id = $arr[id]");
}

##########################
# END BANN DOWNLOAD FAIBLE RATIO#
##########################


##########################
# NO DOWNLOAD FAIBLE RATIO#
##########################

// allow download if ratio 0.50
$minratio = 0.50;
$stmt = SQL_Query_exec("SELECT id FROM users WHERE uploaded / downloaded > $minratio");
$time = get_date_time();
while ($arr = mysqli_fetch_assoc($stmt)) {
// now we link download banned mod
SQL_Query_exec("UPDATE users SET downloadbanned = 'no' WHERE id = $arr[id]");
}

##########################
# END NO DOWNLOAD FAIBLE RATIO#
##########################
2020-11-06 10:25:47
thank you for the update I will make the changes tomorrow and come and tell you (y):D
2020-11-07 10:51:27
Hello and thank you for the support I just put the code and vip members are still banned from download with a ratio less than 0.49, is there a way for members with a ratio less than 0.49 to be banned from download but vip members with a ratio less than 0.49 not to be banned from download? :rolleyes:

thank you in advance for the help
2020-11-08 00:24:33
"niki, post: 69520, member: 20338":

Hello and thank you for the support I just put the code and vip members are still banned from download with a ratio less than 0.49, is there a way for members with a ratio less than 0.49 to be banned from download but vip members with a ratio less than 0.49 not to be banned from download? :rolleyes:

thank you in advance for the help

This needs to take place in cleanup.php as it will then switch a user column to off or whatever the value becomes, and download.php will check for that column value, simple stuff but must wait u Tim tomorrow or Monday
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728