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-14 12:34:15
Need more information, just saying page doesnt open.... doesnt help us to help you, try checking your sqlerror logs and see if there is a error
Unknown User
2017-03-14 18:39:00
"BigMax1, post: 93391":
 when I paste this code I got this


no SQL Error




[ATTACH]2445._xfImport[/ATTACH]

[ATTACH]2446._xfImport[/ATTACH]
Screenshot - 15-03-2017 , 12_07_30 AM.jpg
Screenshot - 15-03-2017 , 12_07_30 AM.jpg
Screenshot - 15-03-2017 , 12_07_39 AM.jpg
Screenshot - 15-03-2017 , 12_07_39 AM.jpg
2017-03-15 12:01:49
Have you tried with this?

"UFFENO1, post: 93925":
And all mysql_query should be SQL_Query_exec

Unknown User
2017-03-15 12:15:58
how I do this
2017-03-15 12:39:50
First post updated!
Unknown User
2017-03-15 12:41:16
what update
2017-03-15 12:55:33
I have updated the code, try it out and see if it change anything.
Unknown User
2017-03-15 13:03:18
still same sir HTTP ERROR 500

[url="http://dptorrents.com/torrents-details.php?id=1"]http://dptorrents.com/torrents-details.php?id=1[/url]
2017-03-15 13:07:37
I have updated mega_scrape.php in the zip file to.
Unknown User
2017-03-15 13:13:11
still same sir HTTP ERROR 500

[url="http://dptorrents.com/torrents-details.php?id=1"]http://dptorrents.com/torrents-details.php?id=1[/url]
2017-03-15 13:20:43
if you have root access to your server check your apache error logs, it will tell you in there what is causing the http 500 error
2017-03-15 13:26:05
Try this 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 13:30:49
still same sir HTTP ERROR 500

[url="http://dptorrents.com/torrents-details.php?id=1"]http://dptorrents.com/torrents-details.php?id=1[/url]
2017-03-15 13:36:26
Try that

"Storm, post: 93989":
if you have root access to your server check your apache error logs, it will tell you in there what is causing the http 500 error

Unknown User
2017-03-15 13:45:10
I am using nginx I think

I am using vestacp

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
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