CoreFiles by mySites.guru
p3p.php37 lines, 846 bytes, from Joomla_3.0.4-Stable-Full_Package.zip
Raw History Compare with 3.0.3
md5
3ae1aa1d7cd9e99cbdff7fd128ed135d
sha1
e13c4467f2f7a5b93d969e570c6871afd17f2ab3
sha256
1df10cf8b395b14c6afe0961683dba2445564b4e7384e5dc85b1d5a526ac4f85
<?php
/**
 * @package     Joomla.Plugin
 * @subpackage  System.p3p
 *
 * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

/**
 * Joomla! P3P Header Plugin
 *
 * @package     Joomla.Plugin
 * @subpackage  System.p3p
 * @since       1.6
 */
class plgSystemP3p extends JPlugin
{
	/*
	 * @since   1.6
	 */
	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
		JResponse::setHeader('P3P', 'CP="'.$header.'"', true);
	}
}

The same content is in 2 releases, Joomla 3.0.3 to 3.0.4. See them all, or every version of this file.