From: Patrick Canterino Date: Wed, 12 Mar 2025 18:57:39 +0000 (+0100) Subject: New configuration option "enable_tos" X-Git-Url: https://git.p6c8.net/jirafeau/pcanterino.git/commitdiff_plain/cf30a766d80fef8a00747f080063ab4d6a2f65fa?hp=8d502b13db867970e99498f9276691442b642ff0 New configuration option "enable_tos" When set to "false" the link to the TOS page is not displayed in the footer. Defaults to "true". --- 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') . ''; + } } ?>