From cf30a766d80fef8a00747f080063ab4d6a2f65fa Mon Sep 17 00:00:00 2001 From: Patrick Canterino Date: Wed, 12 Mar 2025 19:57:39 +0100 Subject: [PATCH 1/1] New configuration option "enable_tos" When set to "false" the link to the TOS page is not displayed in the footer. Defaults to "true". --- lib/config.original.php | 4 ++++ lib/template/footer.php | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/config.original.php b/lib/config.original.php index 8aec857..be5bdb4 100644 --- a/lib/config.original.php +++ b/lib/config.original.php @@ -67,6 +67,10 @@ $cfg['preview'] = true; */ $cfg['enable_crypt'] = false; +/* Enable the "Terms of service" page + */ +$cfg['enable_tos'] = true; + /* Length of link reference */ $cfg['link_name_length'] = 8; diff --git a/lib/template/footer.php b/lib/template/footer.php index 64132c7..c2cc175 100644 --- a/lib/template/footer.php +++ b/lib/template/footer.php @@ -14,8 +14,10 @@ echo ' ' . t('DESIGNED') . ' ' . $cfg['organisation']; } - echo ' | '; - echo '' . t('TOS') . ''; + if (isset($cfg['enable_tos']) && $cfg['enable_tos']) { + echo ' | '; + echo '' . t('TOS') . ''; + } } ?>

-- 2.43.0