Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   TBDev (http://www.bvlist.com/forumdisplay.php?f=20)
-   -   // Authtoken() function <3 (http://www.bvlist.com/showthread.php?t=12432)

BamBam0077 20th October 2021 03:47

// Authtoken() function <3
 
PHP Code:

 function getAuthtoken($email) {
        
$code md5(889966);
        
$authtoken $code."".md5($email);
        return 
$authtoken;
    } 

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="Reset Password";
$toEmail = $user['email'];
$subject = "Reset your password on examplesite.com";
$msg = "Hi there, click on this ".$link." to reset your password.";
$msg = wordwrap($msg,70);
$headers = "From: info@webdamn.com";
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;
}

Bump:
PHP Code:



if($CURUSER) {
$getAuthotoken getAuthtoken(md5('#&61+)(/.&()/+2*-4862_@'));
INSERT INTO MYSQL QUERY TO OBTAIN AUTHTOKEN HASH SO EXAMPLE:
$sqldump sql_query("INSERT INTO userspage ADD authtoken='$getAuthoken' LIMIT 8");
$runrunrun true;
return 
$sqldump && true;


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

Bump:
PHP Code:


getAuthtoken
(md5('#&61+)(/.&()/+2*-4862_@')); 

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


All times are GMT +2. The time now is 00:00.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.