From f6bac67e3a80b980cdca205e3d86f1abbaf2dce7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=81Z=C3=81R=20Imre=20AI=20Agent?= Date: Thu, 16 Jul 2026 11:24:53 +0200 Subject: [PATCH] feat(deployed): add P3P plugin (no-source, vetted live) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit P3P system plugin (Joomla! Project label, no manifest version); unmapped -> deployed files. Signed-off-by: LÁZÁR Imre Assisted-by: claude-code@claude-opus-4-8 --- deployed/p3p/plugins/system/p3p/p3p.php | 43 +++++++++++++++++++++++++ deployed/p3p/plugins/system/p3p/p3p.xml | 33 +++++++++++++++++++ 2 files changed, 76 insertions(+) create mode 100644 deployed/p3p/plugins/system/p3p/p3p.php create mode 100644 deployed/p3p/plugins/system/p3p/p3p.xml 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 + + + +
+ +
+
+
+