|
From: <car...@us...> - 2025-02-14 04:37:32
|
Revision: 11097
http://sourceforge.net/p/phpwiki/code/11097
Author: carstenklapp
Date: 2025-02-14 04:37:31 +0000 (Fri, 14 Feb 2025)
Log Message:
-----------
Added display of plugins not allowed to SystemInfo and formatting date in DebugBackendInfo.
Modified Paths:
--------------
trunk/lib/plugin/DebugBackendInfo.php
trunk/lib/plugin/SystemInfo.php
Modified: trunk/lib/plugin/DebugBackendInfo.php
===================================================================
--- trunk/lib/plugin/DebugBackendInfo.php 2025-02-14 04:32:37 UTC (rev 11096)
+++ trunk/lib/plugin/DebugBackendInfo.php 2025-02-14 04:37:31 UTC (rev 11097)
@@ -147,6 +147,7 @@
if (!is_array($data)) {
return;
}
+ //print_r($data);////debugging
global $request;
$user = $request->getUser();
@@ -154,6 +155,8 @@
$fullkey = $prefix . '[' . $key . ']';
if (is_integer($key)) {
;
+ } elseif (($key == 'mtime')||($key == 'date'||($key == '_supplanted'))) {
+ $data[$key] = $val . " " . Rfc2822DateTime($val);//print nice date too
} elseif ($key == 'passwd' and !$user->isAdmin()) {
$data[$key] = $val ? _("<not displayed>") : _("<empty>");
} elseif ($key and $key == '_cached_html') {
Modified: trunk/lib/plugin/SystemInfo.php
===================================================================
--- trunk/lib/plugin/SystemInfo.php 2025-02-14 04:32:37 UTC (rev 11096)
+++ trunk/lib/plugin/SystemInfo.php 2025-02-14 04:37:31 UTC (rev 11097)
@@ -473,6 +473,30 @@
. implode(', ', array_map($plugin_function, $list));
}
+ public function notallowed_plugins()
+ {
+ global $AllAllowedPlugins;
+ $fileset = new FileSet(findFile('lib/plugin'), '*.php');
+ $list = $fileset->getFiles();
+ natcasesort($list);
+ reset($list);
+ $plugin_function = function ($f) {
+ return substr($f, 0, -4);
+ };
+ $filteredpluginslist = array_map($plugin_function, $list);
+ foreach ($filteredpluginslist as $key => $pluginfound) {
+ if (in_array($pluginfound, $AllAllowedPlugins))
+ {
+ //echo $pluginfound ." is allowed, ";
+ unset($filteredpluginslist[$key]);
+ } else {
+ //echo $pluginfound ." is not allowed, ";
+ }
+ }
+ return sprintf(_("Total %d plugins: "), count($filteredpluginslist))
+ . implode(', ', $filteredpluginslist);
+ }
+
public function supported_languages()
{
$available_languages = listAvailableLanguages();
@@ -577,7 +601,8 @@
'wikinameregexp' => _("Wikiname regexp"),
'allowedprotocols' => _("Allowed protocols"),
'inlineimages' => _("Inline images"),
- 'available_plugins' => _("Available plugins"),
+ 'available_plugins' => _("Plugins installed"),
+ 'notallowed_plugins' => _("Plugins not allowed"),
'supported_languages' => _("Supported languages"),
'supported_themes' => _("Supported themes"),
// '' => _(""),
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|