Display all warnings in one place.

This commit is contained in:
Michal Čihař
2005-11-28 22:00:22 +00:00
parent e6eab83c2c
commit cd791c6ec2
2 changed files with 7 additions and 6 deletions

View File

@@ -15,6 +15,7 @@ $Source$
- Add links to documentation. - Add links to documentation.
- Document all functions. - Document all functions.
- Warn about missing mbstring and old PHP version. - 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. * libraries/auth/cookie.auth.lib.php: Display PMA_errors on login form.
* Documentation.html: Add anchors to configuration directives. * Documentation.html: Add anchors to configuration directives.
* libraries/sqlparser.lib.php: Do not use functions not supported by older * libraries/sqlparser.lib.php: Do not use functions not supported by older

View File

@@ -1029,10 +1029,6 @@ if ($action != 'download') {
$config = @fopen('../config/config.inc.php', 'a'); $config = @fopen('../config/config.inc.php', 'a');
$fail_dir = $fail_dir || ($config === FALSE); $fail_dir = $fail_dir || ($config === FALSE);
@fclose($config); @fclose($config);
if ($fail_dir) {
message('warning', 'Please create web server writable folder config in phpMyAdmin toplevel directory as described in <a href="../Documentation.html">documentation</a>. Otherwise you will be only able to download or display it.', 'Can not write configuration');
}
} }
/** /**
@@ -1629,10 +1625,14 @@ switch ($action) {
break; break;
case '': 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'); message('notice', 'You want to configure phpMyAdmin using web interface. Please note that this only allows basic setup, please read <a href="../Documentation.html#config">documentation</a> to see full description of all configuration directives.', 'Welcome');
if (PMA_PHP_INT_VERSION < 40100) { 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 <a href="../Documentation.html#setup_script">documentation</a>. Otherwise you will be only able to download or display it.', 'Can not write configuration');
} }
if (empty($_SERVER['HTTPS']) || strtolower($_SERVER['HTTPS']) == 'off') { if (empty($_SERVER['HTTPS']) || strtolower($_SERVER['HTTPS']) == 'off') {