1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 20:57:26 +02:00

Changes to how file inspector reports on some special files - thanks Lawbringer

This commit is contained in:
mcfly
2010-02-23 16:18:14 +00:00
parent e6451aa5ca
commit dcc20bcf9c

View File

@@ -413,20 +413,23 @@ class file_inspector {
{ {
global $coredir; global $coredir;
if ($name == 'e_inspect.php') return 'nocalc'; // Special case for plugin integrity checking if ($name == 'e_inspect.php') { return 'nocalc'; } // Special case for plugin integrity checking
$filename = $dir.'/'.$name; $filename = $dir.'/'.$name;
$admin_dir = $this -> root_dir.'/'.$coredir['admin'].'/'; $admin_dir = $this->root_dir.'/'.$coredir['admin'].'/';
$test_list = array(
$admin_dir.'core_image.php' => 'uncalc', $test_list = array();
$admin_dir.'filetypes.php' => 'uncalc',
$admin_dir.'filetypes_.php' => 'ignore', // Files that are unable to be checked
$admin_dir.'admin_filetypes.php' => 'nocalc', $test_list[$admin_dir.'core_image.php'] = 'uncalc';
$this -> root_dir.'/e107_config.php' => 'uncalc', $test_list[$this->root_dir.'/e107_config.php'] = 'uncalc';
$this -> root_dir.'/e107.htaccess' => 'ignore',
$this -> root_dir.'/install.php' => 'ignore' // Files that are likely to be renamed by user
); $test_list[$admin_dir.'filetypes_.php'] = 'ignore';
if (isset($test_list[$filename])) return $test_list[$filename]; $test_list[$this->root_dir.'/e107.htaccess'] = 'ignore';
$test_list[$this->root_dir.'/e107.robots.txt'] = 'ignore';
if (isset($test_list[$filename])) { return $test_list[$filename]; }
return 'check'; return 'check';
} }