issue #1827 new check on filesystem compared to what is listed in the database

While not fixing issue #1827 it helps users to detect if they have been
affected by the problem.
This commit is contained in:
plegall
2022-12-16 15:09:54 +01:00
parent 5e4739b470
commit 97b665d8f3
8 changed files with 112 additions and 0 deletions
+25
View File
@@ -29,6 +29,31 @@ check_status(ACCESS_ADMINISTRATOR);
check_input_parameter('page', $_GET, false, '/^[a-zA-Z\d_-]+$/');
check_input_parameter('section', $_GET, false, '/^[a-z]+[a-z_\/-]*(\.php)?$/i');
// +-----------------------------------------------------------------------+
// | Filesystem checks |
// +-----------------------------------------------------------------------+
if ($conf['fs_quick_check_period'] > 0)
{
$perform_fsqc = false;
if (isset($conf['fs_quick_check_last_check']))
{
if (strtotime($conf['fs_quick_check_last_check']) < strtotime($conf['fs_quick_check_period'].' seconds ago'))
{
$perform_fsqc = true;
}
}
else
{
$perform_fsqc = true;
}
if ($perform_fsqc)
{
fs_quick_check();
}
}
// +-----------------------------------------------------------------------+
// | Direct actions |
// +-----------------------------------------------------------------------+