Bring back file inclustion, just remove version check from it

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2016-01-28 17:08:19 +01:00
parent 072ff0b38a
commit b69fa1499f

View File

@ -30,6 +30,19 @@ if (! empty($_REQUEST['target'])) {
*/
require './libraries/plugins/auth/swekey/swekey.auth.lib.php';
/**
* phpseclib
*/
if (! function_exists('openssl_encrypt')
|| ! function_exists('openssl_decrypt')
|| ! function_exists('openssl_random_pseudo_bytes')
) {
include PHPSECLIB_INC_DIR . '/Crypt/Base.php';
include PHPSECLIB_INC_DIR . '/Crypt/Rijndael.php';
include PHPSECLIB_INC_DIR . '/Crypt/AES.php';
include PHPSECLIB_INC_DIR . '/Crypt/Random.php';
}
/**
* Handles the cookie authentication method
*