From 497a48c64021670a9c7faa6a64bae6983337c489 Mon Sep 17 00:00:00 2001 From: Trevor Slocum Date: Mon, 17 May 2021 22:37:19 -0700 Subject: [PATCH] Require TINYIB_TRIPSEED to be configured --- imgboard.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/imgboard.php b/imgboard.php index 8b0356e..ba65b0c 100644 --- a/imgboard.php +++ b/imgboard.php @@ -78,6 +78,10 @@ if (TINYIB_TIMEZONE != '') { date_default_timezone_set(TINYIB_TIMEZONE); } +if (TINYIB_TRIPSEED == '') { + fancyDie(__('TINYIB_TRIPSEED must be configured.')); +} + $bcrypt_salt = '$2y$12$' . str_pad(str_replace('=', '/', str_replace('+', '.', substr(base64_encode(TINYIB_TRIPSEED), 0, 22))), 22, '/'); $database_modes = array('flatfile', 'mysql', 'mysqli', 'sqlite', 'sqlite3', 'pdo');