From cd791c6ec2c7a1c596f22592f6390627f028c2e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Mon, 28 Nov 2005 22:00:22 +0000 Subject: [PATCH] Display all warnings in one place. --- ChangeLog | 1 + scripts/setup.php | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6f3be94da..3baaaa2d2 100755 --- a/ChangeLog +++ b/ChangeLog @@ -15,6 +15,7 @@ $Source$ - Add links to documentation. - Document all functions. - Warn about missing mbstring and old PHP version. + - Display all warnings in one place. * libraries/auth/cookie.auth.lib.php: Display PMA_errors on login form. * Documentation.html: Add anchors to configuration directives. * libraries/sqlparser.lib.php: Do not use functions not supported by older diff --git a/scripts/setup.php b/scripts/setup.php index 46c9f95ba..339961c71 100644 --- a/scripts/setup.php +++ b/scripts/setup.php @@ -1029,10 +1029,6 @@ if ($action != 'download') { $config = @fopen('../config/config.inc.php', 'a'); $fail_dir = $fail_dir || ($config === FALSE); @fclose($config); - - if ($fail_dir) { - message('warning', 'Please create web server writable folder config in phpMyAdmin toplevel directory as described in documentation. Otherwise you will be only able to download or display it.', 'Can not write configuration'); - } } /** @@ -1629,10 +1625,14 @@ switch ($action) { break; case '': - message('notice', 'You want to configure phpMyAdmin using web interface. Please note that this only allows basic setup, please read documentation to see full description of all configuration directives.', 'Welcome'); + message('notice', 'You want to configure phpMyAdmin using web interface. Please note that this only allows basic setup, please read documentation 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.'); + message('warning', 'Please upgrade to PHP 4.1.0, it is required for phpMyAdmin.', 'Too old PHP'); + } + + if ($fail_dir) { + message('warning', 'Please create web server writable folder config in phpMyAdmin toplevel directory as described in documentation. Otherwise you will be only able to download or display it.', 'Can not write configuration'); } if (empty($_SERVER['HTTPS']) || strtolower($_SERVER['HTTPS']) == 'off') {