Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev
Reply
  #1  
Old 30th January 2013, 22:44
bestlap bestlap is offline
Senior Member
 
Join Date: Nov 2012
P2P
Posts: 51
Default How I disable automatic warning for low ratio
Please help.. how I can to disable automatic warning for low ratio in TBDev 08
Reply With Quote
  #2  
Old 2nd February 2013, 00:09
kiper kiper is offline
Member
 
Join Date: Nov 2008
Posts: 10
Default
from /include/bittorrent.php or browse.php depends on where ist being displayed!
Reply With Quote
  #3  
Old 2nd February 2013, 03:40
firefly007's Avatar
firefly007 firefly007 is offline
SUPPORT GURU
 
Join Date: Jun 2010
P2P
Posts: 721
Default
Quote:
Originally Posted by bestlap View Post
Please help.. how I can to disable automatic warning for low ratio in TBDev 08
Code:
        $uped = mksize($CURUSER['uploaded']);
        $downed = mksize($CURUSER['downloaded']);
        if($CURUSER["downloaded"] > 0) {
            $ratio = $CURUSER['uploaded'] / $CURUSER['downloaded'];
            $ratio = number_format($ratio, 3);
            $ratio_1 = $ratio;
            $color = get_ratio_color($ratio);
            if($color)
                $ratio = "<font color=$color>$ratio</font>";
        }
        else
            if($CURUSER["uploaded"] > 0)
                $ratio = "Inf.";
            else
                $ratio = "---";

        if($CURUSER['donor'] == "yes")
            $medaldon = "<img src=pic/star.gif alt=donor title=donor>";

        if($CURUSER['warned'] == "yes")
            $warn = "<img src=pic/warned.gif alt=warned title=warned>";
and

Code:
    <?php

        if($ratio_1 < 0.75) {
            print ("<table align=center border=0 cellspacing=0 width=95% cellpadding=5 bgcolor=red><tr><td align='center' style='padding: 5px; background: red'>\n");
            print ("<b><font color=white>Warning: You have a low ratio! (< 0.75)</font></b>");
            print ("</td></tr></table>\n");
        }
__________________




Please Support Majority Report


You can contact me on Skype live:phesadent.elect but please let me know first.


If you are ever need me desperately then please email me at dan.oak44@gmail.com and I will contact u within a week.


Due to free time I'm able to help interested member's with their tracker.

Please Note!
Depending on your requests I will charge you for my assistance for Tracker installs and mods.
All my mods are custom and prices will very depending on the request.
I'm able to install any tracker and mods including themes.

Please PM me

Reply With Quote
  #4  
Old 3rd February 2013, 23:25
bestlap bestlap is offline
Senior Member
 
Join Date: Nov 2012
P2P
Posts: 51
Default
Please help... I delete this in include/cleanup
PHP Code:
// WARNINGS
function autowarn($length$limit$minratio)
{
$msg sqlesc("This is a automatic warning because your share ratio is too low at this moment.\n\nYou have " $length " days to higher your share ratio, read the rules to see what your ratio must be.\nIf your share ratio is too low after these 3 days you will be banned permanently!");
$until sqlesc(get_date_time(gmtime() + (($length+1)*86400)));
$dt sqlesc(get_date_time());
$limit $limit *1024*1024*1024;
$res mysql_query("SELECT id,ip FROM users WHERE class = 0 AND enabled = 'yes' AND downloaded > $limit AND uploaded / downloaded < $minratio and warned = 'no' and id<>2891") or sqlerr(__FILE____LINE__);
while (
$arr mysql_fetch_assoc($res))
{
mysql_query("UPDATE users SET permban = 'yes', warned = 'yes', warneduntil = ".$until." WHERE id=$arr[id]") or sqlerr(__FILE____LINE__);
mysql_query("INSERT INTO messages (sender, receiver, added, msg, poster) VALUES(0, $arr[id]$dt$msg, 0)") or sqlerr(__FILE____LINE__);
}
}

autowarn(3,4,0.10);
autowarn(3,10,0.20);
autowarn(3,20,0.30);
autowarn(3,30,0.40); 

and no anymore warning users but the stats ot Upload and Download torrent is crazy......

I seeding 4 torrent but in traker write 8 torrent and other users is report me to this bug ?whether I am guilty ?
Reply With Quote
  #5  
Old 6th February 2013, 12:09
firefly007's Avatar
firefly007 firefly007 is offline
SUPPORT GURU
 
Join Date: Jun 2010
P2P
Posts: 721
Default
Quote:
Originally Posted by bestlap View Post
Please help... I delete this in include/cleanup
PHP Code:
// WARNINGS
function autowarn($length$limit$minratio)
{
$msg sqlesc("This is a automatic warning because your share ratio is too low at this moment.\n\nYou have " $length " days to higher your share ratio, read the rules to see what your ratio must be.\nIf your share ratio is too low after these 3 days you will be banned permanently!");
$until sqlesc(get_date_time(gmtime() + (($length+1)*86400)));
$dt sqlesc(get_date_time());
$limit $limit *1024*1024*1024;
$res mysql_query("SELECT id,ip FROM users WHERE class = 0 AND enabled = 'yes' AND downloaded > $limit AND uploaded / downloaded < $minratio and warned = 'no' and id<>2891") or sqlerr(__FILE____LINE__);
while (
$arr mysql_fetch_assoc($res))
{
mysql_query("UPDATE users SET permban = 'yes', warned = 'yes', warneduntil = ".$until." WHERE id=$arr[id]") or sqlerr(__FILE____LINE__);
mysql_query("INSERT INTO messages (sender, receiver, added, msg, poster) VALUES(0, $arr[id]$dt$msg, 0)") or sqlerr(__FILE____LINE__);
}
}

autowarn(3,4,0.10);
autowarn(3,10,0.20);
autowarn(3,20,0.30);
autowarn(3,30,0.40); 
and no anymore warning users but the stats ot Upload and Download torrent is crazy......

I seeding 4 torrent but in traker write 8 torrent and other users is report me to this bug ?whether I am guilty ?
You have messed up you cleanup.php , could you give me the original cleanup.php file not the modded one.
__________________




Please Support Majority Report


You can contact me on Skype live:phesadent.elect but please let me know first.


If you are ever need me desperately then please email me at dan.oak44@gmail.com and I will contact u within a week.


Due to free time I'm able to help interested member's with their tracker.

Please Note!
Depending on your requests I will charge you for my assistance for Tracker installs and mods.
All my mods are custom and prices will very depending on the request.
I'm able to install any tracker and mods including themes.

Please PM me

Reply With Quote
  #6  
Old 26th February 2013, 18:11
Chez's Avatar
Chez Chez is offline
Senior Member
 
Join Date: Sep 2011
P2P
Posts: 278
Default
Check in bittorrent.php if you have something like this and delete it:

PHP Code:
if($ratio_1 0.75) {
            print (
"<table align=center border=0 cellspacing=0 width=95% cellpadding=5 bgcolor=red><tr><td align='center' style='padding: 5px; background: red'>\n");
            print (
"<b><font color=white>Warning: You have a low ratio! (< 0.75)</font></b>");
            print (
"</td></tr></table>\n");
        } 
__________________
http://www.bvlist.com/images/avatars/signaturepics/sigpic16443_2.gif
Reply With Quote
Reply

Tags
automatic , disable , low , ratio , warning

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 14:40. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.