summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@tinyboard.org>2011-12-24 00:51:24 +1100
committerSavetheinternet <savetheinternet@tinyboard.org>2011-12-24 00:51:24 +1100
commite7eb4e856dcd3b2a6802f679c971a21511f175fc (patch)
tree2fe8fe047190c38af0ff3a4e2726fce42a174bc2
parenta144edd924bc1649cda8fddc320f2c2fc1b0d3c9 (diff)
customizable footer text in config
-rw-r--r--inc/config.php8
-rw-r--r--templates/index.html3
-rw-r--r--templates/thread.html3
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 &copy; 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 &copy; 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>