getMessage(); } } } } $to = (string)($_POST['report_email'] ?? setting_get('report_email', '')); $daily = $_SERVER['REQUEST_METHOD'] === 'POST' && ($_POST['action'] ?? '') === 'email' ? isset($_POST['report_daily']) : setting_get('report_daily') === '1'; $hour = max(0, min(23, (int)($_POST['report_hour'] ?? setting_get('report_hour', '7')))); $status = setting_get('report_last_status'); $scheme = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ? 'https' : 'http'; $base = rtrim(str_replace('\\', '/', dirname($_SERVER['SCRIPT_NAME'])), '/'); $cronUrl = $scheme . '://' . ($_SERVER['HTTP_HOST'] ?? 'localhost') . $base . '/cron.php?token=' . cron_token(); page_header('Report & CSV'); ?>
= e($error) ?>
Download the whole inventory as a spreadsheet-friendly CSV — also handy as a backup.