| Server IP : 195.130.67.5 / Your IP : 216.73.216.231 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/icd/components/com_akeeba/controllers/ |
Upload File : |
<?php
/**
* @package AkeebaBackup
* @copyright Copyright (c)2006-2011 Nicholas K. Dionysopoulos
* @license GNU General Public License version 2, or later
* @version $Id: json.php 521 2011-03-28 15:25:03Z nikosdion $
* @since 1.3
*/
// Protect from unauthorized access
defined('_JEXEC') or die('Restricted Access');
defined('AKEEBA_BACKUP_ORIGIN') or define('AKEEBA_BACKUP_ORIGIN','json');
// Load framework base classes
jimport('joomla.application.component.controller');
class AkeebaControllerJson extends JController
{
/**
* Starts a backup
* @return
*/
public function display()
{
// Many versions of PHP suffer from a brain-dead buggy JSON library. Let's
// load our own (actually it's PEAR's Services_JSON).
require_once JPATH_SITE.DS.'administrator'.DS.'components'.DS.'com_akeeba'.DS.'helpers'.DS.'jsonlib.php';
// Use the model to parse the JSON message
if(function_exists('ob_start')) @ob_start();
$sourceJSON = JRequest::getVar('json', null, 'default', 'raw', 2);
$model = JModel::getInstance('Json','AkeebaModel');
$json = $model->execute($sourceJSON);
if(function_exists('ob_clean')) @ob_clean();
// Just dump the JSON and tear down the application, without plugins executing
echo $json;
$app = JFactory::getApplication();
$app->close();
}
}