File manager - Edit - /home/jardides/www/Jardi-design/j37/plugins/fabrik_cron/php/php.php
Back
<?php /** * A cron task to run PHP code * * @package Joomla * @subpackage Fabrik * @copyright Copyright (C) 2005-2016 Media A-Team, Inc. - All rights reserved. * @license GNU/GPL http://www.gnu.org/copyleft/gpl.html */ // No direct access defined('_JEXEC') or die('Restricted access'); // Require the abstract plugin class require_once COM_FABRIK_FRONTEND . '/models/plugin-cron.php'; /** * A cron task to run PHP code * * @package Joomla * @subpackage Fabrik * @since 3.0 */ class PlgFabrik_Cronphp extends PlgFabrik_Cron { /** * Check if the user can use the active element * * @param string $location To trigger plugin on * @param string $event To trigger plugin on * * @return bool can use or not */ public function canUse($location = null, $event = null) { return true; } /** * Do the plugin action * * @param array &$data array data to process * @param object &$listModel List model * @return int number of records run, you can set this by setting the varaible $processed * in either your included script in php code. */ public function process(&$data, &$listModel) { $params = $this->getParams(); $filter = JFilterInput::getInstance(); $file = $filter->clean($params->get('cronphp_file'), 'CMD'); $code = trim($params->get('cronphp_params', '')); if (!(empty($code))) { eval($code); } $file = JPATH_ROOT . '/plugins/fabrik_cron/php/scripts/' . $file; if (JFile::exists($file)) { require_once $file; } $code = trim($params->get('cronphp_code', '')); if (!(empty($code))) { eval($code); } if (isset($processed)) { return (int) $processed; } return 0; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.03 |
proxy
|
phpinfo
|
Settings