From b61c21fbfbc8cc68f0c3d819f915018b197940e4 Mon Sep 17 00:00:00 2001 From: Savetheinternet <savetheinternet@tinyboard.org> 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 }}</div> {{ boardlist.bottom }} <p class="unimportant" style="margin-top:20px;text-align:center;">Powered by <a href="http://tinyboard.org/">Tinyboard</a> {{ config.version }} | <a href="http://tinyboard.org/">Tinyboard</a> Copyright © 2010-2011 Tinyboard Development Group</p> - <p class="unimportant" style="text-align:center;">All trademarks, copyrights, comments, and images on this page are owned by or are the responsibility of their respective parties.</p> - + {% for footer in config.footer %}<p class="unimportant" style="text-align:center;">{{ footer }}</p>{% endfor %} </body> </html> 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 }} <p class="unimportant" style="margin-top:20px;text-align:center;">Powered by <a href="http://tinyboard.org/">Tinyboard</a> {{ config.version }} | <a href="http://tinyboard.org/">Tinyboard</a> Copyright © 2010-2011 Tinyboard Development Group</p> - <p class="unimportant" style="text-align:center;">All trademarks, copyrights, comments, and images on this page are owned by or are the responsibility of their respective parties.</p> - + {% for footer in config.footer %}<p class="unimportant" style="text-align:center;">{{ footer }}</p>{% endfor %} </body> </html>