X-Git-Url: https://dev.renevier.net/?a=blobdiff_plain;f=application%2Fcontrollers%2FCronController.php;fp=application%2Fcontrollers%2FCronController.php;h=0000000000000000000000000000000000000000;hb=e6d781eb4614d9bb8f87133e16c62a1a5a564e77;hp=e8ab6ec5a9114838246d6cc48741e0bca95f275b;hpb=7c71e5ae2f7a51fe5437334fd3c24f5cb7c226c1;p=syj.git diff --git a/application/controllers/CronController.php b/application/controllers/CronController.php deleted file mode 100644 index e8ab6ec..0000000 --- a/application/controllers/CronController.php +++ /dev/null @@ -1,20 +0,0 @@ -getRequest()->getClientIp(true); - if ($ip !== '127.0.0.1' and $ip !== '::1') { - throw new Syj_Exception_Forbidden(); - } - } - public function indexAction() { - $mapper = new Syj_Model_PendingMapper(); - foreach ($mapper->fetchAll() as $pending) { - $pending->notify(); - } - $this->_helper->SyjApi->setCode(200); - } -}