Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
Scrape UDP Trackers - Mod for v2.08
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2.08 Mods Completed

2017-03-15 13:50:00
"amit, post: 93993":
Parse error[color=rgb(0,0,0)]: syntax error, unexpected end of file in [/color]/home/admin/web/dptorrents.com/public_html/torrents-details.php[color=rgb(0,0,0)] [/color]on line 519


the answer to your question/problem is in the above line you have a problem with your torrents-details.php, post your torrents-details.php here and we can try and help
Unknown User
2017-03-15 13:51:33
#love this community

[ATTACH]2450._xfImport[/ATTACH]
torrents-details.php
Download
2017-03-15 13:59:58
Try this 1

[ATTACH]2451._xfImport[/ATTACH]
torrents-details.php
Download
Unknown User
2017-03-15 14:06:32
it's work but i getting more error 

[url="http://dptorrents.com/torrents-details.php?id=1&scrape=1"]http://dptorrents.com/torrents-details.php?id=1&scrape=1[/url]
2017-03-15 14:09:45
take a screenshot of the error
Unknown User
2017-03-15 14:12:05
please check

[ATTACH]2452._xfImport[/ATTACH]
Screenshot - 15-03-2017 , 07_41_16 PM.jpg
Screenshot - 15-03-2017 , 07_41_16 PM.jpg
2017-03-15 14:22:20
try this, if this 1 doesnt work then i'm not sure on the problem

[ATTACH]2453._xfImport[/ATTACH]
torrents-details.php
Download
Unknown User
2017-03-15 14:26:52
same problem
2017-03-15 14:29:16
i'm not sure then, maybe someone else may know the answer to that problem, i have never come across it before
2017-03-15 16:43:10
Here is another try he he

In torrents-details.php


//===| Scrape External Torrents
   if ($row["external"]=='yes'){
       print ("<td width='160' align='right' valign='top'><table><tr>");
       
if ($scrape =='1'){
    print("<td class='table_col1' width='150' valign='middle'>
    <div style='margin-top:5px; margin-bottom:10px; font:bold 16px Times' align='center'><font color='#FF2000'>".T_("EXTERNAL_TORRENT")."</font></div>");

   //===| UDP Scraper
     $resu = SQL_Query_exec("SELECT id, info_hash FROM torrents WHERE external = 'yes' AND id = $id");
           
while ($rowu = mysql_fetch_array($resu)) {
    $TorrentInfo = ParseTorrent("$site_config[torrent_dir]/$rowu[id].torrent");
    $ann = $TorrentInfo[0];
    $annlist = array();

if ($TorrentInfo[6]) {
                   
foreach ($TorrentInfo[6] as $ann) {
   $annlist[] = $ann[0];
}
} else
   $annlist = array($ann);

   $seeders = $leechers = $downloaded = null;
               
foreach ($annlist as $ann) {
    $tracker = explode("/", $ann);
    $path = array_pop($tracker);
    $oldpath = $path;
    $path = str_replace("announce", "scrape", $path);
    $tracker = implode("/", $tracker)."/".$path;

if ($oldpath == $path) {
continue;
}

if ($openbittorrent_done)
   continue;

if (preg_match("/thepiratebay.org/i", $tracker) || preg_match("/prq.to/", $tracker)) {
   $tracker = "http://tracker.openbittorrent.com/scrape";
   $openbittorrent_done = 1;
}

if(preg_match('%udp://([^:/]*)(?:[0-9]*))?(?:/)?%si', $tracker)) {
    $udp=true;
 try
{
    $timeout = 5;
    $udp= new udptscraper($timeout);
    $stats=$udp->scrape($tracker,$rowu["info_hash"]);
 
foreach ($stats as $idu=>$scrape) {
    $seeders += $scrape['seeders'];
    $leechers += $scrape['leechers'];
    $downloaded    += $scrape['completed'];
}
}
    catch(ScraperException $e) {
    $e->isConnectionError();
}
} else {
   $stats = torrent_scrape_url($tracker, $rowu["info_hash"]);
}

if ($stats['seeds'] != -1) {
    $seeders += $stats['seeds'];
    $leechers += $stats['peers'];
    $downloaded += $stats['downloaded'];

    SQL_Query_exec("UPDATE `announce` SET `online` = 'yes', `seeders` = $stats[seeds], `leechers` = $stats[peers], `times_completed` = $stats[downloaded] WHERE `url` = ".sqlesc($ann)." AND `torrent` = $rowu[id]");
} else {
    SQL_Query_exec("UPDATE `announce` SET `online` = 'no' WHERE `url` = ".sqlesc($ann)." AND `torrent` = $rowu[id]");
}
}

if ($seeders !== null) {
   SQL_Query_exec("UPDATE torrents SET leechers = '".$leechers."', seeders = '".$seeders."', times_completed = '".$downloaded."', last_action = '".get_date_time()."', visible = 'yes' WHERE id = '".$rowu['id']."'");
} else {
   SQL_Query_exec("UPDATE torrents SET last_action = '".get_date_time()."' WHERE id='".$rowu['id']."'");
}
}
   //===| End UDP Scraper
Unknown User
2017-03-15 16:49:49
Warning: preg_match(): Compilation failed: unmatched parentheses at offset 24 in /home/admin/web/dptorrents.com/public_html/torrents-details.php on line 193
2017-03-15 18:45:06
Does it work aside from the error message? turn off php_display_errors in your php.ini file in apache2, or whatever you are using
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
Unknown User
2017-03-15 18:49:54
ok but I still getting All Trackers are Offline! way 
2017-03-15 19:08:05
it will say trackers offline if the trackers are down, there is no way to fix that
Unknown User
2017-03-16 08:35:58
http Trackers is working but UDP Trackers  are not 

trackers are running
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728