Bravo List

Bravo List (https://www.bvlist.com/index.php)
-   Downloads (https://www.bvlist.com/forumdisplay.php?f=16)
-   -   H-Tracker v2 (https://www.bvlist.com/showthread.php?t=1753)

BEST 28th May 2010 17:15

does ask to source in which php do I find the Navi menue? search php with Members on-line::drink:

daffy 28th May 2010 18:21

huh. i think what you mean mate, is inside. blocks/navigation.php, if no, check in admin panel for navigation. im not sure if this is added there to the db or if it is still in blocks/

BEST 28th May 2010 19:03

I mean only this about Latest Torrents what registers which is on-line user grad.:drink:

daffy 28th May 2010 21:52

sorry mate iv no idea what you mean. can you show a screenshot of what you mean.

BEST 28th May 2010 22:35

1 Attachment(s)
:drink:

daffy 28th May 2010 23:06

blocks/login_block.php

oopss 15th June 2010 13:25

erorr problem...

http://img130.imageshack.us/img130/5...46361802ef.png

gmuzica 16th June 2010 18:01

help pls
 
Quote:

Originally Posted by danscarlat (Post 22766)
I do not know why I can not upload
pray that the best experts to help me

I also have this problem, pls help us

raefor 18th June 2010 12:27

this may help
 
torrents-details.php

PHP Code:

<?
//
//  H-Tracker v0.2
//    http://h-tracker.org
//    Based on TorrentTrader (http://www.torrenttrader.org)
//
//
require_once("backend/functions.php");
require_once(
"backend/BDecode.php") ;
require_once(
"backend/parse.php") ;//replace with parse later
dbconn();
parked();

$torrent_dir = $site_config["torrent_dir"];    
$nfo_dir = $site_config["nfo_dir"];    

//check permissions
if ($site_config["MEMBERSONLY"]){
    
loggedinonly();

    if(
$CURUSER["view_torrents"]=="no")
        
show_error_msg("Error","You do not have permission to view torrents",1);
}

//************ DO SOME "GET" STUFF BEFORE PAGE LAYOUT ***************

$id = (int) $_GET["id"];
$scrape = (int)$_GET["scrape"];
if (!
is_valid_id($id))
    
show_error_msg("ERROR","Thats not a valid ID",1);

//GET ALL MYSQL VALUES FOR THIS TORRENT
    
$res = mysql_query("SELECT torrents.anon, torrents.seeders, torrents.vip, torrents.thanks, torrents.banned, torrents.nuked, torrents.tube, torrents.leechers, torrents.info_hash, torrents.filename, torrents.nfo, torrents.last_action, torrents.numratings, torrents.name, torrents.owner, torrents.save_as, torrents.descr, torrents.visible, torrents.size, torrents.added, torrents.views, torrents.hits, torrents.times_completed, torrents.id, torrents.type, torrents.external, torrents.image1, torrents.image2, torrents.announce, torrents.numfiles, torrents.freeleech, IF(torrents.numratings < 2, NULL, ROUND(torrents.ratingsum / torrents.numratings, 1)) AS rating, torrents.numratings, categories.name AS cat_name, torrentlang.name AS lang_name, torrentlang.image AS lang_image, torrentage.name AS age_name, torrentage.image AS age_image, categories.parent_cat as cat_parent, users.username, users.privacy FROM torrents LEFT JOIN categories ON torrents.category = categories.id LEFT JOIN torrentlang ON torrents.torrentlang = torrentlang.id  LEFT JOIN torrentage ON torrents.torrentage = torrentage.id LEFT JOIN users ON torrents.owner = users.id WHERE torrents.id = $id") or die(mysql_error());



$row = mysql_fetch_array($res);

$vip = $row["vip"];
$vips = $row["vip"];

if (
$vip == "y") {
$vip = "<b>Yes</b>";
} else {
$vip = "<b>No</b>";
}
//DECIDE IF TORRENT EXISTS
if (!$row || ($row["banned"] == "yes" && !$moderator))
    
show_error_msg("Error","" . TORRENT_NOT_FOUND . "",1);

//torrent is availiable so do some stuff

if ($_GET["hit"]) {
    
mysql_query("UPDATE torrents SET views = views + 1 WHERE id = $id");
    
header("Location: torrents-details.php?id=$id");
    die;
    }

    
stdhead("Details for torrent \"" . $row["name"] . "\"");

    if (
$CURUSER["id"] == $row["owner"])
        
$owned = 1;
    else
        
$owned = 0;

    if (
$CURUSER["edit_torrents"]=="yes")
        
$owned = 1;

//take rating
if ($_GET["takerating"] == 'yes'){
    
$rating = (int)$_POST['rating'];

    if (
$rating <= 0 || $rating > 5)
        
show_error_msg("Rating Error", "Invalid rating",1);

    
$res = mysql_query("INSERT INTO ratings (torrent, user, rating, added) VALUES ($id, " . $CURUSER["id"] . ", $rating, '".get_date_time()."')");

    if (!
$res) {
        if (
mysql_errno() == 1062)
            
show_error_msg("Rating Error", "You have already rated this torrent.",1);
        else
            
show_error_msg("Rating Error", "A Unknown Error, contact staff",1);
    }

    
mysql_query("UPDATE torrents SET numratings = numratings + 1, ratingsum = ratingsum + $rating WHERE id = $id");
    
autolink("torrents-details.php?id=$id", "Thank you for rating this torrent...");
}

//take comment add
if ($_GET["takecomment"] == 'yes'){
    
loggedinonly();
      if (!(
$CURUSER['comment_count'] < $CURUSER['comment_max']))
                
show_error_msg("Notice","You have reached your Comment limit. Please wait 10 minutes before retrying.");
    
$commentbody = $_POST['body'];
    
    if (!
$commentbody)
        
show_error_msg("Error","You did not enter anything!",1);

    
mysql_query("UPDATE torrents SET comments = comments + 1 WHERE id = $id") or die(mysql_error());
    
mysql_query("UPDATE users SET comment_count = comment_count + 1 WHERE id = $id") or die(mysql_error());

    
mysql_query("INSERT INTO comments (user, torrent, added, text) VALUES (".$CURUSER["id"].", ".$id.", '" .get_date_time(). "', " . sqlesc($body).")") or die(mysql_error());

    if (
mysql_affected_rows() == 1)
            
autolink("torrents-details.php?id=$id", "Your Comment was added successfully");    
         else
            
show_error_msg("Error","Unable to add comment",0);
}
//end insert comment

//START OF PAGE LAYOUT HERE
$char1 = 55; //cut length
$shortname = CutName(htmlspecialchars($row["name"]), $char1);

begin_frame("" . TORRENT_DETAILS_FOR . " \"" . $shortname . "\"");
if (
$owned)
   
$edittorrent = "<a href=torrents-edit.php?id=$row[id]><img src=\"".$site_config["SITEURL"]."/images/torrents/edit.gif\" border=\"0\" alt=\"Edit Torrent\"></a>";

// Calculate local torrent speed test
if ($row["leechers"] >= 1 && $row["seeders"] >= 1 && $row["external"]!='yes'){
    
$speedQ = mysql_query("SELECT (SUM(p.downloaded)) / (UNIX_TIMESTAMP('".get_date_time()."') - UNIX_TIMESTAMP(added)) AS totalspeed FROM torrents AS t LEFT JOIN peers AS p ON t.id = p.torrent WHERE p.seeder = 'no' AND p.torrent = '$id' GROUP BY t.id ORDER BY added ASC LIMIT 15") or die(mysql_error());
    
$a = mysql_fetch_assoc($speedQ);
    
$totalspeed = mksize($a["totalspeed"]) . "/s";
}else{
    
$totalspeed = "---"; 
}
 echo 
"<FIELDSET><LEGEND>Status</LEGEND>"; 
echo 
"<CENTER>";
if (
$row["banned"] == "yes"){
    print (
"<CENTER><B>" . DOWNLOAD . ": </B>BANNED!</CENTER>");
if (
$vip == '<b>Yes</b>' && get_user_class($CURSER) < 3) {
print(
"<tr><td align=right><b><u><font class=leechers>VIP torrent!</b></font></td></tr>");
}
}else{
if (
$site_config["AGEON"] && $CURUSER["class"] <=3){
if (
$CURUSER["age"] < $row["age_name"]){
$torrentage =  "<a href=\"" . $site_config['SITEURL'] . "/images/torrents/novideo.jpg\" rel=\"ibox\"><img border=\"0\"src=\"" . $site_config['SITEURL'] . "/images/torrents/age/" . $row["age_image"] . "\" alt=\"Age Required&nbsp;:" . $row["age_name"] . " + \" /></a>";                                                                                       
}else{
$torrentage =  "<a href=\"download.php?id=$id&name=" . rawurlencode($row["filename"]) . "\"><img border=\"0\"src=\"" . $site_config['SITEURL'] . "/images/torrents/age/" . $row["age_image"] . "\" alt=\"Age Required&nbsp;:" . $row["age_name"] . " + \" /></a>";                         
}
}else{
$torrentage =  "<a href=\"download.php?id=$id&name=" . rawurlencode($row["filename"]) . "\"><img border=\"0\"src=\"" . $site_config['SITEURL'] . "/images/torrents/age/" . $row["age_image"] . "\" alt=\"Age Required&nbsp;:" . $row["age_name"] . " + \" /></a>"; 
}
print(
"<table border=0 cellspacing=0 cellpadding=0 width=98%>");
print(
"<tr><td class=rowTabHead><b>" . HEALTH . ":</b></td>
<td class=rowTabHead><img src="
.$site_config['SITEURL']."/images/torrents/seeders.png border=\"0\" alt=\"" . SEEDS . "\"></td>
<td class=rowTabHead><img src="
.$site_config['SITEURL']."/images/torrents/leechers.png border=\"0\" alt=\"" . LEECH . "\"></td>");
if (
$row["external"]!='yes'){
print(
"<td class=rowTabHead><b>Speed:</b></td>");
}
print(
"<td class=rowTabHead><img src=".$site_config['SITEURL']."/images/torrents/completed.png border=\"0\" alt=\"" . COMPLETED . "\"></td></td>"); 
if (
$row["external"]!='yes' && $row["seeders"] <= 1 && $row["times_completed"] > 0){ //if local and completed 
print("<td class=rowTabHead><b>Who's Completed?</b></td>");
} 
if (
$row["external"]!='yes' && $row["freeleech"]=='1'){ 
print(
"<td class=rowTabHead><b>Free Leech:</b></td>");
}
if (
$row["external"]!='yes' && $vips == "y") {  
print(
"<td class=rowTabHead><b>VIP torrent: </b></td>");
}
print(
"<td class=rowTabHead><b>Last Checked:</b></td>");
if (
$row["external"]=='yes'){
if (
$scrape =='1'){
if (
$seeders1 != -1){
print(
"<td class=rowTabHead><b>Tracked:</b></td>"); 
}else{
print(
"<td class=rowTabHead><b>Live StaTus:</b></td>");
} 
print(
"<td class=rowTabHead><b>Live StaTus:</b></td>");
}else{
print(
"<td class=rowTabHead><b>Tracked:</b></td>");  
}
}

print(
"<tr><td class=status width=80 height=35><div class=progressBar>".health($row["leechers"], $row["seeders"])."</div></td>");
print(
"<td class=status><font class=seeders>" . $row["seeders"] . "</font></td>"); 
print(
"<td class=status><font class=leechers>" . $row["leechers"] . "</font></td>"); 
if (
$row["external"]!='yes'){
print(
"<td class=status>" . $totalspeed . "</td>"); 
}
print(
"<td class=status>" . $row["times_completed"] . "</td>");
if (
$row["external"]!='yes' && $row["seeders"] <= 1 && $row["times_completed"] > 0){ //if local and completed   
print("<td class=status><a href=torrents-completed.php?id=$id>View</a>&nbsp;&nbsp;<a href=torrents-reseed.php?id=$id>Request A Re-Seed</a></td>");
}
if (
$row["external"]!='yes' && $row["freeleech"]=='1'){
print(
"<td class=status><font class=error>This torrent is freeleech so only upload counts!</font></font></td>");    
}
if (
$row["external"]!='yes' && $vips == "y") {
print(
"<td class=status><font class=error>This torrent is for VIP members only!</font></td>"); 
}  
print(
"<td class=status>" . date("d-m-Y H:i:s", utc_to_tz_time($row["last_action"])) . "</td>");    

if (
$row["external"]=='yes'){
        if (
$scrape =='1'){
            print(
"<td class=status>EXTERNAL</td>\n"); 
            
$tracker=str_replace("/announce","/scrape",$row['announce']);    
            
$stats             = torrent_scrape_url($tracker, $row["info_hash"]);
            
$seeders1         = strip_tags($stats['seeds']);
            
$leechers1         = strip_tags($stats['peers']);
            
$downloaded1    = strip_tags($stats['downloaded']);

            if (
$seeders1 != -1){ //only update stats if data is received
                
print("<td class=status>"); 
                print (
"Seeders: ".$seeders1."<BR>");
                print (
"Leechers: ".$leechers1."<BR>");
                print (
"Completed: ".$downloaded1."<BR>\n");
                print (
"<form action=torrents-details.php?id=$id&scrape=1 method=post><input type=\"submit\" name=\"submit\" value=\"Update Stats\"></td></form></tr>");

                
mysql_query("UPDATE torrents SET leechers='".$leechers1."', seeders='".$seeders1."',times_completed='".$downloaded1."',last_action= '".get_date_time()."',visible='yes' WHERE id='".$row['id']."'"); 
            }else{
                print(
"<td>"); 
                print (
"<font class=error>Tracker Timeout<BR>Please retry later</font><BR><form action=torrents-details.php?id=$id&scrape=1 method=post><input type=\"submit\" name=\"submit\" value=\"Update Stats\"></td></form></tr>");
            }
        }else{
            print(
"<td class=status><div align=left>EXTERNAL&nbsp;<form action=torrents-details.php?id=$id&scrape=1 method=post><input type=\"submit\" name=\"submit\" value=\"Update Stats\"></td></form></tr>\n");
        }
print (
"<tr><td colspan=4 class=status align=center>Tracker:<font class=seeders> ".$row['announce']."</font>"); 
//read torrent info 
$TorrentInfo = array();
$TorrentInfo = ParseTorrent("$torrent_dir/$id.torrent");
$annlist = $TorrentInfo[6];
$filelist = $TorrentInfo[8];

if (
count($annlist)){
    echo 
"</td><td colspan=4 class=status align=center>Backup trackers:";
    foreach (
$annlist as $alist)    {
                echo 
""; 
        echo 
"<font class=leechers>".$alist[0]."</font>";
    }
    echo
"</td>";
}                                                                 
    }
}
print (
"<tr><td colspan=8 class=rowEnd></td></tr>");   
echo 
"</div></td></tr></table></CENTER></FIELDSET><BR>";
//end download box
$ads = ads();
if (
$ads){
  echo 
"<FIELDSET><LEGEND>Advertising</LEGEND>";
  echo
"<div class=tablebg style=\"padding:10px;\">".$ads."</div>";  
  echo 
"</FIELDSET>";  
}
echo 
"<BR><FIELDSET><LEGEND>Details</LEGEND>";
echo 
"<table cellpadding=3 border=0 width=95%>";
print(
"<table border=1 cellspacing=0 cellpadding=6 width=100%>");
print(
"<tr><td width=90 class=table_col2><b>" . NAME . ":</b></td><td class=table_col1>" . $shortname . "</td></tr>\n");
print(
"<tr><td class=table_col2 >Actions:</b></td><td class=table_col1>$torrentage&nbsp;&nbsp;<a href=report.php?torrent=$id><img src=\"".$site_config["SITEURL"]."/images/torrents/report.gif\" border=\"0\" alt=\"Report this torrent\"></a>&nbsp;".$edittorrent."</td></tr>\n");
print(
"<tr><td  class=table_col2><b>Description:</b></td><td class=table_col1><div class=\"description\"><table>" .  format_comment($row['descr']) . "</table></div></td></tr>\n");    
print(
"<tr><td  class=table_col2><b>" . TTYPE . ":</b></td><td class=table_col1>" . $row["cat_parent"] . " > " . $row["cat_name"] . "</td></tr>\n");
if (empty(
$row["lang_name"])) $row["lang_name"] = "Unknown/NA";
print(
"<tr><td align=left class=table_col2><b>Language:</b></td><td class=table_col1>" . $row["lang_name"] . "\n");

if (isset(
$row["lang_image"]) && $row["lang_image"] != "")
            print(
"&nbsp;<img border=\"0\"src=\"" . $site_config['SITEURL'] . "/images/languages/" . $row["lang_image"] . "\" alt=\"" . $row["lang_name"] . "\" />");

print(
"</td></tr>");

print(
"<tr><td class=table_col2><b>" . TOTAL_SIZE . ":</b></td><td class=table_col1>" . mksize($row["size"]) . " </td></tr>\n");
print(
"<tr><td class=table_col2><b>" . INFO_HASH . ":</b></td><td class=table_col1>" . $row["info_hash"] . "</td></tr>\n");
print(
"");
$UClass=@mysql_fetch_array(@mysql_query("SELECT * FROM users JOIN groups ON users.class=groups.group_id WHERE users.id='$row[owner]'"));
$user = "<font color=\"$UClass[Color]\">$row[username]</font>"; 
if (
$row["anon"] == "yes" && !$owned)
    print(
"<tr><td class=table_col2><b>" . ADDED_BY . ":</b></td><td class=table_col1>Anonymous</td></tr>");
elseif (
$user)
    print(
"<tr><td class=table_col2><b>" . ADDED_BY . ":</b></td><td class=table_col1><a href=account-details.php?id=" . $row["owner"] . ">" . $user . "</a>&nbsp;&nbsp;<a title=\"Respect\" href=\"simpaty.php?action=add&good&targetid=".$row["owner"]."&type=torrent".$id."\"><img src=\"images/thum_good.gif\" border=\"0\" alt=\"Respect\" title=\"Respect\" /></a>&nbsp;&nbsp;<a href=\"simpaty.php?action=add&bad&targetid=".$row["owner"]."&type=torrent".$id."\" title=\"Anti-Respect\"><img src=\"images/thum_bad.gif\" border=\"0\" alt=\"Anti-Respect\" title=\"Anti-Respect\" /></a></td></tr>");
else
    print(
"<tr><td class=table_col2><b>" . ADDED_BY . ":</b></td><td class=table_col1>Unknown</td></tr>");

print(
"<tr><td class=table_col2><b>" . DATE_ADDED . ":</b></td><td class=table_col1>" . date("d-m-Y H:i:s", utc_to_tz_time($row["added"])) . "</td></tr>\n");
print(
"<tr><td class=table_col2><b>" . VIEWS . ":</b></td><td class=table_col1>" . $row["views"] . "</td></tr>\n");
print(
"<tr><td class=table_col2><b>" . HITS . ":</b></td><td class=table_col1>" . $row["hits"] . "</td></tr>\n");
print(
"<tr><td class=table_col2><b>" . Nuked . ":</b></td><td class=table_col1>" . $row["nuked"] . "</td></tr>\n");
if (
$site_config["AGEON"] && $CURUSER["class"] <=3){ 
if (
$CURUSER["age"] < $row["age_name"]){
$torrentube =  "<a href=\"" . $site_config['SITEURL'] . "/images/torrents/novideo.jpg\" rel=\"ibox\">Watch The trailer</a>";                                                          
} else{
$torrentube =  "<a href=". str_replace("watch?v=", "v/", htmlspecialchars($row["tube"])) ." rel=\"ibox\">Watch The trailer</a>";
} 
}else{            
$torrentube =  "<a href=". str_replace("watch?v=", "v/", htmlspecialchars($row["tube"])) ." rel=\"ibox\">Watch The trailer</a>";
}
if (!empty(
$row["tube"])) 
print (
"<tr><td class=table_col2><b>" . Youtube . ": </b></td><td class=table_col1>$torrentube</td></tr>");  
$thanksl = explode(",", $row['thanks']);
if (
$CURUSER['username'] == $row['username'] || !$CURUSER) $leftthanks = true;
foreach (
$thanksl as $u) {
    
$thanks .= ($i>0)?", $u":$u;
    if (
$u == $CURUSER['username']) $leftthanks = true;
    
$i++;
}  

if (!
$thanks) $thanks = "No one yet.";

print(
"<tr><td class=table_col2><b>Thanks By:</b></td><td class=table_col1>$thanks\n");
if (!
$leftthanks) print("&nbsp;<form action=thanks.php method=POST><input type=hidden name=torrent value=$id><input type=submit value='Thanks!'></form></td></tr>\n");


// $srating IS RATING VARIABLE
        
$srating = "";
        
$srating .= "<tr><td class=\"table_col2\">Rating:</td><td class=table_col1>";
        if (!isset(
$row["rating"])) {
                
$srating .= "Not Yet Rated";
        }else{
            
$rpic = ratingpic($row["rating"]);
            if (!isset(
$rpic))
                
$srating .= "invalid?";
            else
                
$srating .= "$rpic (" . $row["rating"] . " out of 5) " . $row["numratings"] . " users have rated this torrent";
        }
        
$srating .= "\n";
        if (!isset(
$CURUSER))
            
$srating .= "(<a href=\"account-login.php?returnto=" . urlencode($_SERVER["REQUEST_URI"]) . "&nowarn=1\">Log in</a> to rate it)";
        else {
            
$ratings = array(
                    
5 => "Cool!",
                    
4 => "Pretty good",
                    
3 => "Decent",
                    
2 => "Pretty bad",
                    
1 => "Sucks!",
            );
            
//if (!$owned || $moderator) {
                
$xres = mysql_query("SELECT rating, added FROM ratings WHERE torrent = $id AND user = " . $CURUSER["id"]);
                
$xrow = mysql_fetch_array($xres);
                if (
$xrow)
                    
$srating .= "<BR><i>(You rated this torrent as \"" . $xrow["rating"] . " - " . $ratings[$xrow["rating"]] . "\")</i>";
                else {
                    
$srating .= "<form style=display:inline; method=\"post\" action=\"torrents-details.php?id=$id&takerating=yes\"><input type=\"hidden\" name=\"id\" value=\"$id\" />\n";
                    
$srating .= "<select name=\"rating\">\n";
                    
$srating .= "<option value=\"0\">(Add Rating)</option>\n";
                    foreach (
$ratings as $k => $v) {
                        
$srating .= "<option value=\"$k\">$k - $v</option>\n";
                    }
                    
$srating .= "</select>\n";
                    
$srating .= "<input type=\"submit\" value=\"Vote!\" />";
                    
$srating .= "</form>\n";
                }
            
//}
        
}
        
$srating .= "</NOBR></td></tr>";

print(
"<CENTER>". $srating . "</CENTER>");// rating

//END DEFINE RATING VARIABLE
echo "</table></FIELDSET>";  
echo 
"<BR>";
  
if (
$row["image1"] != "" OR $row["image2"] != "") {  
  if (
$row["image1"] != "")
    
$img1 = "<a href='".$site_config["SITEURL"]."/uploads/images/$row[image1]' rel='ibox'><IMG src=".$site_config["SITEURL"]."/uploads/images/$row[image1] width=\"150\" height=\"150\" border=0 alt=\"Click to enlarge\"></a>";
if (
$row["image2"] != "")
    
$img2 = "<a href='".$site_config["SITEURL"]."/uploads/images/$row[image2]' rel='ibox'><IMG src=".$site_config["SITEURL"]."/uploads/images/$row[image2] width=\"150\" height=\"150\" border=0 alt=\"Click to enlarge\"></a>";
    print(
"<CENTER>". $img1 . "&nbsp&nbsp" . $img2."</CENTER><BR>");
}

echo 
"<FIELDSET><LEGEND>File List:&nbsp;<img src='images/plus.gif' id='pic1' onclick='klappe_torrent(1)'><div id='k1' style='display: none;'></LEGEND><table align=center cellpadding=0 cellspacing=0 class=table_table width=95%><TR><TD class=table_head align=left>&nbsp;File</TD><TD width=50 class=table_head>&nbsp;Size</td></tr>";
if (
$row["numfiles"] > 1){
    foreach (
$filelist as $file) {
    
$dir = '';
    
$size = $file["length"];
    
$count = count($file["path"]);
    for (
$i=0; $i<$count;$i++) {
        if ((
$i+1) == $count)
            
$fname = $dir.$file["path"][$i];
        else
            
$dir .= $file["path"][$i]."/";
    }
$char1 = 65; //cut name length 
$smallname = CutName(htmlspecialchars($fname), $char1);
        echo 
"<TR><td class=table_col2>$smallname</td><TD class=table_col2>".mksize($size)."</td></tr>";
    }
}else{
    echo 
"<TR><td  class=table_col2>".$row["name"]."</td><TD  class=table_col1>".mksize($row["size"])."</td></tr>";
}
 echo 
"<TR><td class=table_end colspan=2></td></tr>";
echo 
"</table></div></FIELDSET>";

if (
$row["external"]!='yes'){
    echo 
"<FIELDSET><LEGEND>Peers List:&nbsp;<img src='images/plus.gif' id='pic2' onclick='klappe_torrent(2)'><div id='k2' style='display: none;'></LEGEND>";
    
$query = mysql_query("SELECT * FROM peers WHERE torrent = $id ORDER BY seeder DESC");

    
$result = mysql_num_rows($query);
        if(
$result == 0) {
            echo 
"No Active Peers\n";
        }else{
            
?>
            <table align=center cellpadding="3" cellspacing="0" class="table_table" width="98%">
            <tr>
            <td class="table_head">Port</td>
<?
            
print("<td class=\"table_head\"><div align=center><img src=\"/images/torrents/uploaded.png\" border=\"0\" alt=\"Uploaded\"></div></td>");
            print(
"<td class=\"table_head\"><div align=center><img src=\"/images/torrents/downloaded.png\" border=\"0\" alt=\"Downloaded\"></div></td>");?>
            <td class="table_head">Ratio</td>
            <td class="table_head">Left</td>
            <td class="table_head">% Comp</td>
            <td class="table_head">Seeder</td>
            <td class="table_head">Connect</td>
            <td class="table_head">client</td>
            <td class="table_head">User</td>
            </tr>

            <?php
while($row1 = MYSQL_FETCH_ARRAY($query))    {
                        if (
$row1["downloaded"] > 0)
{
$ratio = number_format($row1["uploaded"] / $row1["downloaded"], 2);
if ((
$row1["uploaded"] / $row1["downloaded"]) > 10)
$ratio = "10+";
}
else
if (
$row1["uploaded"] > 0)
$ratio = "Inf.";
else
$ratio = "----";
                
$percentcomp = sprintf("%.2f", 100 * (1 - ($row1["to_go"] / $row["size"])));    

                if (
$site_config["MEMBERSONLY"]) {
                    
$res = mysql_query("SELECT id, username, privacy FROM users WHERE id=".$row1["userid"]."");
                    
$arr = MYSQL_FETCH_ARRAY($res);
                }
                
$arr["username"];
                if (
$arr["privacy"] != "strong" || ($CURUSER["control_panel"] == "yes")) {
                    print(
"<tr><td class=table_col2>".$row1["port"]."</td><td class=table_col1>".mksize($row1["uploaded"])."</td><td class=table_col2>".mksize($row1["downloaded"])."</td><td class=table_col1>".$ratio."</td><td class=table_col2>".mksize($row1["to_go"])."</td><td class=table_col1>".$percentcomp."%</td><td class=table_col2>$row1[seeder]</td><td class=table_col1>$row1[connectable]</td><td class=table_col2>$row1[client]</td><td class=table_col1><a href=account-details.php?id=$arr[id]>$arr[username]</a></td></tr>");
                }else{
                    print(
"<tr><td class=table_col2>".$row1["port"]."</td><td class=table_col1>".mksize($row1["uploaded"])."</td><td class=table_col2>".mksize($row1["downloaded"])."</td><td class=table_col1>".$ratio."</td><td class=table_col2>".mksize($row1["to_go"])."</td><td class=table_col1>".$percentcomp."%</td><td class=table_col2>$row1[seeder]</td><td class=table_col1>$row1[connectable]</td><td class=table_col2>$row1[client]</td><td class=table_col1>Private</td></tr>");
                }

            }
            echo 
"<tr><td class=\"table_end\" colspan=12></td></tr>";
            echo 
"</table></div></FIELDSET>";
    }
}


echo 
"<BR><BR>";

//DISPLAY NFO BLOCK
function my_nfo_translate($nfo){
        
$trans = array(
        
"\x80" => "Ç", "\x81" => "ü", "\x82" => "é", "\x83" => "â", "\x84" => "ä", "\x85" => "à", "\x86" => "å", "\x87" => "ç", "\x88" => "ê", "\x89" => "ë", "\x8a" => "è", "\x8b" => "ï", "\x8c" => "î", "\x8d" => "ì", "\x8e" => "Ä", "\x8f" => "Å", "\x90" => "É",
        
"\x91" => "æ", "\x92" => "Æ", "\x93" => "ô", "\x94" => "ö", "\x95" => "ò", "\x96" => "û", "\x97" => "ù", "\x98" => "ÿ", "\x99" => "Ö", "\x9a" => "Ü", "\x9b" => "¢", "\x9c" => "£", "\x9d" => "¥", "\x9e" => "₧", "\x9f" => "ƒ", "\xa0" => "á", "\xa1" => "í",
        
"\xa2" => "ó", "\xa3" => "ú", "\xa4" => "ñ", "\xa5" => "Ñ", "\xa6" => "ª", "\xa7" => "º", "\xa8" => "¿", "\xa9" => "⌐", "\xaa" => "¬", "\xab" => "½", "\xac" => "¼", "\xad" => "¡", "\xae" => "«", "\xaf" => "»", "\xb0" => "░", "\xb1" => "▒", "\xb2" => "▓",
        
"\xb3" => "│", "\xb4" => "┤", "\xb5" => "╡", "\xb6" => "╢", "\xb7" => "╖", "\xb8" => "╕", "\xb9" => "╣", "\xba" => "║", "\xbb" => "╗", "\xbc" => "╝", "\xbd" => "╜", "\xbe" => "╛", "\xbf" => "┐", "\xc0" => "└", "\xc1" => "┴", "\xc2" => "┬", "\xc3" => "├",
        
"\xc4" => "─", "\xc5" => "┼", "\xc6" => "╞", "\xc7" => "╟", "\xc8" => "╚", "\xc9" => "╔", "\xca" => "╩", "\xcb" => "╦", "\xcc" => "╠", "\xcd" => "═", "\xce" => "╬", "\xcf" => "╧", "\xd0" => "╨", "\xd1" => "╤", "\xd2" => "╥", "\xd3" => "╙", "\xd4" => "╘",
        
"\xd5" => "╒", "\xd6" => "╓", "\xd7" => "╫", "\xd8" => "╪", "\xd9" => "┘", "\xda" => "┌", "\xdb" => "█", "\xdc" => "▄", "\xdd" => "▌", "\xde" => "▐", "\xdf" => "▀", "\xe0" => "α", "\xe1" => "ß", "\xe2" => "Γ", "\xe3" => "π", "\xe4" => "Σ", "\xe5" => "σ",
        
"\xe6" => "µ", "\xe7" => "τ", "\xe8" => "Φ", "\xe9" => "Θ", "\xea" => "Ω", "\xeb" => "δ", "\xec" => "∞", "\xed" => "φ", "\xee" => "ε", "\xef" => "∩", "\xf0" => "≡", "\xf1" => "±", "\xf2" => "≥", "\xf3" => "≤", "\xf4" => "⌠", "\xf5" => "⌡", "\xf6" => "÷",
        
"\xf7" => "≈", "\xf8" => "°", "\xf9" => "∙", "\xfa" => "·", "\xfb" => "√", "\xfc" => "ⁿ", "\xfd" => "²", "\xfe" => "■", "\xff" => " ",
        );
        
$trans2 = array("\xe4" => "&auml;",        "\xF6" => "&ouml;",        "\xFC" => "&uuml;",        "\xC4" => "&Auml;",        "\xD6" => "&Ouml;",        "\xDC" => "&Uuml;",        "\xDF" => "&szlig;");
        
$all_chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
        
$last_was_ascii = False;
        
$tmp = "";
        
$nfo = $nfo . "\00";
        for (
$i = 0; $i < (strlen($nfo) - 1); $i++)
        {
                
$char = $nfo[$i];
                if (isset(
$trans2[$char]) and ($last_was_ascii or strpos($all_chars, ($nfo[$i + 1]))))
                {
                        
$tmp = $tmp . $trans2[$char];
                        
$last_was_ascii = True;
                }
                else
                {
                        if (isset(
$trans[$char]))
                        {
                                
$tmp = $tmp . $trans[$char];
                        }
                        else
                        {
                            
$tmp = $tmp . $char;
                        }
                        
$last_was_ascii = strpos($all_chars, $char);
                }
        }
        return 
$tmp;
}
//-----------------------------------------------

//DISPLAY NFO BLOCK
if($row["nfo"]== "yes"){
    
$nfofilelocation = "$nfo_dir/$row[id].nfo";
    
$filegetcontents = file_get_contents($nfofilelocation);
    
$nfo = htmlspecialchars($filegetcontents);
        if (
$nfo) {    
            
$nfo = my_nfo_translate($nfo); 
            
begin_table();
            print(
"<tr><td class=rowtabhead>NFO</td></tr>\n"); 
            print(
"<tr><td align=center class=tablebg>\n");

            print(
"<textarea class=nfo wrap=\"off\" rows=30 and cols=30 READONLY>".stripslashes($nfo)."</textarea>");
            print(
"<tr><td class=rowend></td></tr>\n"); 
            
end_table();
        }else{
            print(
"Error reading .nfo file!");
        }
}
end_frame();

begin_frame("" . COMMENTS . "");
    
//echo "<p align=center><a class=index href=torrents-comment.php?id=$id>" . ADDCOMMENT . "</a></p>\n";
    
    
$subres = mysql_query("SELECT COUNT(*) FROM comments WHERE torrent = $id") or die(mysql_error());
    
$subrow = mysql_fetch_array($subres);
    
$commcount = $subrow[0];
    
    if (
$commcount) {
        list(
$pagertop, $pagerbottom, $limit) = pager(10, $commcount, "torrents-details.php?id=$id&");
        
$commquery = "SELECT comments.id, text, user, comments.added, editedby, editedat, avatar, signature, username, title, class, uploaded, downloaded, privacy, donated FROM comments LEFT JOIN users ON comments.user = users.id WHERE torrent = $id ORDER BY comments.id $limit";
        
$commres = mysql_query($commquery) or die(mysql_error());
    }else{
        unset(
$commres);
    }

    if (
$commcount) {
        print(
$pagertop);
        
commenttable($commres);
        print(
$pagerbottom);
    }else {
        print(
"<BR><b><CENTER>" . NOCOMMENTS . "</CENTER></b><BR>\n");
    }

    require_once(
"backend/bbcode.php");

    if (
$CURUSER) {
        echo 
"<CENTER>";
        echo 
"<form name=\"comment\" method=\"post\" action=\"torrents-details.php?id=$row[id]&takecomment=yes\">"; 
        echo 
"".textbbcode("comment","body")."";
        echo 
"<input type=\"submit\" class=lbutton value=\"Add Comment\" />";
        echo 
"</form></CENTER>"; 
    }

    
end_frame();

stdfoot();
?>


gmuzica 25th June 2010 22:05

help, urgentli
 
please help me with this

http://crono-image.hi2.ro/images/528_help.gif

Egidijuss 2nd July 2010 23:07

Help me please
 
Code:

Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /home/........................../public_html/backend/functions.php on line 406

daffy 2nd July 2010 23:26

.
 
what is on line 406.

i think you need to turn magic_quotes off

Egidijuss 2nd July 2010 23:39

Quote:

Originally Posted by Egidijuss (Post 23903)
Code:

Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /home/........................../public_html/backend/functions.php on line 406


is
Code:

$x = "'".mysql_real_escape_string($x)."'";

daffy 2nd July 2010 23:50

try turning magic_quotes off

Egidijuss 2nd July 2010 23:59

-
 
Quote:

Originally Posted by daffy (Post 23908)
try turning magic_quotes off


where Find

daffy 3rd July 2010 00:21

it will be in your php.ini for apache on your server. try this way first. if dont work, you will need to find it in php.ini

open your .htaccess and add below to it

Code:

php_flag magic_quotes_gpc Off
.htaccess file is where all your files sit for site. in public_html/


are you getting this on main page or specific page?

Egidijuss 3rd July 2010 09:16

-
 
Quote:

Originally Posted by daffy (Post 23911)
it will be in your php.ini for apache on your server. try this way first. if dont work, you will need to find it in php.ini

open your .htaccess and add below to it

Code:

php_flag magic_quotes_gpc Off
.htaccess file is where all your files sit for site. in public_html/


are you getting this on main page or specific page?

:sorry:

gmuzica 14th September 2010 21:12

Forum problem
 
I have a problem with forum.

Is lokk like this:

http://crono-image.hi2.ro/images/365_untitled.jpg


Is not looking good,

what shood i do?:coffee:

daffy 14th September 2010 21:59

cant see nothing mate.

daffy 24th September 2010 19:53

no idea what you just said there mate, looking at the picture now, check settings for paths/ config.php and check url settings.

http://sitename.com, make sure all permissions are correct and ALL FILES correctly in place.

BEST 27th September 2010 09:38

1 Attachment(s)
Hello my buddy and I wanted to take come us the H Tracker once under the magnifying glass however unfortunately not further. Sql is all above and data for the DB also are registered.. if I now on signup go comes only consequence end..

Where does the mistake lie now and how we can remove that?

lg

lencoo12 28th September 2010 09:35

Quote:

Originally Posted by Egidijuss (Post 23907)
is
Code:

$x = "'".mysql_real_escape_string($x)."'";

what is on line 406.

i think you need to turn magic_quotes off

gmuzica 29th September 2010 15:26

ShoutBox, please help
 
How I do to appear in chat what is uploadet. Like this:

SYSTEM: New torrent: "Torrent Name" was just uploaded. Please seed back what you take!!

zeek 21st October 2010 19:09

Is this tracker still being developed because the h-tracker.org website is gone...It's an awesome script and I'll be sad if no one is still working on it.

daffy 21st October 2010 19:21

Quote:

Originally Posted by zeek
Is this tracker still being developed because the h-tracker.org website is gone...It's an awesome script and I'll be sad if no one is still working on it.

whyyyyy??? its only Torrent Trader at the end of the day matey.

and for

Quote:

Originally Posted by gmuzica
ShoutBox, please help
How I do to appear in chat what is uploadet. Like this:

SYSTEM: New torrent: "Torrent Name" was just uploaded. Please seed back what you take!!

simple buddy, just open up torrent-upload.php

add this below lets say after

//End Scrape

Code:

    write_log("Torrent $id ($name) was Uploaded by $CURUSER[username]");
        $query = "INSERT INTO shoutbox (msgid, user, message, date, userid) VALUES (NULL, 'SYSTEM', ' ".$torrent." has been uploaded.', '".get_date_time()."', '0')";
        mysql_query($query);

        $mb_basic=1024*1024;
        $bonust = $mb_basic * 1024 * 5;
        mysql_query("UPDATE users SET uploaded = uploaded + '$bonust', uptor = uptor + '1' WHERE id=".$CURUSER["id"]) or sqlerr();

this part below you dont need but it is to give upload 5gb bonus credit for uploading. either change 5 to amount gigs given or remove

Code:

$mb_basic=1024*1024;
        $bonust = $mb_basic * 1024 * 5;
        mysql_query("UPDATE users SET uploaded = uploaded + '$bonust',


hack346 28th October 2010 10:09

Quote:

Originally Posted by zeek (Post 25280)
Is this tracker still being developed because the h-tracker.org website is gone...It's an awesome script and I'll be sad if no one is still working on it.

that site is not more available (fault of sponsor)

now im working on a new version of H-tracker and i hope to open my own site to provide support for this source
Best regards. M

movizdb 29th October 2010 23:50

Quote:

Originally Posted by hack346 (Post 25380)
that site is not more available (fault of sponsor)

now im working on a new version of H-tracker and i hope to open my own site to provide support for this source
Best regards. M

Will wait for it :D

By the way if you want hosting sponsor contact me , i'll be glad to help you ;)

guinox 17th December 2010 17:05

please help
 
Code:

Warning
Code:

:  mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/xxxxxxx/www/backend/functions.php on line 69
Table 'xxxxxxx.languages' doesn't exist


:sos:

daffy 17th December 2010 17:33

the answer is in the error

supermen.languages dont exist

is supermen your db name? looks like you dont have languages installed

show line 69 please. also try adding this to your sql (log in to phpmyadmin. click on database name (supermen) click on sql along the top and paste below, hit go. this will add languages database table even tho it should be in anyway.

Code:

CREATE TABLE `languages` (
  `id` int(10) unsigned NOT NULL auto_increment,
  `uri` varchar(255) NOT NULL default '',
  `name` varchar(64) NOT NULL default '',
  PRIMARY KEY  (`id`)
) TYPE=MyISAM AUTO_INCREMENT=15 ;

INSERT INTO `languages` (`id`, `uri`, `name`) VALUES
(1, 'english.lang', 'English'),
(2, 'french.lang', 'French'),
(3, 'dutch.lang', 'Dutch'),
(4, 'portuguese.lang', 'Portuguese'),
(5, 'swedish.lang', 'Swedish'),
(6, 'german.lang', 'German'),
(7, 'bulgarian.lang', 'Bulgarian'),
(8, 'danish.lang', 'Danish'),
(9, 'italian.lang', 'Italian'),
(10, 'lithuanian.lang', 'Lithuanian'),
(11, 'hungarian.lang', 'Hungarian'),
(13, 'russian.lang', 'Russian'),
(14, 'spanish.lang', 'Spanish');


guinox 17th December 2010 21:50

thnk:ok:

Legend2000 15th May 2012 03:58

HELP!
 
Hi,I really don't know where to go further from here,i have installed the Mozilla but don't know where to do further?,Please Help,Thanks:sos::sos::sos:

http://img1.imagehousing.com/57/77ce...239d43bca2.jpg

easy62120 7th December 2012 23:09

Problem description
 
hello

Here I have an issue with the description of the torrent it does not display properly

http://img15.hostingpics.net/pics/59...ntsdetails.png


How to fix this??

wMan 8th December 2012 01:06

ok on the torrents-upload you put the nfo in the box yes now remove it on edit torrents-details remove all save edit so nothing in it then put nfo back in on torrents-details as there is big bugs in the i do have the fix for this, all new torrents-upload and torrents-details, As your getting this "rnrn" chars on nfo on upload

Bump:
Quote:

Originally Posted by Legend2000 (Post 34764)
Hi,I really don't know where to go further from here,i have installed the Mozilla but don't know where to do further?,Please Help,Thanks:sos::sos::sos:

http://img1.imagehousing.com/57/77ce...239d43bca2.jpg

PHP Code:

$browser = $_SERVER['HTTP_USER_AGENT'];
$SITENAME = $site_config['SITENAME'];
if(
preg_match("/MSIE/i",$browser))//browser is IE
{
begin_frame("" . WARNING . "");
echo 
'<center><img border="0" src="http://www.bvlist.com/images/warning.png"/></center>';
echo 
'<center><font size=\"+2\"><b>Warning!</b></color></font></center>';
echo 
'<center>It appears as though you are running Internet Explorer this site was <b>NOT</b> intended to be viewed with internet explorer and chances are it will not look right and may not even function correctly.</center>';
echo 
'<center>But if you still want to use Internet Explorer then use Internet Explorer 7.</center>';
echo 
'<center>'.$SITENAME.' suggests that you browse happy and consider switching to one of the many better alternatives.</center>';
echo 
'<center><a href="http://www.mozilla.com/firefox/"><img border="0" alt="Get Firefox!" title="Get Firefox!" src="http://www.bvlist.com/images/firefox.png"/></a></center>';
echo 
'<center><strong>Get a SAFER browser !</strong></center>';
    
end_frame();
} 

@the index.php

easy62120 8th December 2012 12:31

Someone a solution for my problem description??

Bump: UP

wMan 1st January 2013 14:59

I can't Help

TheGodRo 24th May 2013 14:16

PHP Code:

Unknown column 'groups.group_id' in 'on clause' 


hack346 24th May 2013 17:05

Quote:

Originally Posted by TheGodRo (Post 40956)
PHP Code:

Unknown column 'groups.group_id' in 'on clause' 


Post entire error,
also i don`t know if this source still working on php 5.

ysgunay 10th June 2013 02:05

About Seeding Bonus
 
Hi,

I have seeding bonus system. My problem is when someone seed more than one torrent, seeding bonus is count only for one torrent. For example: One of my user seed 3 torrents and earn 5 points in one hour. Another user seed only one torrent but earn same point. I neer like this table:

1 torrent seeding 1 hour earn 5 points
2 torrent seeding 1 hour earn 10 points
3 torrent seeding 1 hour earn 15 points...etc

Anywone have a idea?
Thanks


All times are GMT +2. The time now is 23:27.

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