Linux mail.vriendennsm.nl 6.1.0-51-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.177-1 (2026-07-16) x86_64
Apache/2.4.68 (Debian)
Server IP : 217.154.75.17 & Your IP : 216.73.216.195
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
vnsm /
plugins /
system /
osmylicensesmanager /
Delete
Unzip
Name
Size
Permission
Date
Action
form
[ DIR ]
drwxr-xr-x
2025-02-08 22:29
language
[ DIR ]
drwxr-xr-x
2025-02-08 22:29
library
[ DIR ]
drwxr-xr-x
2025-02-08 22:29
views
[ DIR ]
drwxr-xr-x
2025-02-08 22:29
include.php
1.83
KB
-rwxr-xr-x
2026-06-10 18:30
osmylicensesmanager.php
4.47
KB
-rwxr-xr-x
2026-06-10 18:30
osmylicensesmanager.xml
2.63
KB
-rwxr-xr-x
2026-06-10 18:30
script.installer.php
1.26
KB
-rwxr-xr-x
2026-06-10 18:30
Save
Rename
<?php /** * @package ShackExtensionSupport * @contact www.joomlashack.com, help@joomlashack.com * @copyright 2016-2026 Joomlashack.com. All rights reserved * @license https://www.gnu.org/licenses/gpl.html GNU/GPL * * This file is part of ShackExtensionSupport. * * ShackExtensionSupport is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * ShackExtensionSupport is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with ShackExtensionSupport. If not, see <https://www.gnu.org/licenses/>. */ use Alledia\Framework\Joomla\Extension\AbstractPlugin; use Alledia\Framework\Joomla\Extension\Helper; use Alledia\OSMyLicensesManager\Free\PluginHelper; use Alledia\OSMyLicensesManager\PluginBase; use Joomla\CMS\Application\CMSApplication; use Joomla\CMS\Factory; use Joomla\CMS\Plugin\CMSPlugin; // phpcs:disable PSR1.Files.SideEffects defined('_JEXEC') or die(); if ((include 'include.php') == false) { class_alias(CMSPlugin::class, PluginBase::class); } else { class_alias(AbstractPlugin::class, PluginBase::class); } // phpcs:enable PSR1.Files.SideEffects // phpcs:disable PSR1.Classes.ClassDeclaration.MissingNamespace class PlgSystemOSMyLicensesManager extends PluginBase { /** * @var CMSApplication */ protected $app = null; /** * @inheritdoc */ protected $namespace = 'OSMyLicensesManager'; /** * @var ?bool */ protected ?bool $enabled = null; /** * @return void */ public function onAfterInitialise(): void { $plugin = $this->app->input->getCmd('plugin'); $task = $this->app->input->getCmd('task'); $user = Factory::getUser(); if ( $this->isEnabled() && $this->app->isClient('administrator') && $plugin == 'system_osmylicensesmanager' && $task == 'license.save' && $user->guest == false ) { // The user is saving a license key from the installer screen $this->init(); $licenseKeys = $this->app->input->post->getString('license-keys', ''); $result = (object)[ 'success' => PluginHelper::updateLicenseKeys($licenseKeys), ]; echo json_encode($result); jexit(); } } /** * @return void * @throws Throwable */ public function onAfterRender(): void { $option = $this->app->input->getCmd('option'); $extension = $this->app->input->getCmd('extension'); if ( $this->isEnabled() && $this->app->isClient('administrator') && $option === 'com_categories' && $extension ) { $this->addCustomFooterToCategories($extension); } } /** * @param string $url * * @return void */ public function onInstallerBeforePackageDownload(string &$url): void { $licenseKeys = $this->params->get('license-keys', ''); if ( $this->isEnabled() && $licenseKeys && PluginHelper::getLicenseTypeFromURL($url) !== 'free' ) { $this->init(); $url = PluginHelper::appendLicenseKeyToURL($url, $licenseKeys); } } /** * @param ?string $element * * @return void * @throws Throwable */ protected function addCustomFooterToCategories(?string $element): void { if ($this->isEnabled() && $element) { // Check if the specified extension is from Alledia if ($extension = Helper::getExtensionForElement($element)) { if ($footer = $extension->getFooterMarkup()) { $this->app->setBody( str_replace('</section>', '</section>' . $footer, $this->app->getBody()) ); } } } } /** * @return bool */ protected function isEnabled(): bool { if ($this->enabled === null) { $this->enabled = $this instanceof AbstractPlugin; } return $this->enabled; } }