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

The parser for bbcodes is coded like dogshit.
Post this as description :P

[center][b]





This is for serph
Like on account-signup.php we have:
   // check if email addy is already in use
         $a = (@mysqli_fetch_row(@SQL_Query_exec("select count(*) from users where email='$mail'")));
         if ($a[0] != 0)
           $message = sprintf(T_("EMAIL_ADDRESS_INUSE_S"), $email);


How to include this into account.php and account-details.php when staff is changing mail?
The problem is badly coded reg_expression.
What controls the description length and how to set min / max characters for torrents?

Edit: Ok, it's not defined by php, can be set via mysql to medium or large-text size.
[USER=1398]@serph[/USER] -> Here's the SQL to make this better and limit the database so it doesn't timeout.

[color=rgb(65, 168, 95)]Tested and working as it supposes to work.[/color]

cleanup.php on top:
function autoinvites($interval, $invites, $maxinvites) {
   $time = gmtime() - ($interval*86400);
   $res = SQL_Query_exec("SELECT id, username, class, invites FROM users WHERE enabled = 'yes' AND warned = 'no' AND UNIX_TIMESTAMP(invitedate) IS NULL OR UNIX_TIMESTAMP(invitedate) <= $time");
   if (mysqli_num_rows($res) > 0) {
       while ($arr = mysqli_fetch_assoc($res)) {
           $maxninvites = $maxinvites[$arr['class']];
           if ($arr['invites'] >= $maxninvites)
               continue;
           if (($maxninvites-$arr['invites']) < $invites)
               $invites = $maxninvites - $arr['invites'];

           SQL_Query_exec("UPDATE users SET invites = invites+$invites, invitedate = NOW() WHERE last_access < NOW() - INTERVAL 2 DAY AND invites < 1 LIMIT 100");
       }
   }
}


Now on bottom:

// START INVITES UPDATE
   // SET INVITE AMOUNTS ACCORDING TO RATIO/GIGS ETC
   // autoinvites(interval to give invites (days), min downloaded GB, max downloaded GB, min ratio, invites to give, max invites allowed (array))
   // $maxinvites[CLASS ID] = max # of invites;
   $maxinvites[1] = 5;   //
   $maxinvites[2] = 5;  //
   $maxinvites[3] = 5;  //
   $maxinvites[4] = 5;  //
   $maxinvites[5] = 20; //
   $maxinvites[6] = 20; //
   $maxinvites[7] = 100; //

 // Give 2 invite every 30 days to users who logged in last 2 days.

   autoinvites(30, 2, $maxinvites);
The bug which should be fixed is it is counting together all trackers and merging their seeders + leechers + completed together. It shouldn't do that.
Isnt it easier just to use cli sceduled cron like **** /var/run/php /location/to/cleanup.php
Whole cleanup should be cronjob based because when site gets extra big, cleanup.php will timeout.
It needs a new sql column where youll update received and not received or just simply add invites only to those who have 0 every month.
[USER=20288]@m-jay[/USER] i saw here on forums for old v2 version someone posted a code to upload torrents into website instead of storing torrents locally.

Any chance to integrate https://itorrents.org/automation.php  like 1337x and other websites?
"serph, post: 66904, member: 1398":

on further tests it seems to give invites everytime the cleanup is run needs further debuging

It doesn't check if invites are already added. added >= only checks when the user has registered date above or equal to the provided date.
It will work, just make sure to include $signupclass = '1'; on account-signup.php. That's the problem which bugged all of this

https://www.torrenttrader.xyz/index.php?threads/important-password-update-ttv3.9804/#post-66895
Edit:  The problem is a shitty coding of account-signup.php

You can't just leave $status = "pending"; it must include $signupclass = '1';

Damn it, waste so much time for such a stupid thing.
"serph, post: 66892, member: 1398":

You should be able to confirm pending users from admincp if all else fails from the confirm pending users option
"m-jay, post: 66890, member: 20288":

email confirm is working for me and isnt causing any issues, had it up and running on live site for a while.
Theres a chance it might be a md5 function i removed these ages ago ill post my files on github at weekend so its easier to compare, ill have a quick test of argon as well  :)

Alright waiting for you codes :)

PS: When confirm mail is enabled if i have [ICODE]$psecret = md5($secret);[/ICODE] then this problem appears:
"There has been a problem with your activation link"
If I remove it to [ICODE]$psecret = $secret[/ICODE] it works with verification but users can't login.

So the problem on register.php and account-recover is 100% secret
[USER=20288]@m-jay[/USER] have you tested email confirm feature? I just tested it and when veryfing account or changing password, it just doesn't log in. Everything is successful and the password gets updated in database, but it doesn't login just refreshes page.

Without email confirmation it works fine.
"spiritblue, post: 66885, member: 401":

in my memory, my no but it would be nice to add a button :)

So what happens when a user doesn't receive an email for X reason? He can't activate account like ever?
Do we have an option for that?
"m-jay, post: 66876, member: 20288":

have you tried changing equal to above 60  (!= 96 to >60) & also making a few passwords to see the new length

Original length is always 96, not working with both argon2i and argon2id
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