uawdijnntqw1x1x1
IP : 216.73.216.155
Hostname : vm5018.vps.agava.net
Kernel : Linux vm5018.vps.agava.net 3.10.0-1127.8.2.vz7.151.14 #1 SMP Tue Jun 9 12:58:54 MSK 2020 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
var
/
www
/
iplanru
/
data
/
www
/
i-plan.ru
/
administrator
/
components
/
com_pay
/
controllers
/
discounts.php
/
/
<?php // No direct access defined( '_JEXEC' ) or die; // Подключаем библиотеку controlleradmin Joomla. jimport('joomla.application.component.controlleradmin'); /** * Controller for list current element * @author Aleks.Denezh */ class PayControllerDiscounts extends JControllerAdmin { /** * Class constructor * @param array $config */ function __construct( $config = array() ) { parent::__construct( $config ); } /** * Method to get current model * @param String $name (model name) * @param String $prefix (model prefox) * @param Array $config * @return model for current element */ public function getModel( $name = 'Discount', $prefix = 'PayModel', $config = array( 'ignore_request' => true ) ) { return parent::getModel( $name, $prefix, $config ); } /** * Method to save the submitted ordering values for records via AJAX. * @return void */ public function saveOrderAjax() { $pks = $this->input->post->get( 'cid', array(), 'array' ); $order = $this->input->post->get( 'order', array(), 'array' ); // Sanitize the input JArrayHelper::toInteger( $pks ); JArrayHelper::toInteger( $order ); // Get the model $model = $this->getModel(); // Save the ordering $return = $model->saveorder( $pks, $order ); if ( $return ) { echo '1'; } // Close the application JFactory::getApplication()->close(); } public function certificate() { // Get the input $input = JFactory::getApplication()->input; $pks = $input->post->get('cid', array(), 'array'); // Sanitize the input JArrayHelper::toInteger($pks); // Get the model $model = $this->getModel(); $return = $model->certificate($pks); // Redirect to the list screen. $this->setRedirect(JRoute::_('index.php?option=com_pay&view=discounts', false)); } }
/var/www/iplanru/data/www/i-plan.ru/administrator/components/com_pay/controllers/discounts.php