Skip to content
This repository has been archived by the owner on Jun 24, 2021. It is now read-only.

Commit

Permalink
php deprecated 사용되는 코드 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
thisgun committed Mar 3, 2020
1 parent f529f69 commit 230e3cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions install/install_db.php
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,7 @@
// 게시판 테이블 생성
$file = file("../".G5_ADMIN_DIR."/sql_write.sql");
$file = get_db_create_replace($file);

$sql = implode($file, "\n");
$sql = implode('\n', $file);

$create_table = $table_prefix.'write_' . $tmp_bo_table[$i];

Expand Down
2 changes: 1 addition & 1 deletion lib/pbkdf2.compat.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function create_hash($password, $force_compat = false)
{
// Generate the salt.

if (function_exists('mcrypt_create_iv')) {
if (function_exists('mcrypt_create_iv') && version_compare( PHP_VERSION, '7.2' , '<' ) ) {
$salt = base64_encode(mcrypt_create_iv(PBKDF2_COMPAT_SALT_BYTES, MCRYPT_DEV_URANDOM));
} elseif (@file_exists('/dev/urandom') && $fp = @fopen('/dev/urandom', 'r')) {
$salt = base64_encode(fread($fp, PBKDF2_COMPAT_SALT_BYTES));
Expand Down

0 comments on commit 230e3cb

Please sign in to comment.