48 lines
988 B
PHP
48 lines
988 B
PHP
<?php
|
|
|
|
|
|
if (!defined('_PS_VERSION_')) {
|
|
exit;
|
|
}
|
|
require_once _PS_MODULE_DIR_ . 'revsliderprestashop/rev-loader.php';
|
|
class AdminRevolutionsliderAjaxController extends ModuleAdminController
|
|
{
|
|
|
|
protected $_ajax_results;
|
|
|
|
protected $_ajax_stripslash;
|
|
|
|
protected $_filter_whitespace;
|
|
|
|
protected $lushslider_model;
|
|
|
|
public function __construct()
|
|
{
|
|
$this->display_header = false;
|
|
$this->display_footer = false;
|
|
$this->content_only = true;
|
|
parent::__construct();
|
|
$this->_ajax_results['error_on'] = 1;
|
|
}
|
|
public function init()
|
|
{
|
|
|
|
// Process POST | GET
|
|
$this->initProcess();
|
|
}
|
|
/**
|
|
*
|
|
* @throws Exception
|
|
*/
|
|
public function initProcess()
|
|
{
|
|
ob_start();
|
|
$RevSliderAdmin = new RevSliderAdmin();
|
|
$RevSliderAdmin->do_ajax_action();
|
|
$output = ob_get_contents();
|
|
ob_end_clean();
|
|
//die($output);
|
|
die($output);
|
|
}
|
|
}
|