diff --git a/deployed/p3p/plugins/system/p3p/p3p.php b/deployed/p3p/plugins/system/p3p/p3p.php new file mode 100644 index 00000000..162ae008 --- /dev/null +++ b/deployed/p3p/plugins/system/p3p/p3p.php @@ -0,0 +1,43 @@ +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); + } +} diff --git a/deployed/p3p/plugins/system/p3p/p3p.xml b/deployed/p3p/plugins/system/p3p/p3p.xml new file mode 100644 index 00000000..552bb946 --- /dev/null +++ b/deployed/p3p/plugins/system/p3p/p3p.xml @@ -0,0 +1,33 @@ + + + plg_system_p3p + Joomla! Project + September 2010 + Copyright (C) 2005 - 2018 Open Source Matters. All rights reserved. + GNU General Public License version 2 or later; see LICENSE.txt + admin@joomla.org + www.joomla.org + 3.0.0 + PLG_P3P_XML_DESCRIPTION + + p3p.php + + + en-GB.plg_system_p3p.ini + en-GB.plg_system_p3p.sys.ini + + + +
+ +
+
+
+