Do not check permissions on Windows, it seems to be broken anyway.

This commit is contained in:
Michal Čihař
2006-01-02 09:32:29 +00:00
parent 802898b8ed
commit b14a75c320
2 changed files with 12 additions and 4 deletions

View File

@@ -424,10 +424,14 @@ class PMA_Config
}
// Check for permissions (on platforms that support it):
$perms = @stat($this->getSource());
if (!($perms === false) && ($perms['mode'] & 2)) {
$this->source_mtime = 0;
die('Wrong permissions on configuration file, should not be world writable!');
$perms = @fileperms($this->getSource());
if (!($perms === false) && ($perms & 2)) {
// This check is normally done after loading configuration
$this->checkWebServerOs();
if ($this->get('PMA_IS_WINDOWS') == 0) {
$this->source_mtime = 0;
die('Wrong permissions on configuration file, should not be world writable!');
}
}
return true;