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

Reply button.. i gotta overhaul that too, add youtube images etc all that, tag others (+ send notify) - not my favourite thing to work on
Cleanup - Ignoring column — 2020-08-07 21:44:12 in v3 Support
Nice thanks man! That’s great stuff, I will save that into my cheat file.
I think what happened was I truncated the warnings table, which effectively reset their date stamp , so as I made the change to cleanup.php I saw no effect at all. Well, I realized it’s because my config.php has a 14 day before ban provided they have warnings.

basically I have to wait 2 weeks to see it working. Because I nuked the warning expiry dates ?

I havent modified any date functions except reading tables using time_ago() - now I have the same for jquery so that handles Ajax., time zone dates are bonded into to general TT date functions looks like, I was on php.net docs for a hour about this even thought about replacing functions with a date class php5+ lol
Tracker Timeout — 2020-08-07 01:43:17 in v3 Support
AJAX one is flawless, but a bug is present in the POST script, but it’s best solution I found. Just needs a checkup.
Cleanup - Ignoring column — 2020-08-06 16:28:01 in v3 Support
Fixed. Seems to work without the condition in place. However it worked fine before.. I'll monitor it for a day or two.
Cleanup - Ignoring column — 2020-08-06 14:30:06 in v3 Support
Oh good, its funny because my immediate thought was my php.ini - which had no value. I've made changes and will see what happens. I believe i was fighting with results I'm not supposed to see yet in terms of time.
Now the flood gates are open and I have message for them on homepage with ratio build opportunities etc.

Banning just makes no sense, I mean.. by nature it should provide the user incentive to work on their ratio (like a line of credit in the real world). I can see how this would greatly reduce an active user table. Thanks bud!
Tracker Timeout — 2020-08-06 13:49:01 in v3 Support
Please describe the announce prefix, and we can help further.

A prefix is http / https / udp

Which url prefix are you having problems scraping?
Cleanup - Ignoring column — 2020-08-06 13:44:39 in v3 Support
it is now users.limited (limited). ENUM default 'no'.

Oh man your right, what am I doing. Long hours I think. var_dump is a staple in my work. Big thanks again.

I figured it out in this regard:

The issue (banning, whatever was originally there) is this condition

if (gmtime() - $arr["expiry"] >= 0) { .. }

Now what that tells me is if users timezone is less than their expiry time in users.warnings, then continue to query. I comment this out, and suddenly its working. Do you know if this condition is important? Im sure it is, but can I get past it safely?
Cleanup - Ignoring column — 2020-08-06 12:32:49 in v3 Support
I am trying to update this cleanup to instead of

UPDATE users SET enabled = 'no'

I use

UPDATE users SET limited = 'yes'

And refuses to update column no matter what I throw at it. I put this same query on index.php and it works without a hitch.

This field type is ENUM DEFAULT 'no'


       // Limit warned users
       $res = SQL_Query_exec("SELECT users.id, users.username, UNIX_TIMESTAMP(warnings.expiry) AS expiry FROM users INNER JOIN warnings ON users.id=warnings.userid WHERE type='Poor Ratio' AND active = 'yes' AND account_limited = 'no' AND class = 1 AND enabled='yes' AND warned = 'yes' AND uploaded / downloaded < $minratio AND downloaded >= $downloaded");
       if (mysql_num_rows($res) > 0) {
           $timenow = get_date_time();
           $expires = (86400 * $length);
           while ($arr = mysql_fetch_assoc($res)) {
               if (gmtime() - $arr["expiry"] >= 0) {
               
                   // Send to Shoutbox - Low Ratio user limited
                   $limiteduser = $arr["username"];
                   $event = $arr["username"] . " has been limited (Auto Leech warning).";
                   SQL_Query_exec("INSERT INTO shoutbox (msgid, user, message, date, userid) VALUES (NULL, '$limiteduser', '$event', NOW(), 0)");
                   SQL_Query_exec("UPDATE users SET account_limited = 'yes', warned = 'no' WHERE id='" . $arr["id"] . "'");
                   write_log("User <a href='/user/?id=" . $arr["id"] . "'>" . $arr["username"] . "</a> has been <b>limited</b> (Auto Leech warning).");
               }
           }
       }


I can't figure it out. Maybe someone has an idea of the voodoo going on here, rarely do I have these issues and usually have success on first attempt.
Logs and Shoutbox show nothing reflecting the code block above, nor does the table. As soon as I revert changes, immediately its banning people again (2500+). :mad:
— 2020-08-05 07:45:41 in
BIG thanks!!
"Propaganda, post: 68931, member: 60":

Implemented and working without error.
Did clean up the fonts a bit and it now looks like this on my site >>
                    //////connectable yes or know////////
                   if ($CURUSER["view_torrents"]=="yes") {
                       $activeseed = get_row_count("peers", "WHERE userid = '$CURUSER[id]' AND seeder = 'yes'");
                       $activeleech = get_row_count("peers", "WHERE userid = '$CURUSER[id]' AND seeder = 'no'");
                       $stmt = DB::run("SELECT connectable FROM peers WHERE userid=" . $CURUSER["id"] . " LIMIT 1");
                       $connect = $stmt->fetchColumn();
                       if($connect == 'yes') {
                       $connectable = "<b><font color=\"#00FF00\">YES</font></b>";
                       } elseif($connect == 'no') {
                       $connectable = "<b><font color=\"FFCCFF\">NO</font></b>";
                       } else {
                           $connectable ="<b><font color=\"99CCFF\">Check Settings</font></b>";
                      }
                   }

                   print("&nbsp;(&nbsp;Seeding:&nbsp;<a href=\"javascript:popout(0)\"onclick=\"window.open('" .$site_config["SITEURL"]. "/peers/seeding1?id=" . $CURUSER["id"] . "','Seeding','width=350,height=350,scrollbars=yes')\" title='You are Seeding'><font color='#EB7F27'><b>".$activeseed."</b></font></a>&nbsp;");
                   print("Leeching:&nbsp;<a href=\"javascript:popout(0)\"onclick=\"window.open('" .$site_config["SITEURL"]. "/peers/leeching?id=" . $CURUSER["id"] . "','Seeding','width=350,height=350,scrollbars=yes')\" title='You are Leeching'><font color='#EB7F27'><b>".$activeleech."</b></font></a>&nbsp;");
                   print("Connected:&nbsp;".$connectable."&nbsp;)");
                   //////connectable yes or know end of mod////////


Will look at the correct bootstrap classes to use at later moment.


No need for LIMIT 1 as the WHERE clause is already conditioning retrieval for 1 row. Without WHERE clause, you will pull up ALL rows, thus requiring limited result sets if desired.
Same for single quote, its a INT so it is of value as is (peers.userid).

I think, just my observation.. this needs a middle row check before conditions

if ($stmt->rowCount() > 0) {
...
}
Here I have a final solution for signup abuse. This is as good as it gets, and I've personally been in talks with the CTO / staff over at IPQualityScore, and they back bittorrent 100% in terms of privacy.

I have requested my API data remain in their EU datacenter for security (instead of US), as advised in general regards to what we all do.

So this API will require you to signup, its extremely easy. You get 5000 free API checks per month, then it resets and goes month to month like that (you won't spend a cent).

I have tested NordVPN (70% of my country list) including other features on my VPN.. and I can't get onto account-signup.php for the LIFE of me (thats great news!). So it works perfectly.

Read more into this service. Just know, its Free with those 5000 credits automatically added for every user. I doubt i will even exceed that in a month. It filters Google crawlers too.

First, [url='https://www.ipqualityscore.com/create-account']Create a Account[/url] then in your account copy your API key and insert into ipqualityscore.php

Then open account-signup.php and find

require_once ("backend/functions.php");


Add under

require_once ("backend/ipqualityscore.php");


Find

// Check if username is already in use
       $a            = (@mysql_fetch_row(@SQL_Query_exec("select count(*) from users where username='$wantusername'")));
       if ($a[0] != 0) $message      = sprintf(T_("USERNAME_INUSE_S") , $wantusername);


Add under


// Check if IP is already in use - August 4, 2020
$checkip = getip();
$a            = (@mysql_fetch_row(@SQL_Query_exec("select count(*) from users where ip='$checkip'")));
$ipdenied = "This IP address is already registered.<br><br>We only allow 1 account per device/computer to prevent tracker abuse.";
if ($a[0] != 0) $message      = sprintf($ipdenied, $checkip);
write_log("New user $wantusername with IP <b>$checkip</b> was denied due to IP abuse."); // Log the event


Lastly, create /backend/ipqualityscore.php with

Using Cloudflare? Replace REMOTE_ADDR with HTTP_CF_CONNECTING_IP

<?
$key                        = 'YOUR_API_KEY';
$ip                         = isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : $_SERVER['HTTP_CLIENT_IP'];
$user_agent                 = $_SERVER['HTTP_USER_AGENT'];
$user_language              = $_SERVER['HTTP_ACCEPT_LANGUAGE'];
$strictness                 = 1;
$allow_public_access_points = 'true';
$lighter_penalties          = 'false';
$parameters                 = array(
   'user_agent' => $user_agent,
   'user_language' => $user_language,
   'strictness' => $strictness,
   'allow_public_access_points' => $allow_public_access_points,
   'lighter_penalties' => $lighter_penalties
);
$formatted_parameters       = http_build_query($parameters);
$url                        = sprintf('https://www.ipqualityscore.com/api/json/ip/%s/%s?%s', $key, $ip, $formatted_parameters);
$timeout                    = 5;
$curl                       = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, $timeout);
$json = curl_exec($curl);
curl_close($curl);
$result = json_decode($json, true);
if (isset($result['success']) && $result['success'] === true) {
   if ($result['proxy'] === true && $result['is_crawler'] === false) {
       exit(header("Location: https://WEBSITE.com"));
   }
}
?>


This is just default in the code above


exit(header("Location: https://WEBSITE.com"));


You can do whatever you want in place of that line, a JS alert, a text, redirect, etc etc (they can disable Javascript, use header instead). I just send them back to my homepage with a message to turn it off for registration.

That's it. Test to your hearts desire. No more signup abuse, and remain protected in the EU if desired, just replace https://www.ipqualityscore.com  - with -  https://eu.ipqualityscore.com

Just be creative, for example I added a button that allows a "last chance" account reset upon review of their ratio and activity.

[ATTACH type="full" width="744px" alt="IPDeniedResetRequest.png"]5684[/ATTACH]

[ATTACH type="full" alt="IPInstanceLogged.png"]5686[/ATTACH]
"m-jay, post: 68923, member: 20288":

what do you have for xampp setup .htaccess seems to be playing up for me
is it htdocs/foldername/.htaccess - tried removing https rewrite

ill try live server as well  (y)


In root or ZIP file I have renamed .htaccess to __htaccess to avoid hidden in some file systems.

Shoot. It still had my domain name inside. Try manually, replace WEBSITE with domain .htaccess:


RewriteEngine On

# Force HTTPS - Do you have SSL? If not, hashtag next 3 lines
RewriteCond %{HTTP_HOST} WEBSITE\.com [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://WEBSITE.com/$1 [R,L]

# Custom Error Page
ErrorDocument 404 /notfound.php

# Rewritten URls
RewriteRule ^details/([^/]*)/$ /torrents-details.php?id=$1 [L]
RewriteRule ^signup/$ /account-signup.php [L]
RewriteRule ^signin/$ /account-login.php [L]
RewriteRule ^signout/$ /account-logout.php [L]
RewriteRule ^spotlight/latest/$ /spotlight.php [L]
RewriteRule ^updates/$ /news_updates.php [L]
RewriteRule ^search/ajax/$ /ajax/ajax_autocomplete.php [L]
RewriteRule ^check/ajax/$ /ajax/ajax_checkusername.php [L]
RewriteRule ^results/page\:([^/]*)$ /?page=$1 [L]
RewriteRule ^cat/([^/]*)/$ /torrents.php?cat=$1 [L]
RewriteRule ^download/([^/]*)/([^/]*)$ /download.php?id=$1&name=$2 [L]
RewriteRule ^edit/([^/]*)/$ /torrents-edit.php?id=$1 [L]
RewriteRule ^report/([^/]*)/$ /report.php?torrent=$1 [L]
RewriteRule ^bookmark/([^/]*)/$ /bookmarks.php?torrent=$1 [L]
RewriteRule ^bookmarks/$ /bookmark.php [L]
RewriteRule ^tags/([^/]*)/$ /torrents-search.php?search=$1 [L]
RewriteRule ^signup/([^/]*)/$ /account-signup.php?takesignup=$1 [L]
RewriteRule ^signup/([^/]*)/$ /account-confirm-ok.php?type=$1 [L]
RewriteRule ^signup/([^/]*)/([^/]*)/([^/]*)$ /account-confirm-ok.php?type=$1&username=$2&avatar=$3 [L]
RewriteRule ^community/$ /forums.php [L]
RewriteRule ^user/$ /account-details.php [L]
RewriteRule ^account/$ /account.php [L]
RewriteRule ^report/$ /report.php [L]
RewriteRule ^message/$ /mailbox.php [L]
RewriteRule ^faq/$ /faq.php [L]
RewriteRule ^upload/$ /torrents-upload.php [L]
#RewriteRule ^details/$ /torrents-details.php [L]
RewriteRule ^teams/$ /teams-view.php [L]
RewriteRule ^browse/$ /torrents.php [L]
RewriteRule ^latest/$ /torrents-today.php [L]
RewriteRule ^search/$ /torrents-search.php [L]
RewriteRule ^lounge/$ /lounge.php [L]
RewriteRule ^announce/$ /announce.php [L]
RewriteRule ^members/$ /memberlist.php [L]
RewriteRule ^snatched/$ /snatched.php [L]
RewriteRule ^watch/$ /watchedusers.php [L]


Fixed SQL table:


CREATE TABLE `users_trophies` (
`userid` INT(10) unsigned NOT NULL,
`trophie` TEXT NOT NULL,
`reason` TEXT NOT NULL,
`trophiepic` TEXT NOT NULL,
 PRIMARY KEY (`userid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;


MyISAM or InnoDB. Depending on your server.
Please use PDO module for now, we will support both in config.php switchable. Import SQL, that table gives me error too but I click continue (exporting) because that data is just user IDs for our comments.
— 2020-08-04 03:58:48 in
"m-jay, post: 68916, member: 20288":

Pdo db classes can be extended too
class DB extends \PDO

This way you can use custom functions and the original functions just added this got sick of editing scripts from github  to test lol

In my mvc skeleton I just have two  db functions
Run() for chaining and get_row_count was moved there


Your right, I don't think I caught on due too my late entry to PHP classes. Very effective!
Most welcome! See it live - PM me for link.
BETA1 release ZIP attached.

You will be presented with this screen. Basic single entry data is retained for comments/index/votes for demonstration sake. That all expands as the database grows.

Left menu allows logout (when signed in), the rest need to be worked. Signup, Sign In, Signout + general features working. Torrent-details rewritten and fast.

Pay attention to the "Module Probe" box - That will tell you what is missing for stable operation. Some are optional, most are required.

Features:

- BCRYPT Password hashing + legacy rehashing on-the-fly
- PHP database sessions
- New user class
- Live AJAX data globally
- Live torrent transfers tracking
- Interactive autocomplete search selection with torrent data (expandable)
- Rewritten torrent index from scratch - In house exclusive
- Fully HTML5 responsive UI / Cross-browser / device tested compatible
- Fully worked meta tags for full OS/Browser awareness/features
- SEO-ready - data pulled per page
- Rewritten torrent details page + rewritten comment / UI
- Social profiles - Unavailable
-
Rewritten signup page with user class
-
Post-install PHP Module check
- Live user activity tracking (Admin view only)
- Cloudflare-ready

Removed:

- Smarty Template Engine (Reason - 0.67ms performance reduction on dedicated Quad Xeon)
- Functions: torrenttable(), commenttable(), mysql_*

Compatibility:
PHP 5.6 - PHP 7.4.8 - MySQL 5.7 - 8.0 / MariaDB 10.x

Requires PDO. MySQLi will be added switchable in next release.


Username:   Admin
Password:    Password

[ATTACH type="full" alt="BETA-Preview.png"]5673[/ATTACH]


Other features

[ATTACH type="full" alt="LivePeers.png"]5674[/ATTACH]

[ATTACH type="full" alt="LivePolls.png"]5675[/ATTACH]

[ATTACH type="full" alt="LiveUsers.png"]5676[/ATTACH]

[ATTACH type="full" alt="RedesignedResults.png"]5677[/ATTACH]

[ATTACH type="full" width="745px" alt="ActiveDownloadsFeature.png"]5678[/ATTACH]

'Feature Screenshots' will be removed after 5 days. Full screenshot is inside ZIP as well.
— 2020-08-03 09:44:48 in
Excellent tutorial! ;)

@readers - Best advise for both advanced and new:
All of this behaviour can be determined already by a good PDO class, and while benefiting from proper validation / filtering. Many maintained by 4-5 contributors of a high skill set.

It would be good to run someone down too on efficient looping / keys

$var = $sth->Obj(" Query ")->fetch();
foreach ($var as $var2) {
  $balls = $var2['column'];
}
print_r($var); // or var_dump()
print($balls); // Read column
I like that ratio field, something I forgot
Top 10 — 2020-08-02 13:08:41 in v3 Mods Completed
$type = isset($_GET["type"]) ? 0 + $_GET["type"] : 0;

??

$type = isset($_GET['type']) ? intval($_GET['type']) : 0;
Detect VPN [TTv3] — 2020-08-02 05:45:13 in v3 Mods Completed
The script can be pinged too for set interval to DOM load form, once their VPN if turned off. Or just refresh.

Just automates a bit.
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