"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.
$argon2id_cost = [
'memory_cost' => 2048,
'time_cost' => 4,
'threads' => 2
]; //Check The Cookie and get CURUSER details
if (strlen($_COOKIE["pass"]) != 96 || !is_numeric($_COOKIE["uid"])) {
logoutcookie();
return;
}
"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;
"m-jay, post: 66848, member: 20288":
yes its into database just need to finish admincp think ive got most of it
"spiritblue, post: 66839, member: 401":
I am in SSL and it works well ;)
"MicroMonkey, post: 66837, member: 311":
does this work for everyone? Can I move it to completed or are there issues yet to be found?
"serph, post: 66830, member: 1398":
somthing like this maybe untested no idea if it would work
autoinvites(30, 0, 0, 0.0, 2, $maxinvites);
$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]
// 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'])."");
}
}
}
// 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 ?
"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
"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
"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
"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
if ($site_config["CONFIRMEMAIL"]){//req confirm email true/false
$status = "pending";
}else{
if ($site_config["INVITEONLY"]){
$status = "pending";
}else{
$status = "confirmed";
}
}"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:

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