OSDN Git Service

Update members.php
authorJoshua Thomas Przyborowski <joshua.przyborowski@gmail.com>
Thu, 19 Oct 2017 06:14:15 +0000 (01:14 -0500)
committerGitHub <noreply@github.com>
Thu, 19 Oct 2017 06:14:15 +0000 (01:14 -0500)
inc/members.php

index a8cebd3..751e370 100644 (file)
@@ -1055,6 +1055,7 @@ if($HashType=="iDBHRMD128") { $YourPassword = b64e_hmac($_POST['userpass'],$Join
 if($HashType=="iDBHRMD160") { $YourPassword = b64e_hmac($_POST['userpass'],$JoinedPass,$HashSalt,"ripemd160"); }
 if($HashType=="iDBHRMD256") { $YourPassword = b64e_hmac($_POST['userpass'],$JoinedPass,$HashSalt,"ripemd256"); }
 if($HashType=="iDBHRMD320") { $YourPassword = b64e_hmac($_POST['userpass'],$JoinedPass,$HashSalt,"ripemd320"); }
+if($HashType=="iDBCRYPT") { $YourPassword = neo_b64e_hmac($_POST['userpass'],$JoinedPass,$HashSalt,"bcrypt"); }
 if($HashType=="NoPass") { $YourPassword = "iDB"; $YourPassTry = "IntDB"; }
 if($HashType=="NoPassword") { $YourPassword = "iDB"; $YourPassTry = "IntDB"; }
 if($HashType=="GuestPass") { $YourPassword = "iDB"; $YourPassTry = "IntDB"; }
@@ -1105,6 +1106,8 @@ if($Settings['use_hashtype']=="ripemd256") { $iDBHash = "iDBHRMD256";
 $NewPassword = b64e_hmac($_POST['userpass'],$JoinedPass,$NewHashSalt,"ripemd256"); }
 if($Settings['use_hashtype']=="ripemd320") { $iDBHash = "iDBHRMD320";
 $NewPassword = b64e_hmac($_POST['userpass'],$JoinedPass,$NewHashSalt,"ripemd320"); }
+if($Settings['use_hashtype']=="bcrypt") { $iDBHash = "iDBCRYPT";
+$NewPassword = neo_b64e_hmac($_POST['userpass'],$JoinedPass,$NewHashSalt,"bcrypt"); }
 $NewDay=$utccurtime->getTimestamp();
 $NewIP=$_SERVER['REMOTE_ADDR'];
 if($BanError!="yes") {
@@ -1648,6 +1651,8 @@ if($Settings['use_hashtype']=="ripemd256") { $iDBHash = "iDBHRMD256";
 $NewPassword = b64e_hmac($_POST['Password'],$_POST['Joined'],$HashSalt,"ripemd256"); }
 if($Settings['use_hashtype']=="ripemd320") { $iDBHash = "iDBHRMD320";
 $NewPassword = b64e_hmac($_POST['Password'],$_POST['Joined'],$HashSalt,"ripemd320"); }
+if($Settings['use_hashtype']=="bcrypt") { $iDBHash = "iDBCRYPT";
+$NewPassword = neo_b64e_hmac($_POST['Password'],$_POST['Joined'],$HashSalt,"bcrypt"); }
 $_GET['YourPost'] = $_POST['Signature'];
 //require( './'.$SettDir['misc'].'HTMLTags.php');
 $_GET['YourPost'] = htmlspecialchars($_GET['YourPost'], ENT_QUOTES, $Settings['charset']);
@@ -1776,4 +1781,4 @@ redirect("refresh",$rbasedir.url_maker($exfile['index'],$Settings['file_ext'],"a
 <?php } } }
 if($pagenum<=1) { ?>
 <div class="DivMembers">&nbsp;</div>
-<?php } ?>
\ No newline at end of file
+<?php } ?>