$res3 = mysql_query("select count(snatched.id) from snatched inner join users on snatched.userid = users.id inner join torrents on snatched.torrentid = torrents.id where snatched.torrentid =" . $_GET[id]) or die(mysql_error());
for
$res3 = mysql_query("select count(snatched.id) from snatched inner join users on snatched.userid = users.id inner join torrents on snatched.torrentid = torrents.id where snatched.torrentid =" . $_GET[id] . "") or die(mysql_error()); $res=mysql_query ("SELECT name FROM speed WHERE id=" . $CURUSER["download"] ."") or die(mysql_error());
$arr = mysql_fetch_assoc($res);
$res1=mysql_query ("SELECT name FROM speed WHERE id=" . $CURUSER["upload"] ."") or die(mysql_error());
$arr1 = mysql_fetch_assoc($res1);
<? print("<B>Download Speed:</b> " . $arr["name"] . "\n"); ?><img src="images/speed_down.png" alt="Download Speed" width="10" height="15" /><br>
<? print("<B>Upload Speed:</b> " . $arr1["name"] . "\n"); ?><img src="images/speed_up.png" alt="Upload Speed" width="10" height="15" />
<br> "dent, post: 58594":Hi Mod works fine. Thank you everybody and anybody involved !!!
My question:
I want to display the internet speed for myself and for every user in account.php under my details.
I tried but failed so far.
Any tips?
Internet Speed: <img src="images/speed_up.png" alt="Download Speed" width="10" height="15" />
<? print("$uploadspeed") ?>
<img src="images/speed_down.png" alt="Upload Speed" width="10" height="15" />
<? print("$downloadspeed") ?><BR> "piop, post: 47643":Do you known what you do ?
IF:
:) ('yes','no'... not '2')
should have some mysql error if you install this mod.
AND:if ($row["silver"] == 2)
ALTER TABLE torrents ADD silver ENUM ('yes','no') DEFAULT 'no';
$row[silver] never equal to 2
ALTER TABLE torrents ADD silver ENUM ('0','1') DEFAULT '0'; "Jeb, post: 58438":i'm not sure Snowtigers using TT, for Torrent411 OK...and all scripts are likely hacked by a hacker, not obligatory just TT but all torrent scripts.
"diablo2008, post: 58436":Both use TT v1 and as TS said there's security issues with v1.Your script is not safe
"diablo2008, post: 58436":v2 is now more than 2 years and didn't see any tk hacked based on v2(for security issues).rewrite all the code again or[size=14px] a new release based on a new script[/size] and Bondone TorrentTrader v2.x and classic
ALTER TABLE `snatched` ADD `seed_end` datetime NOT NULL default '0000-00-00 00:00:00'(uploaded / downloaded) >= $minratio2 "David Rickerd, post: 55569":and why do you care about reading what you typed so quickly?!? :unsure:
"David Rickerd, post: 55569":If you can help with a line of code to force the refresh of a seperate .php....would be more then happy to figure it out faster!! :rolleyes:
$minratio2 = 1.5
and
uploaded / downloaded >= $minratio2 "kardklub, post: 54195":if ($user["class"] == 3 || $user["donated"] > 0) { $star = " <img src=images/star.gif border=0>"; } else { $star = ""; }
print("<a href=\"account-details.php?id=".$user["id"]."\"><font style=\" color:
".$color."\">".$user["username"]."</font></a>$star, ");
Sorry to be a pain- but what would this line of code be changed to in tt2.05- cause i have
echo "<a href='account-details.php?id=$row[id]'>$row[username]</A>, \n";
This is for users on line.
thanks
Kardklub
p.s i have had a mess about but i kept getting no stars or everyone with stars. :lol:
if ($row["class"] == 3 || $row["donated"] > 0) { $star = " <img src=images/star.gif border=0>"; } else {
$star = ""; }
echo "<a href='account-details.php?id=$row[id]'><font style='color:
".$color."'>$row[username]</font></a>$star, "; //BAN WARNED USERS
$res = mysql_query("SELECT id,username FROM users WHERE class = 1 AND enabled='yes' AND warned = 'yes' AND uploaded / downloaded < $minratio AND downloaded >= $downloaded");
change for:
//BAN WARNED USERS
$res = mysql_query("SELECT id,username,ip FROM users WHERE class = 1 AND enabled='yes' AND warned = 'yes' AND uploaded / downloaded < $minratio AND downloaded >= $downloaded") or die(mysql_error());
find:
while ($arr = mysql_fetch_assoc($res)){
$r = mysql_query("SELECT id, UNIX_TIMESTAMP(expiry) as expiry FROM warnings WHERE userid=$arr[id]");
$row = mysql_fetch_assoc($r);
change for:
while ($arr = mysql_fetch_assoc($res)){
$first = trim($arr["ip"]);
$last = trim($arr["ip"]);
$added = sqlesc(get_date_time());
$first = ip2long($first);
$last = ip2long($last);
$r = mysql_query("SELECT id, userid, UNIX_TIMESTAMP(expiry) as expiry FROM warnings WHERE userid=$arr[id]") or die(mysql_error());
$row = mysql_fetch_assoc($r);
find:
mysql_query("UPDATE users SET enabled='no', warned='no' WHERE id='".$arr["id"]."'");
add after:
mysql_query("INSERT INTO bans (added, addedby, first, last, comment) VALUES($added, '1', $first, $last, 'low ratio')") or die(mysql_error()); <? print("" . IN . "\n"); ?>
<select name="cat">
<option value="0">(All types)</option>
<?
$cats = genrelist();
$catdropdown = "";
foreach ($cats as $cat) {
$catdropdown .= "<option value=\"" . $cat["id"] . "\"";
if ($cat["id"] == $_GET["cat"])
$catdropdown .= " selected=\"selected\"";
$catdropdown .= ">" . htmlspecialchars($cat["parent_cat"]) . ": " . htmlspecialchars($cat["name"]) . "</option>\n";
}
?>
<?= $catdropdown ?>
</select>