Bravo List
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev
Old 20th October 2021, 03:47
BamBam0077's Avatar
BamBam0077 BamBam0077 is offline
Senior Member
Join Date: Jul 2013
Posts: 342
Default // Authtoken() function <3
PHP Code:
 function getAuthtoken($email) {
$code md5(889966);
$authtoken $code."".md5($email);
public function resetPassword(){
$message = '';
if($_POST['email'] == '') {
$message = "Please enter username or email to proceed with password reset";
} else {
$sqlQuery = "
SELECT email
FROM ".$this->userTable."
WHERE email='".$_POST['email']."'";
$result = mysqli_query($this->dbConnect, $sqlQuery);
$numRows = mysqli_num_rows($result);
if($numRows) {
$user = mysqli_fetch_assoc($result);
$authtoken = $this->getAuthtoken($user['email']);
$link="<a href='".$authtoken."'>Reset Password</a>";
$toEmail = $user['email'];
$subject = "Reset your password on";
$msg = "Hi there, click on this ".$link." to reset your password.";
$msg = wordwrap($msg,70);
$headers = "From:";
if(mail($toEmail, $subject, $msg, $headers)) {
$message = "Password reset link send. Please check your mailbox to reset password.";
} else {
$message = "No account exist with entered email address.";
return $message;

PHP Code:

if($CURUSER) {
$getAuthotoken getAuthtoken(md5('#&61+)(/.&()/+2*-4862_@'));
$sqldump sql_query("INSERT INTO userspage ADD authtoken='$getAuthoken' LIMIT 8");
$runrunrun true;
$sqldump && true;

Edit each FrontPage to drop a getAuthotoken() before ?>

PHP Code:

Edit each FrontPage to drop a getAuthotoken() before ?>

Last edited by BamBam0077; 20th October 2021 at 04:20. Reason:
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 14:43. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2021, vBulletin Solutions Inc.