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

"m-jay, post: 66874, member: 20288":

It's not argon2id that's a hybrid of argon2i & argon2d.I haven't really tested on 7.3 until i finished working on the backend and tested some things its designed for just changing P ASSWORD_BCRYPT to PASSWORD_ARGON2I but this hasnt really been tested in the same depth as the bcrypt.

I think the problem is cookies where it verifies if passowrd is not equal to 96 which I changed. It doesn't let login maybe because bcrypt has fixed 60 characters rule where argon2 doesn't
[USER=20288]@m-jay[/USER] I tried to change to argon2id and it works fine, but it doesn't login. Just refreshes page to login after successful input.

Those are some changes for php 7.3.6 I did to adapt from bcrypt to argon
$argon2id_cost = [
   'memory_cost' => 2048,
   'time_cost' => 4,
   'threads' => 2
];


[ICODE]password_hash($hash, PASSWORD_ARGON2ID, $argon2id_cost)[/ICODE]

[ICODE]VARCHAR(255)[/ICODE]

[ICODE]$password_maxlength = 96;[/ICODE]

    //Check The Cookie and get CURUSER details
   if (strlen($_COOKIE["pass"]) != 96 || !is_numeric($_COOKIE["uid"])) {
       logoutcookie();
       return;
   }


PS: The password looks fine and recognizes if the password is wrong, but doesn't login, while bcrypt works fine.

But how is email then getting decrypted when the user requires password reset?
Detect VPN [TTv3] — 2019-07-06 19:25:10 in v3 Mods Completed
"m-jay, post: 66855, member: 20288":

If you hide blocks on login you may need to move this line to under dbconn(); so blocks don't show on error page

$site_config["LEFTNAV"] = $site_config["MIDDLENAV"] = $site_config["RIGHTNAV"] = false;

If using a cloudflare, make sure to set [ICODE]$_SERVER["HTTP_CF_CONNECTING_IP"] [/ICODE] because [ICODE]$_SERVER["REMOTE_ADDR"][/ICODE] can be spoofed.
"m-jay, post: 66848, member: 20288":

yes its into database just need to finish admincp think ive got most of it




I have changed login method email + password, would encryption disallow login?
So it only encrypts mails inside account details and stuff, not into sql?
"spiritblue, post: 66839, member: 401":

I am in SSL and it works well ;)

i mean for http/https trackers not the site. For example:
[URL unfurl="true"]http://tracker.opentrackr.org:1337/announce[/url]
"MicroMonkey, post: 66837, member: 311":

does this work for everyone? Can I move it to completed or are there issues yet to be found?

It works for me. Can anyone confirm does this scrape http/https as well trackers?
"serph, post: 66830, member: 1398":

somthing like this maybe untested no idea if it would work
autoinvites(30, 0, 0, 0.0,  2, $maxinvites);


I'm curious about this interval what does this do

    $minlimit = $minlimit*1024*1024*1024;
   $maxlimit = $maxlimit*1024*1024*1024;
"serph, post: 66827, member: 1398":

Ok I get you it's just you said only staff to delete and I was like how lol ok good were all good to go [USER=311]@MicroMonkey[/USER]

[USER=1398]@serph[/USER] and [USER=311]@MicroMonkey[/USER] do you maybe know how to tweak backend/cleanup.php file so it gives to every user who is registered more than 1 month 2 invites? Without the need to have upload/download and ratio.

This is the code
// Invite update function (Author: TorrentialStorm)
function autoinvites($interval, $minlimit, $maxlimit, $minratio, $invites, $maxinvites) {
   $time = gmtime() - ($interval*86400);
   $minlimit = $minlimit*1024*1024*1024;
   $maxlimit = $maxlimit*1024*1024*1024;
   $res = SQL_Query_exec("SELECT id, username, class, invites FROM users WHERE enabled = 'yes' AND status = 'confirmed' AND downloaded >= $minlimit AND downloaded < $maxlimit AND uploaded / downloaded >= $minratio AND warned = 'no' AND 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 id=$arr[id]");
           write_log("Gave $invites invites to '$arr[username]' - Class: ".get_user_class_name($arr['class'])."");
       }
   }
}


Along with this


   // 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;   // User
   $maxinvites[2] = 10;  // Power User
   $maxinvites[3] = 20;  // VIP
   $maxinvites[4] = 25;  // Uploader
   $maxinvites[5] = 100; // Moderator
   $maxinvites[6] = 100; // Super Moderator
   $maxinvites[7] = 400; // Administrator

   // Give 1 invite every 21 days to users with > 1GB downloaded AND < 4GB downloaded AND ratio > 0.50
   autoinvites(21, 1, 4, 0.50, 1, $maxinvites);
   autoinvites(14, 1, 4, 0.90, 2, $maxinvites);
   autoinvites(14, 4, 7, 0.95, 2, $maxinvites);

   $maxinvites[1] = 7; // User
   autoinvites(14, 7, 10, 1.00, 3, $maxinvites);

   $maxinvites[1] = 10; // User
   autoinvites(14, 10, 100000, 1.05, 4, $maxinvites);
   //END INVITES
"serph, post: 66825, member: 1398":

So how do you get to the user's invite page to delete them then ?

They can't delete them so they can't abuse delete/recreate option. Once created it will stand there until they give the code to someone to use it. After the code is used it will disappear from there.

Yeah, the plugin is completed.
"serph, post: 66822, member: 1398":

You could remove the class as no one  else can view your invite page it's set with $_GET['id'] so I'm not sure what the admin class is for tbh you can not navigate to my invite page not I yours

Delete option is not meant for normal users. Only staff should be able to delete their invitations and recreate those for testing purpose. That's why I removed delete option for normal users.
"serph, post: 66819, member: 1398":

There's also one more bug that in the original script the user can delete the created invite and get it back then confirm the user ie infinite invites need to put a check to see if the invites in use before it can be deleted

I just tested. For example code "ds434dgcde83f743de4649".

1. Registered account with this code.
2. Tried again to register and got the following message  "Your invitation code ds434dgcde83f743de4649 is invalid."

So it is working well for me.

PS: I removed delete invite code option for users with class lower than moderators.
"serph, post: 66817, member: 1398":

That will not work after further testing if the invite is removed then its bypassing the invite code check in account-signup ie same code multiple sign-up because the invite code gets deleted after sign up theres never any code there to check against so the system will let you sign up with the same code over and over forever seems the original coder knew this lol

But if the code is deleted, it shouldn't be working anymore because it doesn't exist?
"serph, post: 66815, member: 1398":

if you want it like you could remove the invite after signup is complete in account-signup.php or account-confirm

in account-signup.php find
if ($site_config["INVITEONLY"]){ //invite only is on

add under
SQL_Query_exec("DELETE FROM invites WHERE invite = ".sqlesc($invite));


untested so you will need to make sure it works

Seems like this is it.
Exactly that's the issue we need to fix. If the account is auto-confirmed by email or when email confirms is disabled the code should be automatically removed regardless.

There should be a code which removes the used invitation code from inviters profile once the registration is completed.
You have that part in code.

  if ($site_config["CONFIRMEMAIL"]){//req confirm email true/false
               $status = "pending";
       }else{
       if ($site_config["INVITEONLY"]){
       $status = "pending";
       }else{
               $status = "confirmed";
       }
  }


The reason why I think it's wrong is that the current one when inviteonly is enabled will always give status pending if email confirmation is disabled which is wrong.

It should check also if it's inviteonly and confirmemail disabled. which is [ICODE] $site_config["CONFIRMEMAIL"] && $site_config["INVITEONLY"][/ICODE]
"serph, post: 66809, member: 1398":

well thats what i got in my account-signup i must of messed the file up in the archive my apologies have you added the code like i said and dose it work ?

edit:
why should it be like that you're already asking if confirm email is on. you're asking if its on twice and to set status to pending twice or am i not following you sorry :oops:

Can you post whole account-signup.php ?

Edit: The first part is checking if email confirm is enabled for users if invite-only is disabled, the second part is to check if email confirm is enabled when invite-only is enabled.
Not that part, find the pending part in the code it should be above this part.

[USER=1398]@serph[/USER] This is the wrong part from your archive.

It should be like this:
     if ($site_config["CONFIRMEMAIL"]){//req confirm email true/false
       $status = "pending";
   }else{
   if ($site_config["INVITEONLY"] && $site_config["CONFIRMEMAIL"]){
   $status = "pending";
   }else{
       $status = "confirmed";
   }
  }
"serph, post: 66805, member: 1398":

$LANG["INVCODE_ERR"] = "Sorry you do not have any invites to generate a code!";
$LANG["SUCCESS"] = "Sign Up Succsesful Welcome To Our Site";
$LANG["INVITE_DONE"] = "<b>Invite Succsesful Please Note Your Inviter Needs To Confirm Your Account Before You Can Login!<b>";
theres still loads of language to edit in the invite.php like the instructions could be moved to lang.php etc

[USER=1398]@serph[/USER] there is a mistake in account-signup.php

You use if ($site_config["INVITEONLY"] instead of $site_config["INVITEONLY"] && $site_config["CONFIRMEMAIL"] which means the code will always give pending status regardless if user sets confirmation by mail or disable it. Now try to see if the code will disappear when a user is automatically confirmed because email confirmation is turned off.

if ($site_config["INVITEONLY"] && $site_config["CONFIRMEMAIL"]){

   $status = "pending";

   }else{

       $status = "confirmed";

   }

Edit2: More mistakes:

In invite.php it should be  "$CURUSER['class'] >= 7". The one "if ($CURUSER['id'] == $id || get_user_class() == 7)" there is NOT working on TTv3.
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