Modify en/decryption functions to be openssl-based - mcrypt_* functions are now deprecated as of PHP 7.1.0

This commit is contained in:
Nate
2019-02-28 18:22:34 -07:00
parent 36b32599f1
commit d799d42e1f
3 changed files with 11 additions and 6 deletions

View File

@@ -241,7 +241,7 @@
}
echo "<input type='submit' id='btn_login' class='btn' style='width: 100px; margin-top: 15px;' value='".$text['button-login']."'>\n";
if (
function_exists('mcrypt_encrypt') &&
function_exists('openssl_encrypt') &&
$_SESSION['login']['password_reset_key']['text'] != '' &&
$_SESSION['email']['smtp_host']['text'] != ''
) {