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

torrent name — 2022-02-06 05:01:22 in v3 Support
I automatically use type declarations in my stuff, but I forgot there are some still using PHP 5 - simply remove
(string ...) :string
Anyway, what is the error mesage?
Subtitles ? — 2022-02-06 04:56:34 in v3 Support
You can easily embed local subtitle files right into the video itself on the fly with ffmpeg installed on server. However you must CRON a background instance of downloading that torrent to /tmp for that torrent ID, do the ffmpeg process, then you want to recreate 44.torrent and trigger the torrents-upload.php file with a script parameter like say...

/torrents-upload.php?updateExisting&id=44

?updateExisting will simply replace the /uploads/44.torrent file with the new metadata which is your magical video with the local subs. At this point, you can easily brand the video with your domain name or anything else to gain reputation by either merging an initial subtitle file, or just pass an extra flag to ffmpeg implying the desire to plant a string to the video file without having to fopen() - seek, insert custom string at position 0 and fclose().

Its pretty easy, maybe 3 hours.

It would involve much more for my case, as I read/write bencoded metadata from a LONGBLOB field (I dont deal with files anymore, not for year now). All that would require me to do, is simply run a REPLACE statement on the field. Since I use a table relation between `torrents` and `torrents_blob` - it CASCADES both tables so its automatically updates both tables. I wish these SVN releases here adopted the same - half of you wouldn't have the issues your having with AUTO_INCREMENT.
Why on earth are you adding non-integer values as the primary key in your table? Is that even possible?

The code is perfect. Trust me, I would get out of your database before other things begin to go haywire, just a word of advice. This is why experienced never encourage others clearly in need of help to race over and start editing fields/types/Engines.

torrent name — 2022-02-06 04:31:30 in v3 Support
If you support English and no plans for other languages, add this to backend/languages.php

Replace

function T_($s)
{
   GLOBAL $LANG;
   if ($ret = $LANG[$s]) {
       return $ret;
   }
   if ($ret = $LANG["{$s}[0]"]) {
       return $ret;
   }
   return $s;
}


With

function T_(string $s): string
{
   return str_replace('_', ' ', $s);
}
Scrape — 2022-02-06 04:20:59 in v3 Support
Don't trust zero-index. That sounds like a fallback to avoid an integer exception. Its too messy of a thread here to pinpoint what exactly is the cause of no correct keys returning back to the browser/database.
Scrape — 2022-02-06 04:15:13 in v3 Support
Still no fix for this?
Just surprised, its been a few years since looking at this - I dont need to as stats are updated live every 10sec. Someone give me a test file I dont need to piece together myself, and I'll see what the heck is going on. I have the holy grails sandbox for array/key testing - I've performed incredible mods due to this in very short time. I can fix this.

Let me know.

Edit: You dont need Sockets. You need your http GET response and the index keys within. Don't slow down the PHP interpreter unless you absolutely have to. Save your carbon footprint.
10.4.22-MariaDB — 2022-02-06 04:09:34 in v3 Support
Open account-signup.php and around line 153-158 (TTv3)

Replace

//send pm to new user
if ($site_config["WELCOMEPMON"]){
  $dt = sqlesc(get_date_time());
  $msg = sqlesc($site_config["WELCOMEPMMSG"]);
  SQL_Query_exec("INSERT INTO messages (sender, receiver, added, msg, poster) VALUES(0, $id, $dt, $msg, 0)");
}


With

//send pm to new user
if ($site_config["WELCOMEPMON"]){
  $dt = sqlesc(get_date_time());
  $msg = sqlesc($site_config["WELCOMEPMMSG"]);
  $subject = sprintf('Thank you for registering at our tracker! Please remember to keep your ratio at %s or greater :)', $site_config['RATIOA']);
  SQL_Query_exec("INSERT INTO messages (sender, receiver, added, msg, poster, subject) VALUES(0, $id, $dt, $msg, 0, $subject)");
}


Now you can read the config setting for RATIOA from /backend/config.php and handle it accordingly without modifying your database table field.


@Botanicar - then you simply do this in torrents-upload.php around line 92-93 (TTv3):

Replace:

if (!empty($_POST["name"]))
  $name = $_POST["name"];


With this:


$name = (isset($_POST['name']) && !empty($_POST['name'])) ? preg_replace('/[^a-zA-Z0-9_ %\[\]\.\(\)%&-]/s', '', $_POST['name']) : 'Unknown Name';


That will filter special chars and provide a fallback if a name is not used at all. Enjoy
Modify the top of torrents-upload.php to look like this. This will let you know what's going on. They should of implemented a exception class for these purposes future-proofing the script itself. Anyway.. do this:

<?
error_reporting(E_ALL);

I used V5 portions of “data pots”, in conjunction with the original seed bonus mod - heavily modified almost rewritten. It kicks the old mod out the window. Be sure to do extra checks as this code does appear to be older.
Top 10 — 2022-01-07 19:35:15 in v3 Mods Completed
Not sure who corrected my post but this is just a ternary, it’s like if and else wrapped in 1 line. To say that is wrong is not correct, they are request keys and they are valid. How is that wrong with 2 checks and a type declaration? Buddy wake up lol
SceneKat Uploads — 2022-01-06 19:11:50 in v3 Support
1. You created torrent with uTorrent
2. You uploaded .torrent to site
3. Member downloads this .torrent
—-
4. Member’s client can not connect to you (the initial seed)

Or

5. On your seeding client, it will not update the tracker announce and get a response

Which number applies to the issue?
re seed — 2021-10-28 02:17:27 in v3 Mods Requests
You could take off less routine checking overhead by simply defining times_completed == 1 (as you always expect this case).
re seed — 2021-10-28 02:12:13 in v3 Mods Requests
A little simplicity, and type declarations + comparison operators == its best to use this for comparison situations, = just equals its pointed value in any case.

if ($row["external"] !== "no" && intval($row["times_completed"]) > 0) {
printf('<a href="torrents-completed.php?id=%i">%s</a>', intval($id), T_("WHOS_COMPLETED"));
if ($row["seeders"] <= 1) {
printf('[<a href="torrents-reseed.php?id=%i">%s</a>]', intval($id), T_("REQUEST_A_RE_SEED"));
}
}
I’ll figure it out. Just trying to get my login working on Chrome, seems all my info was on Safari  :confound

EDIT: Im logged in now (not limited to my phone)

can someone provide me a sample array of the output of :

print_r($infovariable["files"]);


Otherwise I assume this:

$infovariable["files"] = array(0 => 'file1.jpg', 1 => 'file2.jpg');
You can use a number of ways to count the array occurrences.

You can define a counter by
$c = 0
(Foreach/While)
$count = $c++;
(EndForeach/EndWhile)

$filecount = ($count > 0) ? intval($count) : 0;


—

Or simply read a column alias, like COUNT(*) and call upon its value in the loop. I don’t find count() ever reliable so I think I misunderstand that function.
SPL class DirectoryIterator doesn’t work here, so it’s counting [info][files] occurrences recursively.

There’s a mountain of answers for this on SO.
TT 3.0 and nginx — 2021-10-26 05:37:49 in v3 Support
V3 ran for 6 months for me on NGINX 1.18, away from Apache 2.4 - blazing faster. Use a online converter to convert your Apache .htaccess file to NGINX and just append last; to each rule so they follow.
CloudFlare — 2021-10-26 05:06:32 in M-BiTsy Support
I would add a return to the end to account for a last resort, or empty string is returned.

return $_SERVER['REMOTE_ADDR'];

This is the worst variable to rely on but in this case it fills a potential issue.
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: 7
  • Members: 0
  • Guests online: 7
  • Comments: 3
  • Messages: 1,728