Your IP : 216.73.216.134


Current Path : /home/bijouxly/www/plugins/system/admintools/feature/
Upload File :
Current File : /home/bijouxly/www/plugins/system/admintools/feature/thirdpartyexception.php

<?php
/**
 * @package   admintools
 * @copyright Copyright (c)2010-2020 Nicholas K. Dionysopoulos / Akeeba Ltd
 * @license   GNU General Public License version 3, or later
 */

defined('_JEXEC') or die;

class AtsystemFeatureThirdpartyexception extends AtsystemFeatureAbstract
{
	/**
	 * Log a security exception coming from a third party application. It's
	 * supposed to be used by 3PD to log security exceptions in Admin Tools'
	 * log.
	 *
	 * @param   string  $reason    The blocking reason to show to the administrator. MANDATORY.
	 * @param   string  $message   The message to show to the user being blocked. MANDATORY.
	 * @param   array   $extraInfo Any extra information to record to the log file (hash array).
	 * @param   boolean $autoban   OBSOLETE. No longer used.
	 *
	 * @return  void
	 */
	public function onAdminToolsThirdpartyException($reason, $message, $extraInfo = array(), $autoban = false)
	{
		if (empty($message))
		{
			return;
		}

		// Block the request
		$this->exceptionsHandler->blockRequest('external', $message, $extraInfo, $reason);
	}
}