- auto loading fixes (thanks skydiablo)

This commit is contained in:
terrafrost 2012-06-20 10:36:36 -05:00
parent b6fb381ac2
commit 1e3778dc4f
3 changed files with 11 additions and 5 deletions

View File

@ -72,17 +72,23 @@
/**
* Include Math_BigInteger
*/
require_once('Math/BigInteger.php');
if (!class_exists('Math_BigInteger')) {
require_once('Math/BigInteger.php');
}
/**
* Include Crypt_Random
*/
require_once('Crypt/Random.php');
if (!function_exists('crypt_random')) {
require_once('Crypt/Random.php');
}
/**
* Include Crypt_Hash
*/
require_once('Crypt/Hash.php');
if (!class_exists('Crypt_Hash')) {
require_once('Crypt/Hash.php');
}
/**#@+
* @access public

View File

@ -104,7 +104,7 @@ if (!class_exists('Crypt_RC4')) {
/**
* Include Crypt_Random
*/
if (!class_exists('Crypt_Random')) {
if (!function_exists('crypt_random')) {
require_once('Crypt/Random.php');
}

View File

@ -80,7 +80,7 @@ if (!class_exists('Math_BigInteger')) {
/**
* Include Crypt_Random
*/
if (!class_exists('Crypt_Random')) {
if (!function_exists('crypt_random')) {
require_once('Crypt/Random.php');
}