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 /
jchoptimize /
Delete
Unzip
Name
Size
Permission
Date
Action
fields
[ DIR ]
drwxr-xr-x
2025-02-08 22:29
index.html
29
B
-rwxr-xr-x
2022-08-17 13:56
jchoptimize.php
4.99
KB
-rwxr-xr-x
2022-08-17 13:56
jchoptimize.xml
2.25
KB
-rwxr-xr-x
2022-08-17 13:56
Save
Rename
<?php /** * JCH Optimize - Performs several front-end optimizations for fast downloads * * @package jchoptimize/joomla-platform * @author Samuel Marshall <samuel@jch-optimize.net> * @copyright Copyright (c) 2020 Samuel Marshall / JCH Optimize * @license GNU/GPLv3, or later. See LICENSE file * * If LICENSE file missing, see <http://www.gnu.org/licenses/>. */ defined( '_JEXEC' ) or die( 'Restricted access' ); use JchOptimize\Container; use JchOptimize\Core\SystemUri; use JchOptimize\Model\Cache; use Joomla\CMS\Application\SiteApplication; use Joomla\CMS\Component\ComponentHelper; use Joomla\CMS\Factory; use Joomla\CMS\Plugin\CMSPlugin; use JchOptimize\Core\Helper; use JchOptimize\Core\Optimize; use Joomla\Registry\Registry; use Psr\Log\LoggerInterface; if ( ! defined( 'JCH_PLUGIN_DIR' ) ) { define( 'JCH_PLUGIN_DIR', dirname( __FILE__ ) ); } include_once JPATH_ADMINISTRATOR . '/components/com_jchoptimize/autoload.php'; class plgSystemJchoptimize extends CMSPlugin { /** * If plugin is enabled * * @var bool */ public $enabled = true; /** * Component parameters * * @var Registry */ protected $comParams; /** * Application object * * @var SiteApplication */ protected $app; /** * AbstractContainer object * * @var Container */ private $container; /** * Constructor * * @param $subject * @param $config */ public function __construct( &$subject, $config ) { parent::__construct( $subject, $config ); // Disable if the component is not installed or disabled if ( ! ComponentHelper::isEnabled( 'com_jchoptimize' ) ) { $this->enabled = false; } //Disable if we cannot initialize application try { $this->app = Factory::getApplication(); } catch ( Exception $e ) { $this->enabled = false; } //Disable if we can't get component's container try { $this->container = Container::getInstance(); } catch ( Exception $e ) { $this->enabled = false; } //Disable if not on front end if ( ! $this->app->isClient( 'site' ) ) { $this->enabled = false; } //Disable if jchnooptimize set if ( $this->app->input->get( 'jchnooptimize', '', 'int' ) == 1 ) { $this->enabled = false; } //Disable if site offline and user is guest $user = Factory::getUser(); if ( $this->app->get( 'offline', '0' ) && $user->get( 'guest' ) ) { $this->enabled = false; } //Get and set component's parameters $this->comParams = $this->container->get( 'params' ); if ( ! defined( 'JCH_DEBUG' ) ) { define( 'JCH_DEBUG', ( $this->comParams->get( 'debug', 0 ) && JDEBUG ) ); } if ( $this->comParams->get( 'disable_logged_in_users', '1' ) && ! $user->get( 'guest' ) ) { $this->enabled = false; } } public function onAfterRoute() { //If already disabled return if ( ! $this->enabled ) { return; } //Disable if menu or page excluded $menuexcluded = $this->comParams->get( 'menuexcluded', array() ); $menuexcludedurl = $this->comParams->get( 'menuexcludedurl', array() ); if ( in_array( $this->app->input->get( 'Itemid', '', 'int' ), $menuexcluded ) || Helper::findExcludes( $menuexcludedurl, SystemUri::toString() ) ) { $this->enabled = false; return; } //Disable if page being edited if ( $this->app->input->get( 'layout' ) == 'edit' ) { $this->enabled = false; return; } } /** * * @return boolean * @throws Exception */ public function onAfterRender() { if ( ! $this->enabled ) { return false; } if ( $this->comParams->get( 'debug', 0 ) ) { error_reporting( E_ALL & ~E_NOTICE ); } $html = $this->app->getBody(); //Html invalid if ( ! Helper::validateHtml( $html ) ) { return false; } if ( $this->app->input->get( 'jchbackend' ) == '1' ) { return false; } if ( $this->app->input->get( 'jchbackend' ) == '2' ) { echo $html; while ( @ob_end_flush() ) { ; } exit; } try { $optimize = $this->container->get( Optimize::class ); $optimize->setHtml( $html ); $sOptimizedHtml = $optimize->process(); } catch ( Exception $e ) { $logger = $this->container->get( LoggerInterface::class ); $logger->error( $e->getMessage() ); $sOptimizedHtml = $html; } $this->app->setBody( $sOptimizedHtml ); } public function onJchCacheExpired() { /** @var Cache $cacheModel */ $cacheModel = $this->container->get( Cache::class ); return $cacheModel->cleanCache(); } /** * */ public function onAfterDispatch() { //If already disabled return false if ( ! $this->enabled ) { return false; } //Disable if editor loaded if ( $this->isEditorLoaded() ) { $this->enabled = false; return false; } } /** * Gets the name of the current Editor * * @staticvar string $sEditor * @return string */ protected function isEditorLoaded() { $aEditors = JPluginHelper::getPlugin( 'editors' ); foreach ( $aEditors as $sEditor ) { if ( class_exists( 'plgEditor' . $sEditor->name, false ) ) { return true; } } return false; } }