diff --git a/application/controllers/Cron.php b/application/controllers/Cron.php
index 74cb08693..af0c80d66 100644
--- a/application/controllers/Cron.php
+++ b/application/controllers/Cron.php
@@ -32,6 +32,10 @@ class cron extends CI_Controller {
$data['page_title'] = "Cron Manager";
$data['crons'] = $this->cron_model->get_crons();
+ $mastercron = array();
+ $mastercron = $this->get_mastercron_status();
+ $data['mastercron'] = $mastercron;
+
$this->load->view('interface_assets/header', $data);
$this->load->view('cron/index');
$this->load->view('interface_assets/footer', $footerData);
@@ -105,6 +109,10 @@ class cron extends CI_Controller {
$this->cron_model->set_status($cron->id, $status);
$this->cronexpression = null;
}
+
+ $datetime = new DateTime("now", new DateTimeZone('UTC'));
+ $datetime = $datetime->format('Ymd H:i:s');
+ $this->optionslib->update('mastercron_last_run', $datetime , 'no');
}
public function editDialog() {
@@ -217,4 +225,38 @@ class cron extends CI_Controller {
$htmlret = '
-
- The Cron Manager assists the administrator in managing cron jobs without requiring CLI access.
-
-
- To execute cron jobs based on the data below, remove all old cron jobs and create a new one:
-
-
-
* * * * * curl --silent index.php/cron/run &>/dev/null
+
+
+
+ The Cron Manager assists the administrator in managing cron jobs without requiring CLI access.
+
+
+ To execute cron jobs based on the data below, remove all old cron jobs and create a new one:
+
+
+
* * * * * curl --silent index.php/cron/run &>/dev/null
+
+
+
+
+ Status Master-Cron:
+
+
+
@@ -66,7 +76,9 @@
} ?>