Файловый менеджер - Редактировать - /home/lmsyaran/public_html/j3/plugins/content/remove_permission/remove_permission.php
Назад
<?php /*----------------------------------------------------------------------------------| www.vdm.io |----/ Lmskaran /-------------------------------------------------------------------------------------------------------/ @version 1.0.76 @build 12th February, 2022 @created 22nd July, 2020 @package Moojla @subpackage remove_permission.php @author Lmskaran <http://Lmskaran.com> @copyright Copyright (C) 2015. All Rights Reserved @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html ____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____ (_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _) .-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )( \____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__) /------------------------------------------------------------------------------------------------------*/ // No direct access to this file defined('_JEXEC') or die('Restricted access'); /***[JCBGUI.class_extends.head.1.$$$$]***/ use Joomla\CMS\Application\CMSApplication; use Joomla\CMS\Plugin\CMSPlugin; /***[/JCBGUI$$$$]***/ /***[JCBGUI.class_extends.comment.1.$$$$]***/ /** * Content - Remove_permission plugin. * * @package Remove_permission * @since 1.0.0 *//***[/JCBGUI$$$$]***/ class PlgContentRemove_permission extends CMSPlugin { /***[JCBGUI.joomla_plugin.main_class_code.83.$$$$]***/ public function onContentPrepareForm($form, $data) { $form_name= $form->getName(); $context= explode(',', $this->params->get('remove_permission_context')); if (!($form instanceof JForm)) { JFactory::getApplication()->enqueueMessage('JERROR_NOT_A_FORM','error'); return false; } if (!in_array($form_name, $context)) { return true; } // $permission= 'accesscontrol'; // if ($form_name == 'com_config.component') // { // // $moojla_config_sign= $form->getFieldset("enrolment_custom_config"); // if (empty($moojla_config_sign)) // return true; // else // $permission= 'permissions'; // } $form->removeField('asset_id'); $form->removeField('rules'); // foreach ($form->getFieldset($permission) as $item) { // $name= $item->getAttribute('name'); // $form->removeField($name); // } return true; }/***[/JCBGUI$$$$]***/ }
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка