2 /* This file is part of Syj, Copyright (c) 2010 Arnaud Renevier,
3 and is published under the AGPL license. */
5 class CronController extends Zend_Controller_Action
7 public function init() {
8 $ip = $this->getRequest()->getClientIp(true);
9 if ($ip !== '127.0.0.1' and $ip !== '::1') {
10 throw new Syj_Exception_Forbidden();
13 public function indexAction() {
14 $mapper = new Syj_Model_PendingMapper();
15 foreach ($mapper->fetchAll() as $pending) {
18 $this->_helper->SyjApi->setCode(200);