|
Server : Apache System : Linux vps.urbanovitalino.adv.br 3.10.0-1062.12.1.el7.x86_64 #1 SMP Tue Feb 4 23:02:59 UTC 2020 x86_64 User : urbanovitalinoad ( 1001) PHP Version : 7.3.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/urbanovitalinoad/public_html/extranet/plugins/system/p3p/ |
Upload File : |
<?php
/**
* @package Joomla.Plugin
* @subpackage System.p3p
*
* @copyright (C) 2010 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
/**
* Joomla! P3P Header Plugin.
*
* @since 1.6
* @deprecate 4.0 Obsolete
*/
class PlgSystemP3p extends JPlugin
{
/**
* After initialise.
*
* @return void
*
* @since 1.6
* @deprecate 4.0 Obsolete
*/
public function onAfterInitialise()
{
// Get the header.
$header = $this->params->get('header', 'NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM');
$header = trim($header);
// Bail out on empty header (why would anyone do that?!).
if (empty($header))
{
return;
}
// Replace any existing P3P headers in the response.
JFactory::getApplication()->setHeader('P3P', 'CP="' . $header . '"', true);
}
}