fix panel headers in css, add cron job monitor to check if cron is running, has run, or not setup

This commit is contained in:
Focuslinkstech
2024-09-11 14:19:13 +01:00
committed by GitHub
parent 13aabeea8e
commit 723e99ebed
4 changed files with 87 additions and 35 deletions

View File

@ -214,6 +214,12 @@ if ($config['router_check']) {
$ui->assign('routeroffs', $routeroffs);
}
$timestampFile = "$UPLOAD_PATH/cron_last_run.txt";
if (file_exists($timestampFile)) {
$lastRunTime = file_get_contents($timestampFile);
$ui->assign('run_date', date('Y-m-d h:i:s A', $lastRunTime));
}
// Assign the monthly sales data to Smarty
$ui->assign('start_date', $start_date);
$ui->assign('current_date', $current_date);