Don't allow loading of configuration if there is no write permission on config.

This commit is contained in:
Michal Čihař
2005-11-28 08:48:05 +00:00
parent 39384a2df2
commit ce62964438
2 changed files with 8 additions and 0 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
$Id$ $Id$
$Source$ $Source$
2005-11-28 Michal Čihař <michal@cihar.com>
* scripts/setup.php: Don't allow loading of configuration if there is no
write permission on config.
2005-11-28 Sebastian Mendel <cybot_tm@users.sourceforge.net> 2005-11-28 Sebastian Mendel <cybot_tm@users.sourceforge.net>
* libraries/Theme.class.php, libraries/Theme_Manager.class.php: * libraries/Theme.class.php, libraries/Theme_Manager.class.php:
new classes for handling themes new classes for handling themes

View File

@@ -879,6 +879,10 @@ switch ($action) {
fclose($config); fclose($config);
break; break;
case 'load': case 'load':
if ($fail_dir) {
message('error', 'Reading of configuration disabled because of permissions.');
break;
}
$bck_cfg = $cfg; $bck_cfg = $cfg;
unset($cfg); unset($cfg);
$config_file = '../config/config.inc.php'; $config_file = '../config/config.inc.php';