mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +02:00
Changes to how file inspector reports on some special files - thanks Lawbringer
This commit is contained in:
@@ -413,20 +413,23 @@ class file_inspector {
|
||||
{
|
||||
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;
|
||||
$admin_dir = $this->root_dir.'/'.$coredir['admin'].'/';
|
||||
$test_list = array(
|
||||
$admin_dir.'core_image.php' => 'uncalc',
|
||||
$admin_dir.'filetypes.php' => 'uncalc',
|
||||
$admin_dir.'filetypes_.php' => 'ignore',
|
||||
$admin_dir.'admin_filetypes.php' => 'nocalc',
|
||||
$this -> root_dir.'/e107_config.php' => 'uncalc',
|
||||
$this -> root_dir.'/e107.htaccess' => 'ignore',
|
||||
$this -> root_dir.'/install.php' => 'ignore'
|
||||
);
|
||||
if (isset($test_list[$filename])) return $test_list[$filename];
|
||||
|
||||
$test_list = array();
|
||||
|
||||
// Files that are unable to be checked
|
||||
$test_list[$admin_dir.'core_image.php'] = 'uncalc';
|
||||
$test_list[$this->root_dir.'/e107_config.php'] = 'uncalc';
|
||||
|
||||
// Files that are likely to be renamed by user
|
||||
$test_list[$admin_dir.'filetypes_.php'] = 'ignore';
|
||||
$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';
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user