From 39ec732e7d38802f075d2cf7002964204e00549c Mon Sep 17 00:00:00 2001 From: Zack Spear Date: Fri, 4 Apr 2025 20:35:21 -0700 Subject: [PATCH] chore: move functionality to log plugin changes to /var/tmp/unRAIDServer.txt in DefaultPageLayout.php --- emhttp/plugins/dynamix/include/DefaultPageLayout.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/emhttp/plugins/dynamix/include/DefaultPageLayout.php b/emhttp/plugins/dynamix/include/DefaultPageLayout.php index e8c60b4ea..fc3a09484 100644 --- a/emhttp/plugins/dynamix/include/DefaultPageLayout.php +++ b/emhttp/plugins/dynamix/include/DefaultPageLayout.php @@ -34,6 +34,9 @@ if ($wlan0) $nchan[] = 'webGui/nchan/wlan0'; $safemode = _var($var,'safeMode')=='yes'; $banner = "$config/plugins/dynamix/banner.png"; +$notes = '/var/tmp/unRAIDServer.txt'; +if (!file_exists($notes)) file_put_contents($notes,shell_exec("$docroot/plugins/dynamix.plugin.manager/scripts/plugin changes $docroot/plugins/unRAIDServer/unRAIDServer.plg")); + function annotate($text) {echo "\n\n";} ?> @@ -83,8 +86,6 @@ if ($themeHelper->isSidebarTheme()) { echo ".nav-item.LockButton a:before{content:'\\e955'}\n"; foreach ($buttons as $button) if (isset($button['Code'])) echo ".nav-item.{$button['name']} a:before{content:'\\{$button['Code']}'}\n"; } -$notes = '/var/tmp/unRAIDServer.txt'; -if (!file_exists($notes)) file_put_contents($notes,shell_exec("$docroot/plugins/dynamix.plugin.manager/scripts/plugin changes $docroot/plugins/unRAIDServer/unRAIDServer.plg")); ?>