This commit is contained in:
2026-04-02 09:57:53 +02:00
parent be3965e2b8
commit a69616e8ce
216 changed files with 1557 additions and 69 deletions

View File

@@ -0,0 +1,22 @@
<?php
/**
* Security Watcher - Cron file check
* Run via cron every 15 minutes:
* *\/15 * * * * php /path/to/prestashop/modules/securitywatcher/cron_check.php
*/
// Bootstrap PrestaShop
$dir = dirname(__FILE__);
$psRoot = realpath($dir . '/../../');
require_once $psRoot . '/config/config.inc.php';
$module = Module::getInstanceByName('securitywatcher');
if ($module && $module->active) {
$changes = $module->cronCheckFiles();
$total = count($changes['new']) + count($changes['modified']) + count($changes['deleted']);
echo date('Y-m-d H:i:s') . " - Check complete. Changes: {$total}\n";
} else {
echo "SecurityWatcher module not active.\n";
}