Файловый менеджер - Редактировать - /var/www/html/administrator/components/com_jdonation/controller/campaign.php
Ðазад
<?php use Joomla\CMS\Factory; use Joomla\CMS\Table\Table; /** * @version 5.6.3 * @package Joomla * @subpackage Joom Donation * @author Tuan Pham Ngoc * @copyright Copyright (C) 2009 - 2019 Ossolution Team * @license GNU/GPL, see LICENSE.php */ // Check to ensure this file is included in Joomla! defined('_JEXEC') or die; use Joomla\Utilities\ArrayHelper; class DonationControllerCampaign extends DonationController { function save_order_ajax() { $jinput = Factory::getApplication()->input; $db = Factory::getDBO(); $cid = $jinput->get( 'cid', array(), 'array' ); $order = $jinput->get( 'order', array(), 'array' ); $row = Table::getInstance('Campaign','DonationTable'); $groupings = array(); // update ordering values $txt = ""; for( $i=0; $i < count($cid); $i++ ) { $row->load( $cid[$i] ); if ($row->ordering != $order[$i]) { $row->ordering = $order[$i]; $row->store(); } // if } // for for( $i=0; $i < count($cid); $i++ ) { $row->load( $cid[$i] ); $row->reorder(); } } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка