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

Not error. Async defer means that it will prioritize async loading and if not supported then it will be defer. It is a modern way of handling javascript.
"spiritblue, post: 66590, member: 401":

mini error
<script src="https://www.google.com/recaptcha/api.js" [color=rgb(184, 49, 47)]async defer[/color]></script>
;)

<script type="text/javascript" src="https://www.google.com/recaptcha/api.js"></script>
How to include "@OP" text below avatar inside comment section when user posts comment? I tried with if $row['owner'] { echo "@OP"; } in functions.php in comments part but it doesn't work.
Mass Email [TTv3] — 2019-05-13 18:23:25 in v3 Mods Completed
A small info about this.

gmail and those free smtps limits 500 emails per day. Also this feature can leak your server IP in mail headers and that could trace down your hosting provider.

If you are not good with hiding those, it's better to use mass pm option.
[USER=311]@MicroMonkey[/USER] Yeah it works, but can you also make changes for torrents-upload.php?
reqall.php — 2019-05-09 23:45:00 in v3 Support
you don't have a column named req in your SQL.
"ambrosia, post: 66557, member: 20305":

could you help me, I have a problem with the invitation mode, it generates a msyql error

Database Error in account-signup.php on line 196: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' confirmed='no' WHERE invite= '616c176464f3ec232802c82eb29d7617'' at line 1. Query was: UPDATE invites SET inviteid = , confirmed='no' WHERE invite= '616c176464f3ec232802c82eb29d7617'.


It's not compatible with 3.0, it needs a rewrite.
The current compose code is making huge stress to the database if for example there are 100k registered users.

The TO: row must be removed or reworked as an input field, rather than select which gets all users from the database.

   # Don't display yourself, Privacy is determined on acceptpms - (From All or Staff Only).
   $res = SQL_Query_exec("SELECT id, username FROM users WHERE id != $CURUSER[id] AND enabled = 'yes' AND status = 'confirmed' $where ORDER BY username");
   
   if (mysqli_num_rows($res))
   {
       $to = "<select name=\"userid\">\n";
       while ($arr = mysqli_fetch_assoc($res)) $to .= "<option value=\"$arr[id]\">$arr[username]</option>\n";
       $to .= "</select>\n";
   }
— 2019-05-06 10:57:22 in
Great one.

We should have also a cheatsheet for all the functions and their usage.
"MicroMonkey, post: 66547, member: 311":

there is a mysql_ left in that code. Change it to mysqli_

Yeah, I just copied it from m-jay but on my working place, it's already changed. I'm using vscode to search in all files and replace those things.

Now lets see if this can get integrated as torrents are not scraped if enabled in config.php on upload.
The current part of the torrents-upload.php for external scraping:
//EXTERNAL SCRAPE
   if ($external=='yes' && $site_config['UPLOADSCRAPE']){
       $tracker=str_replace("/announce","/scrape",$announce);
       $stats             = torrent_scrape_url($tracker, $infohash);
       $seeders         = (int) strip_tags($stats['seeds']);
       $leechers         = (int) strip_tags($stats['peers']);
       $downloaded     = (int) strip_tags($stats['downloaded']);
       SQL_Query_exec("UPDATE torrents SET leechers='".$leechers."', seeders='".$seeders."',times_completed='".$downloaded."',last_action= '".get_date_time()."',visible='yes' WHERE id='".$id."'");
   }
   //END SCRAPE


Needs adapting to work with currently functional external scraper script:
//===| 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 = mysqli_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:\/\//', $tracker))
                   {
                       $udp=true;
                       try
                       {
                           $timeout = 5;
                           $udp= new udptscraper($timeout);
                           $stats=$udp->scrape($tracker,$rowu["info_hash"]);
                           //print_r($stats); exit();
                           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


If someone can update it, please post it here.
I finally figured it out

In account-details.php remove
if (!is_valid_id($id))
show_error_msg(T_("NO_SHOW_DETAILS"), "Bad ID.",1);


Now at the top of the code add the following:
$id2 = $_GET['name'];

$r2 = @SQL_Query_exec("SELECT * FROM `users` WHERE `username` = '$id2'");
$user2 = mysqli_fetch_array($r2) or  show_error_msg(T_("NO_SHOW_DETAILS"), T_("NO_USER_WITH_ID")." $id2.",1);


Open browser and type: yourdomain.com/account-details.php?name=admin or any username.
"MicroMonkey, post: 66540, member: 311":

since I cant test this mod, I read the code and this needs changed
mega_scrape
while ($row = mysqli_fetch_array($res))

just change mysql_ to mysqli_

It now work a bit more but SQL errors.

Database Error in mega_scrape.php on line 107: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' `leechers` = , `times_completed` = WHERE `url` = 'udp://tracker.leechers-parad' at line 1. Query was: UPDATE `announce` SET `online` = 'yes', `seeders` = , `leechers` = , `times_completed` = WHERE `url` = 'udp://tracker.leechers-paradise.org:6969/announce' AND `torrent` = 8.

EDIT: replaced seeders[seed], etc with just $seeders and it works, but it reloads stats only of the newest torrents now and only 1.
"MicroMonkey, post: 66534, member: 311":

probably $row['username']

PS: With $r = @SQL_Query_exec("SELECT * FROM users WHERE username = '".$user["username"]."' "); it doesn't show the SQL error, but it shows There is no user with ID: admin.
Which comes from this line below SQL $user = mysqli_fetch_array($r) or  show_error_msg(T_("NO_SHOW_DETAILS"), T_("NO_USER_WITH_ID")." $id.",1);
Green = original uploaded torrent (successfully uploaded torrents are named 1, 2, 3, etc .torrent) via rename() function inside torrents-upload.php
Yellow = same torrent when trying to upload (with original name)

Basically, i can just rename an original torrent file and upload it x100 times and it will be uploaded 100 times as duplicate.

Still not working

Database Error in account-details.php on line 13: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1. Query was: SELECT * FROM users WHERE username = .
"MicroMonkey, post: 66535, member: 311":

does mega scrape work on ttv3? I never looked at it before. Can you link me to it?

Mega scrape doesn't work from this post from "[url='https://www.torrenttrader.xyz/index.php?attachments/udpscraper-zip.34/']udpscraper.zip[/url]" archive. It just shows next refresh in 901 seconds and nothing works even if u refresh it.
"MicroMonkey, post: 66532, member: 311":

It always gives bad id output. There must be a call from SQL to show username instead of id. I tried with $r = @SQL_Query_exec("SELECT * FROM users WHERE username = $id");
but doesnt work.
It probably have to do something with this part from functions.php

The code below is checking if the valid id, but we need one for a valid username

function is_valid_id($id){
   return is_numeric($id) && ($id > 0) && (floor($id) == $id);
}

function is_valid_int($id){
   return is_numeric($id) && (floor($id) == $id);
}[/code[
scraping is working fine on tt3.0, but mega scraping is not for some reason for external torrents.
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: 3
  • Members: 0
  • Guests online: 3
  • Comments: 3
  • Messages: 1,728