From 6456d871fdb9eaa1e9c69cd3f8e3c54af61761b2 Mon Sep 17 00:00:00 2001 From: Jean-Pierre Pourrez <46094001+kazimentou@users.noreply.github.com> Date: Tue, 27 Aug 2024 22:58:46 +0200 Subject: [PATCH] Toggle for displaying fatal error and PLX_DEBUG set to false (#828) Co-authored-by: Jean-Pierre Pourrez --- core/lib/class.plx.plugins.php | 23 ++++++++++++++++++++--- core/lib/config.php | 4 ++-- readme/CHANGELOG | 4 ++++ update/versions.php | 1 + 4 files changed, 27 insertions(+), 5 deletions(-) diff --git a/core/lib/class.plx.plugins.php b/core/lib/class.plx.plugins.php index 198199c70..5eabe9fee 100644 --- a/core/lib/class.plx.plugins.php +++ b/core/lib/class.plx.plugins.php @@ -37,7 +37,13 @@ public function __construct($default_lang='') { header('Content-Type: text/plain; charset=UTF-8'); } else { ?> -
+
+ z-index: 999; +"> +

 rootPlugins) and preg_match('#' . basename($this->rootPlugins) . '/([^/]+)/\1\.php$#', $error['file'], $matches)) {
@@ -79,7 +87,7 @@ public function __construct($default_lang='') {
 User : 
 Profil : 
 PluXml version : 
-PLX_DEBUG : 
+PLX_DEBUG : 
 PHP version : 
 
 About this server :
@@ -104,6 +112,7 @@ public function __construct($default_lang='') {
 						));
 					}, ARRAY_FILTER_USE_KEY) as $k=>$v) {
 						switch($k) {
+							case 'HTTP_REFERER' : $v = preg_replace('#^https?://'. $_SERVER['SERVER_NAME']. '#', '', $_SERVER['HTTP_REFERER']); break;
 							case 'SCRIPT_FILENAME' : $v = preg_replace('#^' . $documentRoot . '#', '', realpath($v)); break;
 							case 'SERVER_SIGNATURE' : $v = trim(strip_tags($v)); break;
 							default : # nothing to do
@@ -145,6 +154,14 @@ public function __construct($default_lang='') {
 				if($hasHeaders_sent) {
 ?>
 
+ +
'', '5.8.13' => '', '5.8.14' => '', + '5.8.15' => '', );