From e418d122519064c8dfcbbf1dd4614c43bd626e6d Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Wed, 8 May 2024 02:24:31 -0700 Subject: [PATCH] Allow separate motd.txt for each section (section-motd.txt). This overrides motd.txt. --- Rocksolid_Light/common/header.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Rocksolid_Light/common/header.php b/Rocksolid_Light/common/header.php index 4bc5c23..0e1612e 100644 --- a/Rocksolid_Light/common/header.php +++ b/Rocksolid_Light/common/header.php @@ -99,6 +99,11 @@ include ($config_dir . '/fortunes.conf'); if (file_exists($config_dir . '/motd.txt')) { $motd = file_get_contents($config_dir . '/motd.txt'); } +// If specific
-motd.txt exists, use it +if (file_exists($config_dir . '/' . $config_name . '-motd.txt')) { + $motd = file_get_contents($config_dir . '/' . $config_name . '-motd.txt'); +} + echo '

'; echo ''; foreach ($menulist as $menu) {