From e7eb4e856dcd3b2a6802f679c971a21511f175fc Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Sat, 24 Dec 2011 00:51:24 +1100 Subject: [PATCH] customizable footer text in config --- inc/config.php | 8 +++++++- templates/index.html | 3 +-- templates/thread.html | 3 +-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/inc/config.php b/inc/config.php index 7cebafdd..fce89029 100644 --- a/inc/config.php +++ b/inc/config.php @@ -21,6 +21,7 @@ * */ + /* Ignore this */ $config = Array( 'db' => Array(), 'cache' => Array(), @@ -38,8 +39,10 @@ 'remote' => Array(), 'allowed_ext' => Array(), 'allowed_ext_files' => Array(), - 'file_icons' => Array() + 'file_icons' => Array(), + 'footer' => Array() ); + /* End ignore */ /* * ======================= @@ -465,6 +468,9 @@ // Number of characters in the poster ID (maximum is 40) $config['poster_id_length'] = 5; + // Page footer + $config['footer'][] = 'All trademarks, copyrights, comments, and images on this page are owned by or are the responsibility of their respective parties.'; + // Characters used to generate a random password (with Javascript) $config['genpassword_chars'] = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_+'; diff --git a/templates/index.html b/templates/index.html index 06dd2acc..63d25d8b 100644 --- a/templates/index.html +++ b/templates/index.html @@ -57,7 +57,6 @@ {% endfor %} {{ btn.next }} {{ boardlist.bottom }}

Powered by Tinyboard {{ config.version }} | Tinyboard Copyright © 2010-2011 Tinyboard Development Group

-

All trademarks, copyrights, comments, and images on this page are owned by or are the responsibility of their respective parties.

- + {% for footer in config.footer %}

{{ footer }}

{% endfor %} diff --git a/templates/thread.html b/templates/thread.html index f39a5c34..5c5184d1 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -58,7 +58,6 @@ {{ boardlist.bottom }}

Powered by Tinyboard {{ config.version }} | Tinyboard Copyright © 2010-2011 Tinyboard Development Group

-

All trademarks, copyrights, comments, and images on this page are owned by or are the responsibility of their respective parties.

- + {% for footer in config.footer %}

{{ footer }}

{% endfor %}