uawdijnntqw1x1x1
IP : 216.73.217.142
Hostname : localhost.localdomain
Kernel : Linux localhost.localdomain 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 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
/
consult-e-syn
/
public_html
/
643de
/
..
/
plugins
/
system
/
articlesanywhere
/
.
/
script.install.php
/
/
<?php /** * @package Articles Anywhere * @version 14.2.0PRO * * @author Peter van Westen <info@regularlabs.com> * @link https://regularlabs.com * @copyright Copyright © 2023 Regular Labs All Rights Reserved * @license GNU General Public License version 2 or later */ defined('_JEXEC') or die; use Joomla\CMS\Factory as JFactory; use Joomla\CMS\Language\Text as JText; class PlgSystemArticlesAnywhereInstallerScript { public function postflight($install_type, $adapter) { if ( ! in_array($install_type, ['install', 'update'])) { return true; } self::disableCoreEditorPlugin(); return true; } public function uninstall($adapter) { self::enableCoreEditorPlugin(); } private static function disableCoreEditorPlugin() { $db = JFactory::getDbo(); $query = self::getCoreEditorPluginQuery() ->set($db->quoteName('enabled') . ' = 0') ->where($db->quoteName('enabled') . ' = 1'); $db->setQuery($query); $db->execute(); if ( ! $db->getAffectedRows()) { return; } JFactory::getApplication()->enqueueMessage(JText::_('Joomla\'s own "Article" editor button has been disabled'), 'warning'); } private static function enableCoreEditorPlugin() { $db = JFactory::getDbo(); $query = self::getCoreEditorPluginQuery() ->set($db->quoteName('enabled') . ' = 1') ->where($db->quoteName('enabled') . ' = 0'); $db->setQuery($query); $db->execute(); if ( ! $db->getAffectedRows()) { return; } JFactory::getApplication()->enqueueMessage(JText::_('Joomla\'s own "Article" editor button has been re-enabled'), 'warning'); } private static function getCoreEditorPluginQuery() { $db = JFactory::getDbo(); return $db->getQuery(true) ->update('#__extensions') ->where($db->quoteName('element') . ' = ' . $db->quote('article')) ->where($db->quoteName('folder') . ' = ' . $db->quote('editors-xtd')) ->where($db->quoteName('custom_data') . ' NOT LIKE ' . $db->quote('%articlesanywhere_ignore%')); } }
/var/www/consult-e-syn/public_html/643de/../plugins/system/articlesanywhere/./script.install.php