Файловый менеджер - Редактировать - /home/lmsyaran/public_html/administrator/components/com_hikashop/controllers/menus.php
Назад
<?php /** * @package HikaShop for Joomla! * @version 2.2.3 * @author hikashop.com * @copyright (C) 2010-2013 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?><?php class MenusController extends hikashopController{ var $toggle = array(); var $type='menus'; function __construct(){ parent::__construct(); $this->modify[]='add_module'; $this->add = array(); } function add_module(){ $id = hikashop_getCID('id'); $menu = hikashop_get('class.menus'); $menu->attachAssocModule($id); $this->edit(); } function edit(){ if(JRequest::getInt('fromjoomla')){ $app = JFactory::getApplication(); $context = 'com_menus.edit.item'; $id = hikashop_getCID('id'); if($id){ $values = (array) $app->getUserState($context . '.id'); $index = array_search((int) $id, $values, true); if (is_int($index)){ unset($values[$index]); $app->setUserState($context . '.id', $values); } } } return parent::edit(); } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка