Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev
Reply
  #1  
Old 11th June 2015, 22:53
b990rvn's Avatar
b990rvn b990rvn is offline
Senior Member
 
Join Date: Aug 2014
Posts: 15
Default Torrent page problem
After i upload a torrent...No seed ... My utorrent say

No connection could be made because the target machine actively refused it.


And the other problem is on torrent's page...is not displayng the full page...and it loads very slow
Attached Thumbnails
torrent.png  
Reply With Quote
  #2  
Old 11th June 2015, 23:59
DND's Avatar
DND DND is offline
VIP
 
Join Date: Dec 2008
Posts: 1,237
Default
hi2.ro host? haha vai cand vad romanasi care vor tractoare dar habar nu au putina logica in erorile pe care le primesc
ontopic: don't use shared hosting. :)
__________________
Need HELP!? I can install:

  1. Server/VPS (Debian,CentOS,Ubuntu,Fedora, FreeBSD) Optimization and ... + Modules
  2. Webserver Windows/Linux (Apache/Lighttpd/Nginx/Mysql/PhpMyAdmin/SSL) Optimization and ... + Modules
  3. Seedbox Windows/Linux (uTorrent,rTorrent,libTorrent,ruTorrent) + Modules
  4. Multiple source code engines
  5. Linux Server Administration (security, cryptography/encryption, proxy, load balancer, custom ddos firewall)
Reply With Quote
  #3  
Old 14th June 2015, 21:01
b990rvn's Avatar
b990rvn b990rvn is offline
Senior Member
 
Join Date: Aug 2014
Posts: 15
Default
M-am mutat pe dedicat..tot aceeasi eroare
Details.php
Code:
<?
//error_reporting(1);
ob_start("ob_gzhandler");
require_once("include/bittorrent.php");
require ("include/commenttable.php");

function getagent($httpagent, $peer_id="")
{
if (preg_match("/^Azureus ([0-9]+\.[0-9]+\.[0-9]+\.[0-9]\_B([0-9][0-9|*])(.+)$)/", $httpagent, $matches))
return "Azureus/$matches[1]";
elseif (preg_match("/^Azureus ([0-9]+\.[0-9]+\.[0-9]+\.[0-9]\_CVS)/", $httpagent, $matches))
return "Azureus/$matches[1]";
elseif (preg_match("/^Java\/([0-9]+\.[0-9]+\.[0-9]+)/", $httpagent, $matches))
return "Azureus/<2.0.7.0";
elseif (preg_match("/^Azureus ([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)/", $httpagent, $matches))
return "Azureus/$matches[1]";
elseif (preg_match("/BitTorrent\/S-([0-9]+\.[0-9]+(\.[0-9]+)*)/", $httpagent, $matches))
return "Shadow's/$matches[1]";
elseif (preg_match("/BitTorrent\/U-([0-9]+\.[0-9]+\.[0-9]+)/", $httpagent, $matches))
return "UPnP/$matches[1]";
elseif (preg_match("/^BitTor(rent|nado)\\/T-(.+)$/", $httpagent, $matches))
return "BitTornado/$matches[2]";
elseif (preg_match("/^BitTornado\\/T-(.+)$/", $httpagent, $matches))
return "BitTornado/$matches[1]";
elseif (preg_match("/^BitTorrent\/ABC-([0-9]+\.[0-9]+(\.[0-9]+)*)/", $httpagent, $matches))
return "ABC/$matches[1]";
elseif (preg_match("/^ABC ([0-9]+\.[0-9]+(\.[0-9]+)*)\/ABC-([0-9]+\.[0-9]+(\.[0-9]+)*)/", $httpagent, $matches))
return "ABC/$matches[1]";
elseif (preg_match("/^Python-urllib\/.+?, BitTorrent\/([0-9]+\.[0-9]+(\.[0-9]+)*)/", $httpagent, $matches))
return "BitTorrent/$matches[1]";
elseif (preg_match("/^BitTorrent\/brst(.+)/", $httpagent, $matches))
return "Burst";
elseif (preg_match("/^RAZA (.+)$/", $httpagent, $matches))
return "Shareaza/$matches[1]";
elseif (preg_match("/Rufus\/([0-9]+\.[0-9]+\.[0-9]+)/", $httpagent, $matches))
return "Rufus/$matches[1]";
elseif (preg_match("/^Python-urllib\\/([0-9]+\\.[0-9]+(\\.[0-9]+)*)/", $httpagent, $matches))
return "G3 Torrent";
elseif (preg_match("/MLDonkey\/([0-9]+).([0-9]+).([0-9]+)*/", $httpagent, $matches))
return "MLDonkey/$matches[1].$matches[2].$matches[3]";
elseif (preg_match("/ed2k_plugin v([0-9]+\\.[0-9]+).*/", $httpagent, $matches))
return "eDonkey/$matches[1]";
elseif (preg_match("/uTorrent\/([0-9]+)([0-9]+)([0-9]+)([0-9A-Z]+)/", $httpagent, $matches))
return "uTorrent/$matches[1].$matches[2].$matches[3].$matches[4]";
elseif (preg_match("/CT([0-9]+)([0-9]+)([0-9]+)([0-9]+)/", $peer_id, $matches))
return "cTorrent/$matches[1].$matches[2].$matches[3].$matches[4]";
elseif (preg_match("/Transmission\/([0-9]+).([0-9]+)/", $httpagent, $matches))
return "Transmission/$matches[1].$matches[2]";
elseif (preg_match("/KT([0-9]+)([0-9]+)([0-9]+)([0-9]+)/", $peer_id, $matches))
return "KTorrent/$matches[1].$matches[2].$matches[3].$matches[4]";
elseif (preg_match("/rtorrent\/([0-9]+\\.[0-9]+(\\.[0-9]+)*)/", $httpagent, $matches))
return "rTorrent/$matches[1]";
elseif (preg_match("/^ABC\/Tribler_ABC-([0-9]+\.[0-9]+(\.[0-9]+)*)/", $httpagent, $matches))
return "Tribler/$matches[1]";
elseif (preg_match("/^BitsOnWheels( |\/)([0-9]+\\.[0-9]+).*/", $httpagent, $matches))
return "BitsOnWheels/$matches[2]";
elseif (preg_match("/BitTorrentPlus\/(.+)$/", $httpagent, $matches))
return "BitTorrent Plus!/$matches[1]";
elseif (ereg("^Deadman Walking", $httpagent))
return "Deadman Walking";
elseif (preg_match("/^eXeem( |\/)([0-9]+\\.[0-9]+).*/", $httpagent, $matches))
return "eXeem$matches[1]$matches[2]";
elseif (preg_match("/^libtorrent\/(.+)$/", $httpagent, $matches))
return "libtorrent/$matches[1]";
elseif (substr($peer_id, 0, 12) == "d0c")
return "Mainline";
elseif (substr($peer_id, 0, 1) == "M")
return "Mainline/Decoded";
elseif (substr($peer_id, 0, 3) == "-BB")
return "BitBuddy";
elseif (substr($peer_id, 0, 8) == "-AR1001-")
return "Arctic Torrent/1.2.3";
elseif (substr($peer_id, 0, 6) == "exbc\08")
return "BitComet/0.56";
elseif (substr($peer_id, 0, 6) == "exbc\09")
return "BitComet/0.57";
elseif (substr($peer_id, 0, 6) == "exbc\0:")
return "BitComet/0.58";
elseif (substr($peer_id, 0,4) == "-BC0")
return "BitComet/0.".substr($peer_id,5,2);
elseif (substr($peer_id, 0, 7) == "exbc\0L")
return "BitLord/1.0";
elseif (substr($peer_id, 0, 7) == "exbcL")
return "BitLord/1.1";
elseif (substr($peer_id, 0, 3) == "346")
return "TorrenTopia";
elseif (substr($peer_id, 0, 8) == "-MP130n-")
return "MooPolice";
elseif (substr($peer_id, 0, 8) == "-SZ2210-")
return "Shareaza/2.2.1.0";
elseif (ereg("^0P3R4H", $httpagent))
return "Opera BT Client";
elseif (substr($peer_id, 0, 6) == "A310--")
return "ABC/3.1";
elseif (ereg("^XBT Client", $httpagent))
return "XBT Client";
elseif (ereg("^BitTorrent\/BitSpirit$", $httpagent))
return "BitSpirit";
elseif (ereg("^DansClient", $httpagent))
return "XanTorrent";
else
return "Unknow";
}

function dltable($name, $arr, $torrent)
{
        global $CURUSER;
        $s = "<b>" . count($arr) . " $name</b>\n";
        if (!count($arr))
                return $s;
        $s .= "\n";
        $s .= "<table width=60% class=main border=1 cellspacing=0 cellpadding=5>\n";
        $s .= "<tr><td class=colhead>User/IP</td>" .
          "<td class=colhead align=center>Conn.</td>".
          "<td class=colhead align=center>Up.</td>".
          "<td class=colhead align=center>Rate</td>".
          "<td class=colhead align=right>Down.</td>" .
          "<td class=colhead align=center>Rate</td>" .
          "<td class=colhead align=right>Ratio</td>" .
          "<td class=colhead align=right>Complete</td>" .
          "<td class=colhead align=right>Connected</td>" .
          "<td class=colhead align=center>Idle</td>" .
          "<td class=colhead align=center>Client</td></tr>\n";
        $now = time();
        $moderator = (isset($CURUSER) && get_user_class() >= UC_JRMODERATOR);
        $mod = get_user_class() >= UC_JRMODERATOR;
        foreach ($arr as $e) {

                // user/ip/port
                // check if anyone has this ip
                ($unr = mysql_query("SELECT username, privacy FROM users WHERE id=$e[userid] ORDER BY last_access DESC LIMIT 1")) or die;
                $una = mysql_fetch_array($unr);
                if ($una["privacy"] == "strong") continue;
                $s .= "<tr>\n";
                if (get_user_class() >= UC_JRMODERATOR)
                {
                $s .= "<td><a href=userdetails.php?id=$e[userid]><b>$una[username]</b></a><br>" . ($mod ? $e["ip"] : preg_replace('/\.\d+$/', ".xxx", $e["ip"])) . "</td>\n";
                }
                else
                {
                $s .= "<td><i>Anonymous</i></td>\n";
                }
                //if ($una["username"])
                  //$s .= "<td><a href=userdetails.php?id=$e[userid]><b>$una[username]</b></a></td>\n";
                //else
                  //$s .= "<td>" . ($mod ? $e["ip"] : preg_replace('/\.\d+$/', ".xxx", $e["ip"])) . "</td>\n";
                $secs = max(1, ($now - $e["st"]) - ($now - $e["la"]));
                $revived = $e["revived"] == "yes";
        $s .= "<td align=center>" . ($e[connectable] == "yes" ? "<font color=green>Yes</font>" : "<font color=red>No</font>") . "</td>\n";
                $s .= "<td align=right>" . mksize($e["uploaded"]) . "</td>\n";
                $s .= "<td align=right><nobr>" . mksize(($e["uploaded"] - $e["uploadoffset"]) / $secs) . "/s</nobr></td>\n";
                $s .= "<td align=right>" . mksize($e["downloaded"]) . "</td>\n";
                if ($e["seeder"] == "no")
                        $s .= "<td align=right><nobr>" . mksize(($e["downloaded"] - $e["downloadoffset"]) / $secs) . "/s</nobr></td>\n";
                else
                        $s .= "<td align=right><nobr>" . mksize(($e["downloaded"] - $e["downloadoffset"]) / max(1, $e["finishedat"] - $e[st])) .        "/s</nobr></td>\n";
                if ($e["downloaded"])
                                {
                  $ratio = floor(($e["uploaded"] / $e["downloaded"]) * 1000) / 1000;
                    $s .= "<td align=\"right\"><font color=" . get_ratio_color($ratio) . ">" . number_format($ratio, 3) . "</font></td>\n";
                                }
                       else
                  if ($e["uploaded"])
                    $s .= "<td align=right>Inf.</td>\n";
                  else
                    $s .= "<td align=right>---</td>\n";
                $s .= "<td align=right>" . sprintf("%.2f%%", 100 * (1 - ($e["to_go"] / $torrent["size"]))) . "</td>\n";
                $s .= "<td align=right>" . mkprettytime($now - $e["st"]) . "</td>\n";
                $s .= "<td align=right>" . mkprettytime($now - $e["la"]) . "</td>\n";
                $s .= "<td align=left>" . htmlspecialchars(getagent($e["agent"], $e["peer_id"])) . "</td>\n";
                $s .= "</tr>\n";
        }
        $s .= "</table>\n";
        return $s;
}
dbconn(false);
loggedinorreturn();
maxsysop();

if (get_user_class() < UC_PEASANT)
        stderr("Error", "Not Found.");

$id = 0 + $_GET["id"];

if (!isset($id) || !$id)
        die();

$res = mysql_query("SELECT torrents.seeders, torrents.banned, torrents.nuked, torrents.subslink, torrents.nukereason, torrents.leechers, torrents.info_hash, torrents.filename, LENGTH(torrents.nfo) AS nfosz, UNIX_TIMESTAMP() - UNIX_TIMESTAMP(torrents.last_action) AS lastseed, torrents.numratings, torrents.name, torrents.description, IF(torrents.numratings < $minvotes, NULL, ROUND(torrents.ratingsum / torrents.numratings, 1)) AS rating, torrents.owner, torrents.save_as, torrents.allow_comments, torrents.descr, torrents.visible, torrents.size, torrents.added, torrents.views, torrents.hits, torrents.times_completed, torrents.id, torrents.free, torrents.double_upload, torrents.half, torrents.type, torrents.numfiles, torrents.poster, torrents.url, categories.name AS cat_name, users.username, groups.image FROM torrents LEFT JOIN categories ON torrents.category = categories.id LEFT JOIN users ON torrents.owner = users.id  LEFT JOIN groups ON users.groups = groups.id WHERE torrents.id = $id")
        or sqlerr();
$row = mysql_fetch_array($res);

$owned = $moderator = 0;
        if (get_user_class() >= UC_JRMODERATOR)
                $owned = $moderator = 1;
        elseif ($CURUSER["id"] == $row["owner"])
                $owned = 1;
//}
if (!$row || ($row["banned"] == "yes" && !$moderator))
        stderr("Error", "No torrent with ID $id.");
else {
  if (get_user_class() >= UC_USER)
        if ($_GET["hit"]) {
                mysql_query("UPDATE torrents SET views = views + 1 WHERE id = $id");
                if ($_GET["tocomm"])
                        header("Location: $BASEURL/details.php?id=$id&page=0#startcomments");
                elseif ($_GET["filelist"])
                        header("Location: $BASEURL/details.php?id=$id&filelist=1#filelist");
                elseif ($_GET["toseeders"])
                        header("Location: $BASEURL/details.php?id=$id&dllist=1#seeders");
                elseif ($_GET["todlers"])
                        header("Location: $BASEURL/details.php?id=$id&dllist=1#leechers");
                else
                        header("Location: $BASEURL/details.php?id=$id");
                exit();
        }
//        if (!isset($_GET["page"])) {
                stdhead("Details for torrent \"" . $row["name"] . "\"");
                //if (get_user_class() < UC_VIP) {
                //print("<h1><center><iframe src=http://www.xtremezone.ro/aframe-details.php width=467 height=93 frameborder=0 scrolling=no></iframe><br><center><font size=1 face=Arial>Va rugam dati un click pe reclama de mai sus de cate ori aveti ocazia!</font></center>&nbsp;&nbsp;</center></h1>\n");
                
                //<iframe src=http://www.itpedia.net/aframe.php width=730 height=98 frameborder=0 scrolling=no></iframe>
                //print("<h1><center><a href=\"http://www.myxz.us/aframe-details.php\" target=\"_blank\"><img src=\"http://img211.imageshack.us/img211/6193/idfetebanner.png\" align=\"center\" border=\"0\" width=\"728\" height=\"90\"/></a></center></h1>\n");
                //}
                
                if ($CURUSER["id"] == $row["owner"] || get_user_class() >= UC_JRMODERATOR)
                        $owned = 1;
                else
                        $owned = 0;

                $spacer = "&nbsp;&nbsp;&nbsp;&nbsp;";
                
                if ($_GET["uploaded"]) {
                        print("<h2>Successfully uploaded!</h2>\n");
            print("<p><b>Please wait - Your torrent will download automatically </b> <b>Note: that the torrent won't be visible until you start seeding! </b></p>\n");
                        print("<meta http-equiv=\"refresh\" content=\"1;url=download.php?id=$id\"/>");
                                }
                elseif ($_GET["edited"]) {
                        print("<h2>Successfully edited!</h2>\n");
                        if (isset($_GET["returnto"]))
                                print("<p><b>Go back to <a href=\"" . htmlspecialchars($_GET["returnto"]) . "\">whence you came</a>.</b></p>\n");
                }
                elseif (isset($_GET["searched"])) {
                        print("<h2>Your search for \"" . htmlspecialchars($_GET["searched"]) . "\" gave a single result:</h2>\n");
                }
                elseif ($_GET["rated"]) {
                        print("<h2>Rating added!</h2>\n");
                }
                elseif ($_GET["thanks"])
                        print("<h2>Thanks added!</h2>\n");

$s=format_comment($row["name"]);
$descrs = $row["description"];?>
<table align="center" border="0" cellpadding="1" cellspacing="1" width="600">
<tbody><tr><td class="pollshead"></td></tr>
<tr><td class="pollsmid" align="center"> 
<?
print("<b><font face=Arial size=2>$s</font></b>\n");
?>
<tr><td class="pollsfoot"></td></tr></tbody></table>

           <?
                $url = "edit.php?id=" . $row["id"];
                if (isset($_GET["returnto"])) {
                        $addthis = "&amp;returnto=" . urlencode($_GET["returnto"]);
                        $url .= $addthis;
                        $keepget .= $addthis;
                }
                $editlink = "a href=\"$url\" class=\"sublink\"";            
?>
<table align="center" border="0" cellpadding="1" cellspacing="1" width="600">
<tbody><tr><td class="pollshead"></td></tr>
<tr><td class="pollsmid" align="center"> 
<?
print("<center><a class=\"index\" href=\"download.php?id=$id\"><img src=/pic/download_1.png></a><a href=donate.php><img src=/pic/donate_1.png></a><a href=details.php?id=$id&thanks=1><img src=/pic/thanks_1.png></a><a href=bookmark.php?torrent=" . $id . "&amp;action=add><img src=/pic/bookmark_1.png></a>");
if (get_user_class() >= UC_JRMODERATOR)
                {
print("<a class=\"index\" href=\"edit.php?id=$id" . $uprow . "\"><img src=/pic/edit_1.png></a></center>");
}
?>
<tr><td class="pollsfoot"></td></tr></tbody></table><br>
<?     

//print('<iframe src="//www.facebook.com/plugins/like.php?href=http://www.myxz.org/details.php?id='.$_GET["id"].'&amp;send=false&amp;layout=standard&amp;width=450&amp;show_faces=true&amp;font&amp;colorscheme=dark&amp;action=recommend&amp;height=80&amp;appId=209200989093020" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>');

?>

<!---<div class="fb-like" data-href="http://www.myxz.org/details.php" data-send="false" data-layout="button_count" data-width="450" data-show-faces="false"></div>
--><?

$subrow=mysql_query("SELECT * FROM subtitles WHERE tid = $id") or die(mysql_error());

$cnt=mysql_num_rows($subrow);
if ($cnt > 3) {
 
$subrow=mysql_query("SELECT * FROM subtitles WHERE tid = $id LIMIT 3") or die(mysql_error());
$cntx=mysql_num_rows($subrow);
}
 

                print("<table style=\"border: none;\" cellspacing=\"0\" cellpadding=\"0\">\n"); 
                
                if ($row["free"] == "yes")
                echo("<center><b><font size=1 color=red>This torrent is Free, Only upload stats are recorded!</font></b></center>\n");
                if ($row["double_upload"] == "yes")
                echo("<center><b><font size=1 color=green>This torrent upload to count double!</font></b></center>\n");
                if ($row["half"] == "yes")
                echo("<center><b><font size=1 color=blue>This torrent download is counted only 50%!</font></b></center>\n");
                
                print("<tr><td class=headleft></td><td class=headright></td></tr>");
            
                if ($CURUSER['class'] < UC_VIP) {
?>
 

<?
                }

            /*    
                        if ($cnt > 0) {
                print("<tr><td class=middleft align=center>RoSub</td><td class=middright>
                <small>");  
                for ($ss=0; $ss <= $cntx; $ss++) {
                    $subres=mysql_fetch_assoc($subrow);
                    echo "<a href=subs.php?mode=details&id=".$subres['id'].">Download Subtitle from location - ".($ss+1)."</a><br/>";
                    
                }
                if ($cnt > 0) {
                    ?>
                     <a href="subs.php"><span style="color:lightblue;">... Search for more</span></a>
                    <?
                }
                print("</small></td></tr>");
                }
                else {
                    print("<tr><td class=middleft align=center>RoSub</td><td class=middright>
                <small>"); 
                
                echo "There are currently no subtitles for this torrent. <a href=subs.php?mode=upload&tid=".$id."><span style=\"color:lightblue;\">Upload one now.</span></a>";
                print("</small></td></tr>");
                    
                }
*/
             
                if (!empty($row["description"]))
                print("<tr><td class=middleft align=center>Genre</td><td class=middright>$descrs</td></tr>");

                function hex_esc($matches) {
                return sprintf("%02x", ord($matches[0]));
                }
                //if ($owned) {
                //$uprow .= "<$editlink><b>Edit Torrent</b></a>";
                //print("<tr><td class=middleft align=center>Edit</td><td class=middright> $uprow</td></tr>");
                //}
                print("<tr><td class=middleft align=center>Atentie!</td><td class=middright>Ai probleme cu <strong>ratia</strong>? Vrei o <strong>ratie</strong> mai <strong>mare</strong>? <a class=\"altlink\" href=\"xvip.php\" title=\"Cumpara UPLOAD &amp; VIP prin SMS, BITCOIN sau PayPal\"><font color=\"red\">Ajuta si tu tracker-ul cumparand VIP prin SMS, BITCOIN sau PayPal. Click Aici!</font></a></td></tr>");
                if (empty($row["url"]))
{
$text = $row["descr"];
preg_match_all( '/((http|https|ftp):\/\/|www)([a-z0-9\-\._]+)\/?[a-z0-9_\.\-\?\+\/~=&;,]*/si', $text, $match );
for( $i=0; $i<sizeof($match[0]); $i++ )
{
$requestnftest = $match[0][$i];
$testurl="http://uk.imdb.com/title/tt";
$testurl1="http://www.imdb.com/title/tt";
$testurl2="http://imdb.com/title/tt";
$testurl3="http://us.imdb.com/title/tt";
$testurl4="http://us.imdb.com/Title?";
$test1=(substr($testurl, 0, 28));
$test2=(substr($testurl1, 0, 27));
$test3=(substr($testurl2, 0, 24));
$test4=(substr($testurl3, 0, 27));
$test5=(substr($testurl4, 0, 25));
If (substr($requestnftest, 0, 25) == $test5)
{$requestnftest= str_replace("http://us.imdb.com/Title?", 'http://us.imdb.com/title/tt', $requestnftest);}
if(substr($requestnftest, 0, 28) == $test1 or substr($requestnftest, 0, 27) == $test2 or substr($requestnftest, 0, 24) == $test3 or substr($requestnftest, 0, 27) == $test4)
{
$updateset[] = "url = " . sqlesc($requestnftest);
mysql_query("UPDATE torrents SET " . join(",", $updateset) . " WHERE id = $id");
$row["url"]=$requestnftest;
}}}
                if (!empty($row["url"])){
                require_once "imdb/imdb.class.php";
                require_once "imdb/imdbpage.php";
                }

                if (!empty($row["descr"]))
                $cont = str_replace(array(" ", "  "), array(" ", "&nbsp; "), format_comment(unsafeChar($row["descr"])));
                #No description mod#
                if (empty($cont)) {
                $cont=format_comment("Click the image to open in full size.");
                }
                elseif ($cont == 'Sorry, no description for this torrent.') {
                $cont=format_comment("Click the image to open in full size.");
                }
                #END NO DESCR MOD#
                print("<tr><td class=middleft align=center valign=top>Description</td><td class=middright width=660 align=left>$cont</td></tr>");

                //if (!empty($row["poster"]))
                        //tr("Picture", "<a target=_blank href=\"".htmlspecialchars($row["poster"])."\" title=\"Click me to see Full Size Picture\"><img src=\"".htmlspecialchars($row["poster"])."\" width=310 border=0></a>", 1);
                
                if (get_user_class() >= UC_POWER_USER && $row["nfosz"] > 0)
                print("<tr><td class=middleft align=center>NFO</td><td class=middright><a href=viewnfo.php?id=$row[id]><b>View NFO</b></a> (" .
                mksize($row["nfosz"]) . ")</td></tr>\n");
                if ($row["visible"] == "no")
                print('<tr><td class=middleft align=center>Visible</td><td class=middright><b>no</b> (dead)</td></tr>');
                //if ($moderator)
                        //tr("Banned", $row["banned"]);
                        
                if ($row["nuked"] == "yes")
                print('<tr><td class=middleft align=center>Nuked</td><b><td class=middright>'.$row["nukereason"].'</b></td></tr>');
                elseif ($row["nuked"] == "unnuked")
                print('<tr><td class=middleft align=center>Un-Nuked</td><b><td class=middright>'.$row["nukereason"].'</b></td></tr>');
                else
                if ($row["nuked"] == "no");
                
                if (isset($row["cat_name"]))
                print("<tr><td class=middleft align=center>Type</td><td class=middright>$row[cat_name]</td></tr>\n");
                else
                print("<tr><td class=middleft align=center>Type</td><td class=middright>(none selected)</td></tr>\n");
                
                print("<tr><td class=middleft align=center>Last&nbsp;seeder</td><td class=middright align=left>Last activity " . mkprettytime($row[lastseed])."</td></tr>");
                
                print("<tr><td class=middleft align=center>Size</td><td class=middright align=left>".mksize($row["size"]) . " (" . number_format($row["size"]) . " bytes)</td></tr>");

                $s = "";
                $s .= "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td valign=\"top\" class=embedded>";
                
                print('<tr><td class=middleft align=center>Added</td><td class=middright>'.$row["added"].'</td><tr>');
                print('<tr><td class=middleft align=center>Views</td><td class=middright>'.$row["views"].'</td></tr>');
                print('<tr><td class=middleft align=center>Hits</td><td class=middright> '.$row["hits"].'</td></tr>');
                
                //if (get_user_class() < UC_VIP) {
                print('<tr><td class=middleft align=center>Publicitate</td><td class=middright><a href="http://www.xtremehost.ro" target="_top"><img src=http://imagizer.imageshack.us/a/img21/8540/26ql.png width=470 height=62 frameborder=0 scrolling=no /></a></td></tr>');
                //}
                
                if (get_user_class() >= UC_JRMODERATOR)
                {
                print("<tr><td class=middleft align=center>Snatched</td><td class=middright><a class=altlink href=snatches.php?id=$id><font color=red>$row[times_completed] time(s)</font></a></td></tr>\n");
                } else {
                print('<tr><td class=middleft align=center>Snatched</td><td class=middright>'.$row["times_completed"].' time(s)</td></tr>');
                }
                
                if (get_user_class() >= UC_MODERATOR)
                {
                print("<tr><td class=middleft align=center>Hit&Run</td><td class=middright><a class=altlink href=hit-run.php?id=$id><font color=red>Click pentru a vedea pagina cu cei care fac Hit&Run</font></a></td></tr>\n");
                }

                $data = mysql_query("SELECT (t.size * t.times_completed + SUM(p.downloaded)) AS data FROM torrents AS t LEFT JOIN peers AS p ON t.id = p.torrent WHERE p.seeder = 'no' AND p.torrent = '$id' AND times_completed > 0 GROUP BY t.id ORDER BY added ASC LIMIT 15") or sqlerr(__FILE__, __LINE__);
                $a = mysql_fetch_assoc($data);
                $data = mksize($a["data"]) . "";  
                print("<tr><td class=middleft align=center>Totaltraffic</td><td class=middright align=left>$data</td></tr>\n");

                if ($row["image"]){
                print("<tr><td class=middleft align=center>Team</td><td class=middright><img src=\"pic/groups/".$row["image"]."\"></td></tr>\n");
                }
                $keepget = "";
                $uprow = ("<i>Anonymous</i>");
                //Check if MODERATOR plus, OWNER or if uploader has Advertise Name set to Yes. If not Display Anonymous

                if (get_user_class() >= UC_JRUPLOADER) {
                $uprow = (isset($row["username"]) ? ("<a href=userdetails.php?id=" . $row["owner"] . "><b>" . htmlspecialchars($row["username"]) . "</b></a>") : "<i>Anonymous</i>"); }
                if ($owned) {
                $uprow .= " $spacer<$editlink><b>[Edit this torrent]</b></a>"; }
                   print("<tr><td class=middleft align=center>Upped by</td><td class=middright> $uprow</td></tr>");

                if ($row["type"] == "multi") {
                       
                       if (!$_GET["filelist"])
                               print("<tr><td class=middleft align=center>Num files</td><td class=middright align=left><a href=\"details.php?id=$id&amp;filelist=1$keepget#filelist\" >[ + ]</a>&nbsp; $row[numfiles]&nbsp;". files ."</td></tr>\n");
                       else {
                               print("<tr><td class=middleft align=center>Num files</td><td class=middright align=left>$row[numfiles] ". files ."</td></tr>\n");

                               $s = "<table class=main border=\"1\" cellspacing=0 cellpadding=\"5\">\n";

                               $subres = mysql_query("SELECT * FROM files WHERE torrent = $id ORDER BY id");
                               $s.="<tr><td class=colhead>Path</td><td class=colhead align=right>Size</td></tr>\n";
                               while ($subrow = mysql_fetch_array($subres)) {
                                        $s .= "<tr><td>" . $subrow["filename"] .
                               "</td><td align=\"right\">" . mksize($subrow["size"]) . "</td></tr>\n";
                               }

                               $s .= "</table>\n";
                               print("<tr><td class=middleft align=center><a name=\"filelist\">File list</a></td><td class=middright align=left><a href=\"details.php?id=$id$keepget\" >[ - ]</a>&nbsp; $s</td></tr>\n");
                        }
                }

                if (!$_GET["dllist"]) {
                        /*
                        $subres = mysql_query("SELECT seeder, COUNT(*) FROM peers WHERE torrent = $id GROUP BY seeder");
                        $resarr = array(yes => 0, no => 0);
                        $sum = 0;
                        while ($subrow = mysql_fetch_array($subres)) {
                                $resarr[$subrow[0]] = $subrow[1];
                                $sum += $subrow[1];
                        }
                        tr("Peers<br /><a href=\"details.php?id=$id&amp;dllist=1$keepget#seeders\" class=\"sublink\">[See full list]</a>", $resarr["yes"] . " seeder(s), " . $resarr["no"] . " leecher(s) = $sum peer(s) total", 1);
                        */
                        if (get_user_class() >= UC_USER)
                        {
                        print("<tr><td class=middleft align=center>Peers</td><td class=middright align=left><a href=\"details.php?id=$id&amp;dllist=1$keepget#seeders\" >[ + ]</a>&nbsp; $row[seeders] seeder(s) $row[leechers] leecher(s) = ".($row[seeders] + $row[leechers])." peer(s) total.</td></tr>\n");
                }
                else {
                        print("<tr><td class=middleft align=center>Peers</td><td class=middright align=left>$row[seeders] seeder(s) $row[leechers] leecher(s) = ".($row[seeders] + $row[leechers])." peer(s) total</td></tr>\n");
                        }
                }
                else {
                        if (get_user_class() >= UC_USER)
                        {
                        $downloaders = array();
                        $seeders = array();
                        $subres = mysql_query("SELECT seeder, finishedat, downloadoffset, uploadoffset, ip, port, uploaded, downloaded, to_go, UNIX_TIMESTAMP(started) AS st, connectable, agent, peer_id, UNIX_TIMESTAMP(last_action) AS la, userid FROM peers WHERE torrent = $id") or sqlerr();
                        while ($subrow = mysql_fetch_array($subres)) {
                                if ($subrow["seeder"] == "yes")
                                        $seeders[] = $subrow;
                                else
                                        $downloaders[] = $subrow;
                        }

                        function leech_sort($a,$b) {
                                if ( isset( $_GET["usort"] ) ) return seed_sort($a,$b);
                                $x = $a["to_go"];
                                $y = $b["to_go"];
                                if ($x == $y)
                                        return 0;
                                if ($x < $y)
                                        return -1;
                                return 1;
                        }
                        function seed_sort($a,$b) {
                                $x = $a["uploaded"];
                                $y = $b["uploaded"];
                                if ($x == $y)
                                        return 0;
                                if ($x < $y)
                                        return 1;
                                return -1;
                        }

                        usort($seeders, "seed_sort");
                        usort($downloaders, "leech_sort");

                        print("<tr><td class=middleft align=center><a name=\"seeders\">Seeders</a></td><td class=middright align=left><a href=\"details.php?id=$id$keepget\" >[ - ]</a>&nbsp;".dltable("Seeder(s)", $seeders, $row)."</td></tr>");
                        print("<tr><td class=middleft align=center><a name=\"leechers\">Leechers</a></td><td class=middright align=left><a href=\"details.php?id=$id$keepget\" >[ - ]</a>&nbsp;".dltable("Leecher(s)", $downloaders, $row)."</td></tr>");

                } 
                else {
                        tr("Peers", $row["seeders"] . " seeder(s), " . $row["leechers"] . " leecher(s) = " . ($row["seeders"] + $row["leechers"]) . " peer(s) total", 1);
                }
                }

                //.torrent file info link
                //if (get_user_class() >= UC_MODERATOR)
                //{
               // tr("Torrent Info", "<a href=\"torrent_info.php?id=$id\">Torrent Info</a>", 1);
               // }

print("<tr><td class=middleft align=center>Report<br />Torrent</td><td class=middright align=left>Click <a class=altlink href=ticketnew.php><b><font color=#ff0532>here</font></b></a> to report this torrent to staff for violation of the rules.</td></tr>");

$torrentid = $_GET["id"];
   $thanks_sql = mysql_query("SELECT * FROM thanks where torrentid=$torrentid");
   $thanks_all = mysql_numrows($thanks_sql);
   if ($thanks_all) {
   while($rows_t = mysql_fetch_array($thanks_sql)) {
   $thanks_userid = $rows_t["userid"];
   $user_sql = mysql_query("SELECT * FROM users where id=$thanks_userid");
   $rows_a = mysql_fetch_array($user_sql);
   $username_t = $rows_a["username"];
   $thanksby =  $thanksby."<a href='userdetails.php?id=$thanks_userid'>$username_t</a>, ";
   }
   $t_userid = $CURUSER["id"];
   $tsql = mysql_query("SELECT COUNT(*) FROM thanks where torrentid=$torrentid and userid=$t_userid");
   $trows = mysql_fetch_array($tsql);
   $t_ab = $trows[0];
   if ($t_ab == "0") {
   $thanksby = $thanksby." <form action=\"thanks.php\" method=\"post\">
<input type=\"submit\" name=\"submit\" value=\"Thanks!\">
<input type=\"hidden\" name=\"torrentid\" value=\"$torrentid\">
</form>";
   }
   else {
   $thanksby = $thanksby." <form action=\"thanks.php\" method=\"post\">
<input type=\"submit\" name=\"submit\" value=\"Thanks!\" disabled>
<input type=\"hidden\" name=\"torrentid\" value=\"$torrentid\">
</form>";
   }
   }
   else {
   $thanksby = "None yet.  
   <form action=\"thanks.php\" method=\"post\">
<input type=\"submit\" name=\"submit\" value=\"Thanks!\">
<input type=\"hidden\" name=\"torrentid\" value=\"$torrentid\">
</form>
   ";
   }
print("<tr><td class=middleft align=center>Thanks by:</td><td class=middright align=left>$thanksby</td></tr>");
print("<tr><td class=footleft></td><td class=footright></td></tr>");// end tabe
print("</table></p>\n");
//        }
//        else {
//                stdhead("Comments for torrent \"" . $row["name"] . "\"");
//                print("<h1>Comments for <a href=details.php?id=$id>" . $row["name"] . "</a></h1>\n");
//              print("<p><a href=\"details.php?id=$id\">Back to full details</a></p>\n");
//        }

?>
<table align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr><td class="pollshead"></td></tr>
<tr><td class="pollsmid" align="center"> 
<?
print ("<table width=80% border=0 cellspacing=0 class=coltable cellpadding=0>
<tr><td align=left>
<center><img src=/pic/sig.PNG><br>
<font size=1 face =Arial color=red><b>Regulament Comentarii</b></font>
<b><font size=1 face =Arial  color=red>- Se accepta numai comentarii civilizate, in limba Romana si Engleza ( restul vor fi sterse ).</b><br>
</font><b><font size=1 face =Arial>- Nu postati comentarii INUTILE! = WARN , ex: ( Primu care comentez :P / Doar simley-uri fara scris ).</b><br>
</font><b><font size=1 face =Arial>- Nu cereti subtitrari in COMMENT-uri, puteti cauta pe google, cine va cere subtitrare primeste WARN.</b><br>
</font><b><font size=1 face =Arial>- Fara link-uri catre alte site-uri ( se accepta doar IMBD ) daca in descriere nu este pus.</b><br>
</font><b><font size=1 face =Arial>- Nu postati CD-KEY-uri, le veti gasi in NFO daca este vorba despre un joc.</b><br>
</font><b><font size=1 face =Arial>- Daca nu va place descrierea torrentului, puteti cauta pe google si eventual puteti posta o descriere mai completa.</b>
</font><br>
<center><img src=/pic/sig.PNG><br>
<font size=1 face =Arial color=red><b>Cine nu respecta aceste reguli risca sa-si piarda dreptul de a mai posta vreodata comentarii.</b></font>
</td></tr></table>");
?>
<tr><td class="pollsfoot"></td></tr></tbody></table>
    
<center><table align="center" border="0" cellpadding="0" cellspacing="0" width="40%">
<? 
print("<p><a name=\"startcomments\"></a></p>\n");
$quickcomment = "<center><table align='center' border='0' cellpadding='0' cellspacing='0'><tbody><tr><td class='quickhead'></td></tr>".
  "<tr><td class='quickmidd' align='center'></center><form name=comment method=\"post\" action=\"comment.php?action=add\">".
  "<textarea name=\"text\" rows=\"6\" cols=\"57\"></textarea>".
  "<input type=\"hidden\" name=\"tid\" value=\"$id\"/><br />".
  "<center><tr><td class='quickfoot'></td></tr></tbody></table></center>".
  "<center><table align='center' border='0' cellpadding='0' cellspacing='0'><tbody><tr><td class='quickhead'></td></tr>".
  "<tr><td class='quickmidd' align='center'></center>".
  "<center><input type=\"submit\" class=\"btn\" value=\"Submit\" /></center>".
  "</form><center><tr><td class='quickfoot'></td></tr></tbody></table></center>"; 
        $subres = mysql_query("SELECT COUNT(*) FROM comments WHERE torrent = $id");
        $subrow = mysql_fetch_array($subres);
        $count = $subrow[0];
         
     if (!$count) {
}
        else {
                list($pagertop, $pagerbottom, $limit) = pager(20, $count, "details.php?id=$id&", array(lastpagedefault => 1));
  $subres = mysql_query("SELECT comments.id, text, user, comments.added, editedby, editedat, avatar, warned, ".
                 "username, title, class, donor, downloaded, uploaded FROM comments LEFT JOIN users ON comments.user = users.id WHERE torrent = " .
                 "$id ORDER BY comments.id $limit") or sqlerr(__FILE__, __LINE__);
             $allrows = array();
                while ($subrow = mysql_fetch_array($subres))
                        $allrows[] = $subrow;

                print($commentbar);
                print($pagertop);

                commenttable($allrows);

                print($pagerbottom);
        }

     if ($row["allow_comments"] == "yes" || get_user_class() >= UC_JRMODERATOR) {
        print($commentbar);
        print($quickcomment);
}
        else {
        print("<br><p align=center><b><font color=red>You are not able to comment on this torrent.</font></b></p>");
        }
     }

if (get_user_class() < UC_VIP) {
?>
<script type="text/javascript" src="js/details.js"></script>
<div id="fadeinboxx" style="filter:progid:DXImageTransform.Microsoft.RandomDissolve(duration=1) ; -moz-opacity:0">
<div align="center" style="margin-bottom: 5px"><img src="pic/addvert/details.png" /></div>
<iframe src=http://utop.ro/adss.php width=300 height=250 frameborder=0 scrolling=no></iframe>
<?
setcookie("DetailsXZY", "no", time()-360);
}
 
stdfoot();

?>
Si se incarca greu pagina ...cand vreau sa vad pagina cu torrentul...in rest merge super !
Si 2 ...da eroarea asta in utorrent cand uploadez


http://blablabla:5500/announce.php?p...b46e45d3789548 No connection could be made because the target machine actively refused it. 10m 2s 0 0 0

Last edited by joeroberts; 14th June 2015 at 22:55.
Reply With Quote
  #4  
Old 14th June 2015, 21:24
DND's Avatar
DND DND is offline
VIP
 
Join Date: Dec 2008
Posts: 1,237
Default
1. this is an english forum.. (ce am vb noi in privat e altceva)
2. you need to open that port from the announce url and/or install XBT configured with that port and opened
3. stop using xtremezone source or any other backdoored ones.
4 Jesus !
__________________
Need HELP!? I can install:

  1. Server/VPS (Debian,CentOS,Ubuntu,Fedora, FreeBSD) Optimization and ... + Modules
  2. Webserver Windows/Linux (Apache/Lighttpd/Nginx/Mysql/PhpMyAdmin/SSL) Optimization and ... + Modules
  3. Seedbox Windows/Linux (uTorrent,rTorrent,libTorrent,ruTorrent) + Modules
  4. Multiple source code engines
  5. Linux Server Administration (security, cryptography/encryption, proxy, load balancer, custom ddos firewall)
Reply With Quote
  #5  
Old 14th June 2015, 21:41
b990rvn's Avatar
b990rvn b990rvn is offline
Senior Member
 
Join Date: Aug 2014
Posts: 15
Default
how i can open it ? and what is the problem with the page that does not load
Reply With Quote
Reply

Tags
page , problem , torrent

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 04:25. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.