i have a small problem
i have 2xup and silver mod they work perfectly, but when i put on a torrent both of them i get double upload and normal upload. i tried diferent thinks nothink works. I think its from announce
Thanks in advance
i have 2xup and silver mod they work perfectly, but when i put on a torrent both of them i get double upload and normal upload. i tried diferent thinks nothink works. I think its from announce
if (($upthis > 0 || $downthis > 0 || $elapsed > 0) && is_valid_id($userid)){ // LIVE STATS!)
if ($torrent["freeleech"] == 1){
SQL_Query_exec("UPDATE users SET uploaded = uploaded + $upthis WHERE id=$userid") or err("Tracker error: Unable to update stats");
SQL_Query_exec("UPDATE LOW_PRIORITY `snatched` SET `uload` = `uload` + '$upthis', `dload` = `dload` + '$downthis', `utime` = '".gmtime()."', `ltime` = `ltime` + '$elapsed' WHERE `tid` = '$torrentid' AND `uid` = '$userid'");
}
elseif ($torrent["doubleupload"] == 2){
//$upthis = ($upthis+$upthis);
SQL_Query_exec("UPDATE users SET uploaded = uploaded + ($upthis*2), downloaded = downloaded + $downthis WHERE id=$userid") or err("Tracker error: Unable to update stats");
SQL_Query_exec("UPDATE LOW_PRIORITY `snatched` SET `uload` = `uload` + '$upthis'*2, `dload` = `dload` + '$downthis', `utime` = '".gmtime()."', `ltime` = `ltime` + '$elapsed' WHERE `tid` = '$torrentid' AND `uid` = '$userid'");
}
if ($torrent["silver"] == 1){
SQL_Query_exec("UPDATE users SET uploaded = uploaded + $upthis, downloaded = downloaded + ($downthis/2) WHERE id=$userid") or err("Tracker error: Unable to update stats");
SQL_Query_exec("UPDATE LOW_PRIORITY `snatched` SET `uload` = `uload` + '$upthis', `dload` = `dload` + '$downthis'/2, `utime` = '".gmtime()."', `ltime` = `ltime` + '$elapsed' WHERE `tid` = '$torrentid' AND `uid` = '$userid'");
}
}Thanks in advance
