Current Path :
/
home
/
zrcdevco
/
www
/
zrcprod
/
components
/
com_hikashop
/
controllers
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/zrcdevco/www/zrcprod/components/com_hikashop/controllers/cron.php
<?php /** * @package HikaShop for Joomla! * @version 2.6.1 * @author hikashop.com * @copyright (C) 2010-2016 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?><?php class CronController extends hikashopController{ function __construct($config = array(),$skip=false){ parent::__construct($config,$skip); $this->display[]='cron'; if(!$skip){ $this->registerDefaultTask('cron'); } JRequest::setVar('tmpl','component'); } function cron(){ $config =& hikashop_config(); if($config->get('cron') == 'no'){ hikashop_display(JText::_('CRON_DISABLED'),'info'); return false; } $cronHelper = hikashop_get('helper.cron'); $cronHelper->report = true; $launched = $cronHelper->cron(); if($launched){ $cronHelper->report(); } } }