PATH:
home
/
sparklp6
/
public_html
/
sparklerfilters-org
/
administrator
/
components
/
com_j2store
/
controllers
<?php /** * @package J2Store * @copyright Copyright (c)2014-17 Ramesh Elamathi / J2Store.org * @license GNU GPL v3 or later */ // No direct access to this file defined('_JEXEC') or die; class J2StoreControllerCrons extends F0FController { protected $cacheableTasks = array(); function __construct() { $config['csrfProtection'] = 0; parent::__construct($config); $this->cacheableTasks = array(); } function execute($task) { $this->cron(); } public function cron(){ // Makes sure SiteGround's SuperCache doesn't cache the CRON view $app = JFactory::getApplication(); $app->setHeader('X-Cache-Control', 'False', true); $cron_key = J2Store::config ()->get ( 'queue_key','' ); if (empty($cron_key)) { header('HTTP/1.1 503 Service unavailable due to configuration'); $app->close (503); } $secret = $app->input->get('cron_secret', null, 'raw'); if ($secret != $cron_key) { header('HTTP/1.1 403 Forbidden'); $app->close (403); } $command = $app->input->get('command', null, 'raw'); $command = trim(strtolower($command)); if (empty($command)) { header('HTTP/1.1 501 Not implemented'); $app->close (501); } J2Store::plugin ()->event ( 'ProcessCron',array($command) ); echo "$command OK"; $app->close (); } }
[-] shippings.php
[edit]
[-] cpanels.php
[edit]
[-] coupons.php
[edit]
[-] countries.php
[edit]
[-] productbase.php
[edit]
[-] inventories.php
[edit]
[-] configurations.php
[edit]
[-] orders.php
[edit]
[-] index.html
[edit]
[-] customers.php
[edit]
[-] crons.php
[edit]
[-] apps.php
[edit]
[-] taxprofile.php
[edit]
[-] queues.php
[edit]
[-] emailtemplates.php
[edit]
[-] zones.php
[edit]
[-] reports.php
[edit]
[-] postconfig.php
[edit]
[-] carts.php
[edit]
[-] products.php
[edit]
[-] geozones.php
[edit]
[-] currencies.php
[edit]
[-] filtergroups.php
[edit]
[-] options.php
[edit]
[-] appstores.php
[edit]
[-] customfields.php
[edit]
[-] vouchers.php
[edit]
[-] shippingtroubles.php
[edit]
[+]
..
[-] promotions.php
[edit]
[-] payments.php
[edit]