]> git.p6c8.net - jirafeau/pcanterino.git/commitdiff
New configuration option "enable_tos" f_enable_tos
authorPatrick Canterino <patrick@patrick-canterino.de>
Wed, 12 Mar 2025 18:57:39 +0000 (19:57 +0100)
committerPatrick Canterino <patrick@patrick-canterino.de>
Wed, 12 Mar 2025 18:57:39 +0000 (19:57 +0100)
When set to "false" the link to the TOS page is not displayed in the footer.
Defaults to "true".

lib/config.original.php
lib/template/footer.php

index 8aec8572dc52948ec3e89bc57a61e84e506d1fd0..be5bdb4060078b4a675e72c1d90fe6a79fa09809 100644 (file)
@@ -67,6 +67,10 @@ $cfg['preview'] = true;
  */
 $cfg['enable_crypt'] = false;
 
  */
 $cfg['enable_crypt'] = false;
 
+/* Enable the "Terms of service" page
+ */
+$cfg['enable_tos'] = true;
+
 /* Length of link reference
  */
 $cfg['link_name_length'] = 8;
 /* Length of link reference
  */
 $cfg['link_name_length'] = 8;
index 64132c70966c4a6e5e2b0f8943422a245608764d..c2cc175b42c64f6a9447e75455f0b2b26735dd3e 100644 (file)
                 echo ' ' . t('DESIGNED')  . ' ' .  $cfg['organisation'];
             }
 
                 echo ' ' . t('DESIGNED')  . ' ' .  $cfg['organisation'];
             }
 
-            echo ' <span>|</span> ';
-            echo '<a href="tos.php" target="_blank" rel="nooener noreferrer">' . t('TOS') . '</a>';
+            if (isset($cfg['enable_tos']) && $cfg['enable_tos']) {
+                echo ' <span>|</span> ';
+                echo '<a href="tos.php" target="_blank" rel="nooener noreferrer">' . t('TOS') . '</a>';
+            }
         }
         ?>
     </p>
         }
         ?>
     </p>

patrick-canterino.de