Try to load mcrypt extension.

This commit is contained in:
Michal Čihař
2005-11-23 12:14:39 +00:00
parent 75943a0ede
commit ccb2e11f67
2 changed files with 2 additions and 2 deletions

View File

@@ -21,8 +21,7 @@ $current_time = time();
// Uses faster mcrypt library if available
// (Note: mcrypt.lib.php needs $cookie_path and $is_https)
// TODO: try to load mcrypt?
if (function_exists('mcrypt_encrypt')) {
if (function_exists('mcrypt_encrypt') || PMA_dl('mcrypt')) {
require_once('./libraries/mcrypt.lib.php');
} else {
require_once('./libraries/blowfish.php');