uawdijnntqw1x1x1
IP : 104.23.243.168
Hostname : vps-ebe98236
Kernel : Linux vps-ebe98236 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
OS : Linux
PATH:
/
var
/
www
/
html
/
Joomla
/
cli
/
..
/
plugins
/
system
/
sourcerer
/
sourcerer.php
/
/
<?php /** * @package Sourcerer * @version 8.4.1 * * @author Peter van Westen <info@regularlabs.com> * @link http://www.regularlabs.com * @copyright Copyright © 2020 Regular Labs All Rights Reserved * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL */ defined('_JEXEC') or die; use Joomla\CMS\Factory as JFactory; use Joomla\CMS\Language\Text as JText; use RegularLabs\Library\Document as RL_Document; use RegularLabs\Library\Html as RL_Html; use RegularLabs\Library\Plugin as RL_Plugin; use RegularLabs\Library\Protect as RL_Protect; use RegularLabs\Plugin\System\Sourcerer\Area; use RegularLabs\Plugin\System\Sourcerer\Clean; use RegularLabs\Plugin\System\Sourcerer\Params; use RegularLabs\Plugin\System\Sourcerer\Protect; use RegularLabs\Plugin\System\Sourcerer\Replace; use RegularLabs\Plugin\System\Sourcerer\Security; // Do not instantiate plugin on install pages // to prevent installation/update breaking because of potential breaking changes $input = JFactory::getApplication()->input; if (in_array($input->get('option'), ['com_installer', 'com_regularlabsmanager']) && $input->get('action') != '') { return; } if ( ! is_file(__DIR__ . '/vendor/autoload.php')) { return; } require_once __DIR__ . '/vendor/autoload.php'; if ( ! is_file(JPATH_LIBRARIES . '/regularlabs/autoload.php')) { JFactory::getLanguage()->load('plg_system_sourcerer', __DIR__); JFactory::getApplication()->enqueueMessage( JText::sprintf('SRC_EXTENSION_CAN_NOT_FUNCTION', JText::_('SOURCERER')) . ' ' . JText::_('SRC_REGULAR_LABS_LIBRARY_NOT_INSTALLED'), 'error' ); return; } require_once JPATH_LIBRARIES . '/regularlabs/autoload.php'; if (true) { class PlgSystemSourcerer extends RL_Plugin { public $_lang_prefix = 'SRC'; public $_can_disable_by_url = false; public $_disable_on_components = true; public $_page_types = ['html', 'feed', 'pdf', 'xml', 'ajax', 'json', 'raw']; protected function handleOnContentPrepare($area, $context, &$article, &$params, $page = 0) { $src_params = Params::get(); $area = isset($article->created_by) ? 'articles' : 'other'; $remove = $src_params->remove_from_search && in_array($context, ['com_search.search', 'com_search.search.article', 'com_finder.indexer']); if (isset($article->description)) { Replace::replace($article->description, $area, $article, $remove); } if (isset($article->title)) { Replace::replace($article->title, $area, $article, $remove); } // Don't handle article texts in category list view if (RL_Document::isCategoryList($context)) { return false; } if (isset($article->text)) { Replace::replace($article->text, $area, $article, $remove); // Don't also do stuff on introtext/fulltext if text is set return false; } if (isset($article->introtext)) { Replace::replace($article->introtext, $area, $article, $remove); } if (isset($article->fulltext)) { Replace::replace($article->fulltext, $area, $article, $remove); } return false; } protected function changeDocumentBuffer(&$buffer) { if ( ! RL_Document::isHtml()) { return false; } return Area::tag($buffer, 'component'); } protected function changeFinalHtmlOutput(&$html) { // only in html, pdfs, ajax/raw and feeds if ( ! in_array(JFactory::getDocument()->getType(), ['html', 'pdf', 'ajax', 'raw']) && ! RL_Document::isFeed()) { return false; } $params = Params::get(); list($pre, $body, $post) = RL_Html::getBody($html); Protect::_($body); Replace::replaceInTheRest($body); Clean::cleanFinalHtmlOutput($body); RL_Protect::unprotect($body); $params->enable_in_head ? Replace::replace($pre, 'head') : Clean::cleanTagsFromHead($pre); $html = $pre . $body . $post; return true; } } }
/var/www/html/Joomla/cli/../plugins/system/sourcerer/sourcerer.php