bug 1658160, warning about mcrypt

This commit is contained in:
Marc Delisle
2007-02-14 21:09:18 +00:00
parent 2e61ea7d9d
commit 911316238b
3 changed files with 7 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ $HeadURL$
2007-02-14 Marc Delisle <lem9@users.sourceforge.net>
* libraries/common.lib.php: white page after uploading a 700 Kio BLOB
* add a warning on main page if mcrypt can't be loaded (bug 1658160)
2007-02-13 Sebastian Mendel <cybot_tm@users.sourceforge.net>
* libaries/PMA_Sql.class.php: added much more functionality

View File

@@ -22,6 +22,8 @@ if (function_exists('mcrypt_encrypt') || PMA_dl('mcrypt')) {
require_once './libraries/mcrypt.lib.php';
} else {
require_once './libraries/blowfish.php';
// for main.php:
define('PMA_WARN_FOR_MCRYPT',1);
}

View File

@@ -394,6 +394,10 @@ if (defined('PMA_MYSQL_INT_VERSION') && PMA_MYSQL_INT_VERSION < 32332) {
echo '<div class="warning">' . sprintf($strUpgrade, 'MySQL', '3.23.32') . '</div>' . "\n";
}
if (defined('PMA_WARN_FOR_MCRYPT')) {
echo '<div class="warning">' . PMA_sanitize(sprintf($strCantLoad, 'mcrypt')) . '</div>' . "\n";
}
/**
* prints list item for main page
*