(.*?)<\/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_DEFAULT); } if(!empty($error)){ return false; } // Update the password now $update_query = "UPDATE `users` SET `password` = '".$__settings['admin_pass']."' WHERE `id` = '".$userid."';"; $result = sdb_query($update_query, $__settings['softdbhost'], $__settings['softdbuser'], $__settings['softdbpass'], $__settings['softdb']); } } } ?>