(.*?)<\/update_pass>/is', $resp, $matches)){ $__settings['admin_pass'] = $matches[1]; } if(empty($__settings['admin_pass'])){ $error[] = '{{no_pass_encrypt}}'; return false; } sunlink($__settings['softpath'].'/update_pass.php'); }else{ $__settings['admin_pass'] = __password_hash($__settings['admin_pass'] , PASSWORD_BCRYPT, array('cost' => 14)); } if(!empty($error)){ return false; } // Update the password now $update_query = "UPDATE `".$__settings['dbprefix']."logins` SET `login_secret` = '".$__settings['admin_pass']."' WHERE `login_id` = '".$userid."';"; $result = sdb_query($update_query, $__settings['softdbhost'], $__settings['softdbuser'], $__settings['softdbpass'], $__settings['softdb']); } } } ?>