Файловый менеджер - Редактировать - /home/wuectly/www/03cbe/jce.php.tar
Назад
home/wuectly/www/plugins/system/jce/jce.php 0000604 00000003621 15245536005 0015037 0 ustar 00 <?php /** * @copyright Copyright (C) 2015 - 2023 Ryan Demmer. All rights reserved * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved * @license GNU General Public License version 2 or later */ defined('JPATH_BASE') or die; JLoader::registerNamespace('Joomla\\Plugin\\Editors\\Jce', JPATH_PLUGINS . '/editors/jce/src', false, false, 'psr4'); JLoader::register('WfBrowserHelper', JPATH_ADMINISTRATOR . '/components/com_jce/helpers/browser.php'); use Joomla\CMS\Factory; use Joomla\CMS\Form\Form; use Joomla\CMS\Plugin\CMSPlugin; /** * JCE. * * @since 2.5.5 */ class PlgSystemJce extends CMSPlugin { public function onAfterDispatch() { $app = Factory::getApplication(); // only in "site" if ($app->getClientId() !== 0) { return; } $document = Factory::getDocument(); // must be an html doctype if ($document->getType() !== 'html') { return true; } $app->triggerEvent('onWfPluginAfterDispatch'); } /** * adds additional fields to the user editing form. * * @param Form $form The form to be altered * @param mixed $data The associated data for the form * * @return bool * * @since 2.6.64 */ public function onContentPrepareForm(Form $form, $data = []) { $app = Factory::getApplication(); // Only for admin if (!$app->isClient('administrator')) { return true; } $formName = $form->getName(); // profile form data if ($form->getName() == 'com_config.component') { // only for JCE component if ($app->input->getCmd('component') !== 'com_jce') { return true; } Form::addFormPath(__DIR__ . '/forms'); $form->loadFile('updates', false, '/config'); } } } home/wuectly/www/plugins/quickicon/jce/jce.php 0000604 00000003430 15245536007 0015500 0 ustar 00 <?php /** * @copyright Copyright (c) 2009 - 2023 Ryan Demmer. All rights reserved * @license GNU/GPL 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html * JCE is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses */ defined('_JEXEC') or die; use Joomla\CMS\Factory; use Joomla\CMS\Component\ComponentHelper; use Joomla\CMS\Plugin\CMSPlugin; use Joomla\CMS\Language\Text; /** * JCE File Browser Quick Icon plugin. * * @since 2.1 */ class plgQuickiconJce extends CMSPlugin { public function __construct(&$subject, $config) { parent::__construct($subject, $config); $app = Factory::getApplication(); // only in Admin and only if the component is enabled if ($app->getClientId() !== 1 || ComponentHelper::getComponent('com_jce', true)->enabled === false) { return; } $this->loadLanguage(); } public function onGetIcons($context) { if ($context != $this->params->get('context', 'mod_quickicon')) { return; } $user = Factory::getUser(); if (!$user->authorise('jce.browser', 'com_jce')) { return; } $language = Factory::getLanguage(); $language->load('com_jce', JPATH_ADMINISTRATOR); return array(array( 'link' => 'index.php?option=com_jce&view=browser', 'image' => 'picture fa fa-image', 'access' => array('jce.browser', 'com_jce'), 'text' => Text::_('PLG_QUICKICON_JCE_TITLE'), 'id' => 'plg_quickicon_jce', )); } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка