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

Go to Profile

Torrents images — 2017-04-06 16:41:34 in v2.08 Mods Completed
I tried this and for me it works. Do you get any SQL-Error?

I got this error:

Database Error in carroussel.php on line 217: Unknown column 'safe' in 'where clause'. Query was: SELECT id, name, image1 , seeders,leechers, category, size FROM torrents WHERE banned ='no' AND visible='yes' AND safe='yes' AND image1 <> '' ORDER BY added DESC limit 45.


I change this:

$query="SELECT id, name, image1 , seeders, leechers, category, size FROM torrents WHERE  banned ='no' AND visible='yes' AND safe='yes' AND image1 <> '' ORDER BY added DESC limit 45";


to this:


$query="SELECT id, name, image1 , seeders, leechers, category, size FROM torrents WHERE  banned ='no' AND visible='yes' AND image1 <> '' ORDER BY added DESC limit 45";
Have you chmod 777 avatars/ ?
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
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

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
I have updated mega_scrape.php in the zip file to.
I have updated the code, try it out and see if it change anything.
First post updated!
Thanks a lot  1@MicroMonkey[/USER]

Have you tried with this?

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

mod excluded — 2015-05-09 07:55:37 in v2.08 Mods Completed
I mean that it is easier to understand and find if you write what to change and how you change the code.
mod excluded — 2015-05-07 08:27:11 in v2.08 Mods Completed
What do you mean? Is there something wrong or....

Ah now i see lol. You change this:

echo "<center><table align="center%" width="98%" height="200"border="0"><tr>";to this :

echo "<center><table align='center' width='100%' height='200' border='0'><tr>";
I have never used this and i do not know how it's working but neither "prq.to" or  "tracker.openbittorrent.com" are up and running anymore. But it is perhaps no greater significance, what do I know i'm no coder.  :(  I only noticed it in the code.  :rolleyes:

And all mysql_query should be SQL_Query_exec
Chess — 2015-04-28 18:41:01 in v2.08 Mods Completed
Found this chess game on an old hdd. Have no idea where it comes from or who made it, anyway thanks to the author
Can not say that it is too difficult to win, but if you have nothing else to do so.
 
[url="/monthly_2015_04/chess.png.607d513c7d59b99039b853676ca34e5f.png"][img]/monthly_2015_04/chess.thumb.png.dd4b389bc07daf9a752d46329918d2c1.png[/img][/url]
 
Put the chess folder in images and chess.php in your root
 [url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=7239"]chess.zip[/url]
 [url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=7240"]chess.php[/url]
New mailbox.php — 2015-04-27 19:05:59 in v2.08 Mods Completed
np  :)
New mailbox.php — 2015-04-27 18:44:56 in v2.08 Mods Completed
I have no ide what you trying to do  :ph34r:  but you had this problem once before. Check this post [url="http://devscorner.xyz/index.php?/topic/14268-one-staffcp-for-all-the-staff-with-permission-or-not/#comment-89655"]here[/url]
New mailbox.php — 2015-04-26 19:31:21 in v2.08 Mods Completed
It's working when i test it. No error or anything. I don't no what you trying to do here he he.

i tested something maby it helps you.

[url="/monthly_2015_04/tiloupmail.png.d348186994464cee83c929bc8ecf9f40.png"][img]/monthly_2015_04/tiloupmail.thumb.png.96a8cb159603ebc703da0220af9ad8ed.png[/img][/url]

And it looks like this :

[url="/monthly_2015_04/tiloupmail2.png.3721619e5601d36a6939ec53b3f98442.png"][img]/monthly_2015_04/tiloupmail2.thumb.png.eabaaa4c0408c13b852a5ca096d6b16f.png[/img][/url]
@mitch84 You already have it in torrent-details in the download box. If someone have downloaded the torrent there is a link to torrents-completed.php.

This is an This is another "better"  :P version.
Thanks so much @BigMax1  :P  for everything you do, especially for us who do not have such good coding skills.  :rolleyes:
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