diff --git a/module/ci/control.php b/module/ci/control.php index 372ed52b0e..7fddd9f1ad 100644 --- a/module/ci/control.php +++ b/module/ci/control.php @@ -23,16 +23,21 @@ class ci extends control } /** - * CI index page. - * + * Build today job. + * * @access public * @return void */ - public function index() + public function buildTodayJob() { - $this->view->position[] = $this->lang->ci->common; + $scheduleJobs = $this->loadModel('integration')->getListByTriggerType('schedule'); - $this->display(); + $week = date('w'); + foreach($scheduleJobs as $job) + { + if(strpos($job->scheduleDay, $week) !== false) $this->integration->exec($job->id); + } + die('success'); } /** diff --git a/module/ci/css/index.css b/module/ci/css/index.css deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/module/ci/view/index.html.php b/module/ci/view/index.html.php deleted file mode 100644 index c322ddf1f2..0000000000 --- a/module/ci/view/index.html.php +++ /dev/null @@ -1,12 +0,0 @@ - - - -