Файловый менеджер - Редактировать - /home/lmsyaran/public_html_back/public_html/administrator/components/com_hikashop/classes/entry.php
Назад
<?php /** * @package HikaShop for Joomla! * @version 4.4.1 * @author hikashop.com * @copyright (C) 2010-2021 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 hikashopEntryClass extends hikashopClass { var $tables = array('entry'); var $pkeys = array('entry_id'); public function saveForm() { $entry = new stdClass(); $entry->entry_id = hikashop_getCID('entry_id'); $formData = hikaInput::get()->get('data', array(), 'array'); jimport('joomla.filter.filterinput'); $safeHtmlFilter = JFilterInput::getInstance(array(), array(), 1, 1); foreach($formData['entry'] as $column => $value){ hikashop_secureField($column); $entry->$column = $safeHtmlFilter->clean($value, 'string'); } $status = $this->save($entry); if(hikaInput::get()->getVar('tmpl', '') == 'component') { if($status) { $url = hikashop_completeLink('order&task=edit&cid='.$entry->order_id,false,true); echo '<html><head><script type="text/javascript">parent.window.location.href=\''.$url.'\';</script></head><body></body></html>'; } else { echo '<html><head><script type="text/javascript">javascript: history.go(-1);</script></head><body></body></html>'; } exit; } return $status; } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0.01 |
proxy
|
phpinfo
|
Настройка