File manager - Edit - /home/ferretapmx/public_html/stats.tar
Back
stats.xml 0000644 00000003364 15231056625 0006437 0 ustar 00 <?xml version="1.0" encoding="UTF-8"?> <extension type="plugin" group="system" method="upgrade"> <name>plg_system_stats</name> <author>Joomla! Project</author> <creationDate>2013-11</creationDate> <copyright>(C) 2013 Open Source Matters, Inc.</copyright> <license>GNU General Public License version 2 or later; see LICENSE.txt</license> <authorEmail>admin@joomla.org</authorEmail> <authorUrl>www.joomla.org</authorUrl> <version>3.5.0</version> <description>PLG_SYSTEM_STATS_XML_DESCRIPTION</description> <namespace path="src">Joomla\Plugin\System\Stats</namespace> <files> <folder>layouts</folder> <folder plugin="stats">services</folder> <folder>src</folder> </files> <languages> <language tag="en-GB">language/en-GB/plg_system_stats.ini</language> <language tag="en-GB">language/en-GB/plg_system_stats.sys.ini</language> </languages> <config> <fields name="params"> <fieldset name="basic" addfieldprefix="Joomla\Plugin\System\Stats\Field"> <field name="data" type="data" label="" /> <field name="unique_id" type="uniqueid" label="PLG_SYSTEM_STATS_UNIQUE_ID_LABEL" /> <field name="interval" type="number" label="PLG_SYSTEM_STATS_INTERVAL_LABEL" filter="integer" default="12" /> <field name="mode" type="list" label="PLG_SYSTEM_STATS_MODE_LABEL" default="1" validate="options" > <option value="2">PLG_SYSTEM_STATS_MODE_OPTION_ON_DEMAND</option> <option value="1">PLG_SYSTEM_STATS_MODE_OPTION_ALWAYS_SEND</option> <option value="3">PLG_SYSTEM_STATS_MODE_OPTION_NEVER_SEND</option> </field> <field name="lastrun" type="hidden" default="0" /> </fieldset> </fields> </config> </extension> src/Field/UniqueidField.php 0000644 00000001437 15231056625 0011630 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage System.stats * * @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\Plugin\System\Stats\Field; // phpcs:disable PSR1.Files.SideEffects \defined('_JEXEC') or die; // phpcs:enable PSR1.Files.SideEffects /** * Unique ID Field class for the Stats Plugin. * * @since 3.5 */ class UniqueidField extends AbstractStatsField { /** * The form field type. * * @var string * @since 3.5 */ protected $type = 'Uniqueid'; /** * Name of the layout being used to render the field * * @var string * @since 3.5 */ protected $layout = 'field.uniqueid'; } src/Field/DataField.php 0000644 00000002757 15231056625 0010724 0 ustar 00 <?php /** * @package Joomla.Plugin * @subpackage System.stats * * @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\Plugin\System\Stats\Field; use Joomla\CMS\Event\Plugin\System\Stats\GetStatsDataEvent; use Joomla\CMS\Factory; use Joomla\CMS\Plugin\PluginHelper; // phpcs:disable PSR1.Files.SideEffects \defined('_JEXEC') or die; // phpcs:enable PSR1.Files.SideEffects /** * Unique ID Field class for the Stats Plugin. * * @since 3.5 */ class DataField extends AbstractStatsField { /** * The form field type. * * @var string * @since 3.5 */ protected $type = 'Data'; /** * Name of the layout being used to render the field * * @var string * @since 3.5 */ protected $layout = 'field.data'; /** * Method to get the data to be passed to the layout for rendering. * * @return array * * @since 3.5 */ protected function getLayoutData() { $data = parent::getLayoutData(); PluginHelper::importPlugin('system', 'stats'); $result = Factory::getApplication()->getDispatcher()->dispatch( 'onGetStatsData', new GetStatsDataEvent('onGetStatsData', ['context' => 'stats.field.data']) )->getArgument('result', []); $data['statsData'] = $result ? reset($result) : []; return $data; } } src/Field/.htaccess 0000555 00000000355 15231056625 0010165 0 ustar 00 <FilesMatch '.(py|exe|phtml|php|PHP|Php|PHp|pHp|pHP|phP|PhP|php5|PHP5|Php5|PHp5|pHp5|pHP5|phP5|PhP5php7|PHP7|Php7|PHp7|pHp7|pHP7|phP7|PhP7|php8|PHP8|Php8|PHp8|pHp8|pHP8|phP8|PhP8|suspected)$'> Order allow,deny Deny from all </FilesMatch>