__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* @package akeebabackup
* @copyright Copyright (c)2006-2024 Nicholas K. Dionysopoulos / Akeeba Ltd
* @license GNU General Public License version 3, or later
*/
namespace Akeeba\Component\AkeebaBackup\Administrator\Model;
defined('_JEXEC') || die;
use Akeeba\UsageStats\Collector\Constants\SoftwareType;
use Akeeba\UsageStats\Collector\StatsCollector;
use Joomla\CMS\Component\ComponentHelper;
use Joomla\CMS\MVC\Model\BaseDatabaseModel;
#[\AllowDynamicProperties]
class UsagestatsModel extends BaseDatabaseModel
{
/**
* Send site information to the remove collection service
*
* @return bool
*/
public function collectStatistics()
{
$params = ComponentHelper::getParams('com_akeebabackup');
// Is data collection turned off?
if (!$params->get('stats_enabled', 1))
{
return false;
}
// Make sure the autoloader for our Composer dependencies is loaded.
if (!class_exists(StatsCollector::class))
{
try
{
require_once JPATH_ADMINISTRATOR . '/components/com_akeebabackup/vendor/autoload.php';
}
catch (\Throwable $e)
{
return false;
}
}
// Usage stats collection class is undefined, we cannot continue
if (!class_exists(StatsCollector::class, false))
{
return false;
}
if (!defined('AKEEBABACKUP_VERSION'))
{
@include_once __DIR__ . '/../../version.php';
}
if (!defined('AKEEBABACKUP_VERSION'))
{
define('AKEEBABACKUP_VERSION', 'dev');
define('AKEEBABACKUP_DATE', date('Y-m-d'));
}
try
{
(new StatsCollector(
SoftwareType::AB_JOOMLA_CORE,
AKEEBABACKUP_VERSION,
defined('AKEEBABACKUP_PRO') ? AKEEBABACKUP_PRO : false
))->conditionalSendStatistics();
}
catch (\Throwable $e)
{
return false;
}
return true;
}
}| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Exceptions | Folder | 0775 |
|
|
| UpgradeHandler | Folder | 0775 |
|
|
| BackupModel.php | File | 20.31 KB | 0664 |
|
| BrowserModel.php | File | 2.92 KB | 0664 |
|
| ConfigurationModel.php | File | 8.27 KB | 0664 |
|
| ConfigurationwizardModel.php | File | 17.13 KB | 0664 |
|
| ControlpanelModel.php | File | 25.16 KB | 0664 |
|
| DatabasefiltersModel.php | File | 7.47 KB | 0664 |
|
| FilefiltersModel.php | File | 11.88 KB | 0664 |
|
| LogModel.php | File | 5.04 KB | 0664 |
|
| ProfileModel.php | File | 3.21 KB | 0664 |
|
| ProfilesModel.php | File | 5.49 KB | 0664 |
|
| PushModel.php | File | 1.11 KB | 0664 |
|
| RemotefilesModel.php | File | 15.51 KB | 0664 |
|
| StatisticModel.php | File | 6.07 KB | 0664 |
|
| StatisticsModel.php | File | 17.49 KB | 0664 |
|
| UpdatesModel.php | File | 17.03 KB | 0664 |
|
| UpgradeModel.php | File | 43.77 KB | 0664 |
|
| UsagestatsModel.php | File | 1.72 KB | 0664 |
|