Файловый менеджер - Редактировать - /home/wuectly/www/03cbe/Extension.tar
Назад
AkeebaBackup.php 0000604 00000015165 15245527357 0007576 0 ustar 00 <?php /* * @package akeebabackup * @copyright Copyright (c)2006-2020 Nicholas K. Dionysopoulos / Akeeba Ltd * @license GNU General Public License version 3, or later */ namespace Joomla\Plugin\Console\AkeebaBackup\Extension; defined('_JEXEC') || die; use Akeeba\Backup\Admin\Helper\SecretWord; use Akeeba\Backup\Admin\Model\ControlPanel; use Akeeba\Engine\Factory; use Akeeba\Engine\Platform; use FOF30\Container\Container; use Joomla\Application\ApplicationEvents; use Joomla\Application\Event\ApplicationEvent; use Joomla\CMS\Application\ConsoleApplication; use Joomla\CMS\Factory as JFactory; use Joomla\CMS\Filesystem\Folder; use Joomla\CMS\Plugin\CMSPlugin; use Joomla\Console\Command\AbstractCommand; use Joomla\Database\DatabaseDriver; use Joomla\Event\SubscriberInterface; use RuntimeException; use Throwable; class AkeebaBackup extends CMSPlugin implements SubscriberInterface { /** * Load the language file on instantiation. * * @var boolean * @since 7.5.0 */ protected $autoloadLanguage = true; /** * Application object. * * @var ConsoleApplication * @since 7.5.0 */ protected $app; /** * Returns an array of events this subscriber will listen to. * * @return array * * @since 7.5.0 */ public static function getSubscribedEvents(): array { return [ ApplicationEvents::BEFORE_EXECUTE => 'registerCLICommands', ]; } /** * Registers command classes to the CLI application. * * This is an event handled for the ApplicationEvents::BEFORE_EXECUTE event. * * @param ApplicationEvent $event The before_execite application event being handled * * @since 7.5.0 */ public function registerCLICommands(ApplicationEvent $event) { // Only register CLI commands if we can boot up the Akeeba Backup component enough to make it usable. try { //$this->initialiseComponent(); } catch (Throwable $e) { return; } $this->initialiseComponent(); /** @var ConsoleApplication $app */ $app = $event->getApplication(); // Try to find all commands in the CliCommands directory of the component $baseNamespace = '\Akeeba\Backup\Admin\CliCommands\\'; $files = Folder::files(JPATH_ADMINISTRATOR . '/components/com_akeeba/CliCommands', '.php'); $files = is_array($files) ? $files : []; foreach ($files as $file) { // Construct a fully qualified class name $className = $baseNamespace . basename($file, '.php'); /** * Make sure the class exists. Works around hosts renaming/duplicating files with silly extensions like * .1.php or .disabled.php. We've been seeing that nonsense since as early as 2013. */ if (!class_exists($className)) { continue; } // If I can construct the command object add it to the application. Otherwise move to the next file. try { $o = new $className; if (!($o instanceof AbstractCommand)) { continue; } $app->addCommand($o); } catch (Throwable $e) { continue; } } } private function initialiseComponent(): void { if (!defined('FOF30_INCLUDED') && !@include_once(JPATH_LIBRARIES . '/fof30/include.php')) { throw new RuntimeException('FOF 3.0 is not installed', 500); } if (!defined('AKEEBA_CACERT_PEM')) { define('AKEEBA_CACERT_PEM', JPATH_LIBRARIES . '/src/Http/Transport/cacert.pem'); } $container = Container::getInstance('com_akeeba', [], 'admin'); // Load the FOF language $lang = $container->platform->getLanguage(); $lang->load('lib_fof30', JPATH_ADMINISTRATOR, 'en-GB', true, true); $lang->load('lib_fof30', JPATH_ADMINISTRATOR, null, true, false); // Load the Akeeba Backup language files $lang->load('com_akeeba', JPATH_SITE, 'en-GB', true, true); $lang->load('com_akeeba', JPATH_SITE, null, true, false); $lang->load('com_akeeba', JPATH_ADMINISTRATOR, 'en-GB', true, true); $lang->load('com_akeeba', JPATH_ADMINISTRATOR, null, true, false); // Necessary for routing the Alice view $container->inflector->addWord('Alice', 'Alices'); // Load Akeeba Engine $this->loadAkeebaEngine(); // Load the Akeeba Engine configuration $retryLoadingEngineConfiguration = false; try { $this->loadAkeebaEngineConfiguration(); } catch (\Exception $e) { // Maybe the tables are not installed? /** @var ControlPanel $cPanelModel */ $cPanelModel = $container->factory->model('ControlPanel')->tmpInstance(); $cPanelModel->checkAndFixDatabase(); $retryLoadingEngineConfiguration = true; } if ($retryLoadingEngineConfiguration) { $this->loadAkeebaEngineConfiguration(); } // Prevents the "SQLSTATE[HY000]: General error: 2014" due to resource sharing with Akeeba Engine // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // !!!!! WARNING: ALWAYS GO THROUGH JFactory; DO NOT GO THROUGH $this->container->db !!!!! // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ if (version_compare(PHP_VERSION, '7.999.999', 'le')) { /** @var DatabaseDriver $jDbo */ $jDbo = JFactory::getContainer()->get('DatabaseDriver'); if ($jDbo->getName() == 'pdomysql') { @$jDbo->disconnect(); } } // Make sure the front-end backup Secret Word is stored encrypted $params = $container->params; SecretWord::enforceEncryption($params, 'frontend_secret_word'); // Make sure we have a version loaded @include_once($container->backEndPath . '/version.php'); if (!defined('AKEEBA_VERSION')) { define('AKEEBA_VERSION', 'dev'); define('AKEEBA_DATE', date('Y-m-d')); } } public function loadAkeebaEngine(): void { $container = Container::getInstance('com_akeeba', [], 'admin'); // Necessary defines for Akeeba Engine if (!defined('AKEEBAENGINE')) { define('AKEEBAENGINE', 1); define('AKEEBAROOT', $container->backEndPath . '/BackupEngine'); } if (!defined('AKEEBA_BACKUP_ORIGIN')) { define('AKEEBA_BACKUP_ORIGIN', 'cli'); } // Make sure we have a profile set throughout the component's lifetime $profile_id = $container->platform->getSessionVar('profile', null, 'akeeba'); if (is_null($profile_id)) { $container->platform->setSessionVar('profile', 1, 'akeeba'); } // Load Akeeba Engine $basePath = $container->backEndPath; require_once $basePath . '/BackupEngine/Factory.php'; } public function loadAkeebaEngineConfiguration(): void { $container = Container::getInstance('com_akeeba', [], 'admin'); Platform::addPlatform('joomla3x', $container->backEndPath . '/BackupPlatform/Joomla3x'); $akeebaEngineConfig = Factory::getConfiguration(); Platform::getInstance()->load_configuration(); unset($akeebaEngineConfig); } } MediaJce.php 0000604 00000001273 15245606710 0006723 0 ustar 00 <?php /** * @package Jce.Plugin * @subpackage Fields.mediajce * * @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org> * @copyright (C) 2020 - 2024 Ryan Demmer. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\Plugin\Fields\MediaJce\Extension; use Joomla\Component\Fields\Administrator\Plugin\FieldsPlugin; use Joomla\Plugin\Fields\MediaJce\PluginTraits\FormTrait; // phpcs:disable PSR1.Files.SideEffects \defined('_JEXEC') or die; // phpcs:enable PSR1.Files.SideEffects /** * Fields Media Plugin * * @since 2.9.73 */ final class MediaJce extends FieldsPlugin { use FormTrait; } ExtensionHelper.php 0000604 00000025065 15245611464 0010405 0 ustar 00 <?php /** * Joomla! Content Management System * * @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\CMS\Extension; defined('JPATH_PLATFORM') or die; /** * Extension Helper class. * * @since 3.7.4 * * @deprecated 4.0 Replace class with a non static methods for better testing */ class ExtensionHelper { /** * Array of core extensions * Each element is an array with elements "type", "element", "folder" and * "client_id". * * @var array * @since 3.7.4 */ protected static $coreExtensions = array( // Format: `type`, `element`, `folder`, `client_id` // Core component extensions array('component', 'com_actionlogs', '', 1), array('component', 'com_admin', '', 1), array('component', 'com_ajax', '', 1), array('component', 'com_associations', '', 1), array('component', 'com_banners', '', 1), array('component', 'com_cache', '', 1), array('component', 'com_categories', '', 1), array('component', 'com_checkin', '', 1), array('component', 'com_config', '', 1), array('component', 'com_contact', '', 1), array('component', 'com_content', '', 1), array('component', 'com_contenthistory', '', 1), array('component', 'com_cpanel', '', 1), array('component', 'com_fields', '', 1), array('component', 'com_finder', '', 1), array('component', 'com_installer', '', 1), array('component', 'com_joomlaupdate', '', 1), array('component', 'com_languages', '', 1), array('component', 'com_login', '', 1), array('component', 'com_mailto', '', 0), array('component', 'com_media', '', 1), array('component', 'com_menus', '', 1), array('component', 'com_messages', '', 1), array('component', 'com_modules', '', 1), array('component', 'com_newsfeeds', '', 1), array('component', 'com_plugins', '', 1), array('component', 'com_postinstall', '', 1), array('component', 'com_privacy', '', 1), array('component', 'com_redirect', '', 1), array('component', 'com_search', '', 1), array('component', 'com_tags', '', 1), array('component', 'com_templates', '', 1), array('component', 'com_users', '', 1), array('component', 'com_wrapper', '', 0), // Core file extensions array('file', 'joomla', '', 0), // Core language extensions - administrator array('language', 'en-GB', '', 1), // Core language extensions - site array('language', 'en-GB', '', 0), // Core library extensions array('library', 'fof', '', 0), array('library', 'idna_convert', '', 0), array('library', 'joomla', '', 0), array('library', 'phpass', '', 0), array('library', 'phputf8', '', 0), // Core module extensions - administrator array('module', 'mod_custom', '', 1), array('module', 'mod_feed', '', 1), array('module', 'mod_latest', '', 1), array('module', 'mod_latestactions', '', 1), array('module', 'mod_logged', '', 1), array('module', 'mod_login', '', 1), array('module', 'mod_menu', '', 1), array('module', 'mod_multilangstatus', '', 1), array('module', 'mod_popular', '', 1), array('module', 'mod_privacy_dashboard', '', 1), array('module', 'mod_quickicon', '', 1), array('module', 'mod_sampledata', '', 1), array('module', 'mod_stats_admin', '', 1), array('module', 'mod_status', '', 1), array('module', 'mod_submenu', '', 1), array('module', 'mod_title', '', 1), array('module', 'mod_toolbar', '', 1), array('module', 'mod_version', '', 1), // Core module extensions - site array('module', 'mod_articles_archive', '', 0), array('module', 'mod_articles_categories', '', 0), array('module', 'mod_articles_category', '', 0), array('module', 'mod_articles_latest', '', 0), array('module', 'mod_articles_news', '', 0), array('module', 'mod_articles_popular', '', 0), array('module', 'mod_banners', '', 0), array('module', 'mod_breadcrumbs', '', 0), array('module', 'mod_custom', '', 0), array('module', 'mod_feed', '', 0), array('module', 'mod_finder', '', 0), array('module', 'mod_footer', '', 0), array('module', 'mod_languages', '', 0), array('module', 'mod_login', '', 0), array('module', 'mod_menu', '', 0), array('module', 'mod_random_image', '', 0), array('module', 'mod_related_items', '', 0), array('module', 'mod_search', '', 0), array('module', 'mod_stats', '', 0), array('module', 'mod_syndicate', '', 0), array('module', 'mod_tags_popular', '', 0), array('module', 'mod_tags_similar', '', 0), array('module', 'mod_users_latest', '', 0), array('module', 'mod_whosonline', '', 0), array('module', 'mod_wrapper', '', 0), // Core package extensions array('package', 'pkg_en-GB', '', 0), // Core plugin extensions - actionlog array('plugin', 'joomla', 'actionlog', 0), // Core plugin extensions - authentication array('plugin', 'cookie', 'authentication', 0), array('plugin', 'gmail', 'authentication', 0), array('plugin', 'joomla', 'authentication', 0), array('plugin', 'ldap', 'authentication', 0), // Core plugin extensions - captcha array('plugin', 'recaptcha', 'captcha', 0), array('plugin', 'recaptcha_invisible', 'captcha', 0), // Core plugin extensions - content array('plugin', 'confirmconsent', 'content', 0), array('plugin', 'contact', 'content', 0), array('plugin', 'emailcloak', 'content', 0), array('plugin', 'fields', 'content', 0), array('plugin', 'finder', 'content', 0), array('plugin', 'joomla', 'content', 0), array('plugin', 'loadmodule', 'content', 0), array('plugin', 'pagebreak', 'content', 0), array('plugin', 'pagenavigation', 'content', 0), array('plugin', 'vote', 'content', 0), // Core plugin extensions - editors array('plugin', 'codemirror', 'editors', 0), array('plugin', 'none', 'editors', 0), array('plugin', 'tinymce', 'editors', 0), // Core plugin extensions - editors xtd array('plugin', 'article', 'editors-xtd', 0), array('plugin', 'contact', 'editors-xtd', 0), array('plugin', 'fields', 'editors-xtd', 0), array('plugin', 'image', 'editors-xtd', 0), array('plugin', 'menu', 'editors-xtd', 0), array('plugin', 'module', 'editors-xtd', 0), array('plugin', 'pagebreak', 'editors-xtd', 0), array('plugin', 'readmore', 'editors-xtd', 0), // Core plugin extensions - extension array('plugin', 'joomla', 'extension', 0), // Core plugin extensions - fields array('plugin', 'calendar', 'fields', 0), array('plugin', 'checkboxes', 'fields', 0), array('plugin', 'color', 'fields', 0), array('plugin', 'editor', 'fields', 0), array('plugin', 'imagelist', 'fields', 0), array('plugin', 'integer', 'fields', 0), array('plugin', 'list', 'fields', 0), array('plugin', 'media', 'fields', 0), array('plugin', 'radio', 'fields', 0), array('plugin', 'repeatable', 'fields', 0), array('plugin', 'sql', 'fields', 0), array('plugin', 'text', 'fields', 0), array('plugin', 'textarea', 'fields', 0), array('plugin', 'url', 'fields', 0), array('plugin', 'user', 'fields', 0), array('plugin', 'usergrouplist', 'fields', 0), // Core plugin extensions - finder array('plugin', 'categories', 'finder', 0), array('plugin', 'contacts', 'finder', 0), array('plugin', 'content', 'finder', 0), array('plugin', 'newsfeeds', 'finder', 0), array('plugin', 'tags', 'finder', 0), // Core plugin extensions - installer array('plugin', 'folderinstaller', 'installer', 0), array('plugin', 'packageinstaller', 'installer', 0), array('plugin', 'urlinstaller', 'installer', 0), // Core plugin extensions - privacy array('plugin', 'actionlogs', 'privacy', 0), array('plugin', 'consents', 'privacy', 0), array('plugin', 'contact', 'privacy', 0), array('plugin', 'content', 'privacy', 0), array('plugin', 'message', 'privacy', 0), array('plugin', 'user', 'privacy', 0), // Core plugin extensions - quick icon array('plugin', 'extensionupdate', 'quickicon', 0), array('plugin', 'joomlaupdate', 'quickicon', 0), array('plugin', 'phpversioncheck', 'quickicon', 0), array('plugin', 'privacycheck', 'quickicon', 0), array('plugin', 'eos310', 'quickicon', 0), // Core plugin extensions - sample data array('plugin', 'blog', 'sampledata', 0), // Core plugin extensions - search array('plugin', 'categories', 'search', 0), array('plugin', 'contacts', 'search', 0), array('plugin', 'content', 'search', 0), array('plugin', 'newsfeeds', 'search', 0), array('plugin', 'tags', 'search', 0), // Core plugin extensions - system array('plugin', 'actionlogs', 'system', 0), array('plugin', 'cache', 'system', 0), array('plugin', 'debug', 'system', 0), array('plugin', 'fields', 'system', 0), array('plugin', 'highlight', 'system', 0), array('plugin', 'languagecode', 'system', 0), array('plugin', 'languagefilter', 'system', 0), array('plugin', 'log', 'system', 0), array('plugin', 'logout', 'system', 0), array('plugin', 'logrotation', 'system', 0), array('plugin', 'p3p', 'system', 0), array('plugin', 'privacyconsent', 'system', 0), array('plugin', 'redirect', 'system', 0), array('plugin', 'remember', 'system', 0), array('plugin', 'sef', 'system', 0), array('plugin', 'sessiongc', 'system', 0), array('plugin', 'stats', 'system', 0), array('plugin', 'updatenotification', 'system', 0), // Core plugin extensions - two factor authentication array('plugin', 'totp', 'twofactorauth', 0), array('plugin', 'yubikey', 'twofactorauth', 0), // Core plugin extensions - user array('plugin', 'contactcreator', 'user', 0), array('plugin', 'joomla', 'user', 0), array('plugin', 'profile', 'user', 0), array('plugin', 'terms', 'user', 0), // Core template extensions - administrator array('template', 'hathor', '', 1), array('template', 'isis', '', 1), // Core template extensions - site array('template', 'beez3', '', 0), array('template', 'protostar', '', 0), ); /** * Gets the core extensions. * * @return array Array with core extensions. * Each extension is an array with following format: * `type`, `element`, `folder`, `client_id`. * * @since 3.7.4 */ public static function getCoreExtensions() { return self::$coreExtensions; } /** * Check if an extension is core or not * * @param string $type The extension's type. * @param string $element The extension's element name. * @param integer $clientId The extension's client ID. Default 0. * @param string $folder The extension's folder. Default ''. * * @return boolean True if core, false if not. * * @since 3.7.4 */ public static function checkIfCoreExtension($type, $element, $clientId = 0, $folder = '') { return in_array(array($type, $element, $folder, $clientId), self::$coreExtensions); } } Jce.php 0000604 00000004553 15245667465 0006005 0 ustar 00 <?php /** * @package JCE * @subpackage Editors.Jce * * @copyright Copyright (C) 2005 - 2023 Open Source Matters, Inc. All rights reserved. * @copyright Copyright (c) 2009-2024 Ryan Demmer. All rights reserved * @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\Plugin\System\Jce\Extension; use JLoader; use Joomla\CMS\Factory; use Joomla\CMS\Plugin\CMSPlugin; use Joomla\CMS\Plugin\PluginHelper; use Joomla\Plugin\System\Jce\PluginTraits\EventTrait; use Joomla\Plugin\System\Jce\PluginTraits\FormTrait; JLoader::register('WfBrowserHelper', JPATH_ADMINISTRATOR . '/components/com_jce/helpers/browser.php'); // phpcs:disable PSR1.Files.SideEffects \defined('_JEXEC') or die; // phpcs:enable PSR1.Files.SideEffects /** * JCE WYSIWYG Editor Plugin. * * @since 1.5 */ final class Jce extends CMSPlugin { use FormTrait; use EventTrait; /** * Affects constructor behavior. If true, language files will be loaded automatically. * * @var boolean */ protected $autoloadLanguage = true; private $booted = false; private function bootEditorPlugins() { if ($this->booted) { return; } $app = Factory::getApplication(); // only in "site" if ($app->getClientId() !== 0) { return; } $plugins = PluginHelper::getPlugin('jce'); foreach ($plugins as $plugin) { if (!preg_match('/^editor[-_]/', $plugin->name)) { continue; } $path = JPATH_PLUGINS . '/jce/' . $plugin->name; // only modern plugins if (!is_dir($path . '/src')) { continue; } $plugin = $app->bootPlugin($plugin->name, $plugin->type); $plugin->setDispatcher($app->getDispatcher()); $plugin->registerListeners(); } $this->booted = true; } 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; } $this->bootEditorPlugins(); $app->triggerEvent('onWfPluginAfterDispatch'); } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка