Warn about missing mbstring and old PHP version.

This commit is contained in:
Michal Čihař
2005-11-28 20:56:52 +00:00
parent 19b4f9ff24
commit e6eab83c2c
2 changed files with 16 additions and 3 deletions

View File

@@ -1402,6 +1402,12 @@ switch ($action) {
break;
case 'feat_extensions':
$d = $cfg;
if (!@extension_loaded('mbstring')) {
PMA_dl('mbstring');
}
if (!@extension_loaded('mbstring')) {
message('warning', 'Could not load <code>mbstring</code> extension, which is required for work with multibyte strings like UTF-8 ones. Please consider installing it.');
}
if (!isset($d['GD2Available'])) {
if (PMA_IS_GD2 == 1) {
message('notice', 'GD 2 or newer found.');
@@ -1625,6 +1631,10 @@ switch ($action) {
case '':
message('notice', 'You want to configure phpMyAdmin using web interface. Please note that this only allows basic setup, please read <a href="../Documentation.html">documentation</a> to see full description of all configuration directives.', 'Welcome');
if (PMA_PHP_INT_VERSION < 40100) {
message('warning', 'Please upgrade to PHP 4.1.0, it is required for phpMyAdmin.');
}
if (empty($_SERVER['HTTPS']) || strtolower($_SERVER['HTTPS']) == 'off') {
if (empty($_SERVER['REQUEST_URI']) || empty($_SERVER['HTTP_HOST'])) {
$redir = '';