AnonSec Shell
Server IP : 46.105.57.169  /  Your IP : 216.73.217.8
Web Server : Apache
System : Linux webd003.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User : maitricfuz ( 93378)
PHP Version : 8.4.22
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/maitricfuz/www/saint-martin-lg/plugins/system/nrframework/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/maitricfuz/www/saint-martin-lg/plugins/system/nrframework//script.install.php
<?php
/**
 * @author          Tassos Marinos <info@tassos.gr>
 * @link            https://www.tassos.gr
 * @copyright       Copyright © 2024 Tassos All Rights Reserved
 * @license         GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later
*/

defined('_JEXEC') or die;

require_once __DIR__ . '/script.install.helper.php';

class PlgSystemNRFrameworkInstallerScript extends PlgSystemNRFrameworkInstallerScriptHelper
{
	public $name = 'TASSOS_FRAMEWORK';
	public $alias = 'nrframework';
	public $extension_type = 'plugin';

	public function onBeforeInstall()
	{
		if (!$this->isNewer())
		{
			return false;
		}
	}

	public function onAfterInstall()
	{
		$this->removeObsoleteFiles();
	}

	/**
	 * Delete files that were removed from the package in past releases but are
	 * left behind on the site because Joomla's updater never deletes them.
	 * Idempotent: deleteFiles() skips anything that is already gone.
	 */
	private function removeObsoleteFiles()
	{
		$installed = $this->installedVersion;                   // version before this update
		$plugin    = $this->getMainFolder();                    // .../plugins/system/nrframework
		$media     = JPATH_SITE . '/media/plg_system_nrframework';

		// Inline file upload field retired in the task=include security fix.
		// This cleanup first ships in 6.1.7; skip sites that already ran it.
		if ($installed !== '' && version_compare($installed, '6.1.7', '<'))
		{
			$this->deleteFiles([
				$plugin . '/fields/nrinlinefileupload.php',
				$plugin . '/layouts/inlinefileupload.php',
				$media  . '/js/inlinefileupload.js',
				$media  . '/css/inlinefileupload.css',
			]);
		}
	}
}

Anon7 - 2022
AnonSec Team