summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael D. Reiley <mreiley@omegasdg.com>2011-10-10 03:40:31 -0700
committerMichael D. Reiley <mreiley@omegasdg.com>2011-10-10 03:40:31 -0700
commita88f89a4aab902deeb01ea7a6abad7c00daacdd1 (patch)
treee4f07fa013afd3b10b4cbbc6e0fd872a51b3c751
parentf6a499778033199fac9b2ee6165da85190e98c2b (diff)
Footer version string pulled from .installed
-rw-r--r--inc/functions.php4
-rw-r--r--templates/index.html2
-rw-r--r--templates/page.html2
-rw-r--r--templates/thread.html2
4 files changed, 7 insertions, 3 deletions
diff --git a/inc/functions.php b/inc/functions.php
index 70e5eadd..464d22da 100644
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -19,6 +19,10 @@
require $board['dir'] . '/config.php';
}
+ if(!isset($__version))
+ $__version = trim(file_get_contents('.installed'));
+ $config['version'] = $__version;
+
if($config['debug']) {
if(!isset($debug)) {
$debug = Array('sql' => Array(), 'purge' => Array(), 'cached' => Array());
diff --git a/templates/index.html b/templates/index.html
index 8cd21eb0..8c15436f 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -157,7 +157,7 @@
[<a {% if page.selected %}class="selected"{% endif %}{% if not page.selected %}href="{{ page.link }}"{% endif %}>{{ page.num }}</a>]{% if loop.last %} {% endif %}
{% 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> v0.9.4 | <a href="http://tinyboard.org/">Tinyboard</a> Copyright &copy; 2010-2011 Tinyboard Development Group</p>
+ <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>
</body>
diff --git a/templates/page.html b/templates/page.html
index 5186dd6d..e61e47da 100644
--- a/templates/page.html
+++ b/templates/page.html
@@ -15,6 +15,6 @@
<div class="title">{% if subtitle %}{{subtitle}}{% endif %}<p>{% if mod %}<a href="?/">Return to dashboard</a>{% endif %}</p></div>
{{ body }}
<hr />
- <p class="unimportant" style="margin-top:20px;text-align:center;">Powered by <a href="http://tinyboard.org/">Tinyboard</a> v0.9.4 | <a href="http://tinyboard.org/">Tinyboard</a> Copyright &copy; 2010-2011 Tinyboard Development Group</p>
+ <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>
</body>
</html>
diff --git a/templates/thread.html b/templates/thread.html
index 6884d817..80d0f2ed 100644
--- a/templates/thread.html
+++ b/templates/thread.html
@@ -149,7 +149,7 @@
<a href="{{ return }}">[Return]</a>
{{ boardlist.bottom }}
- <p class="unimportant" style="margin-top:20px;text-align:center;">Powered by <a href="http://tinyboard.org/">Tinyboard</a> v0.9.4 | <a href="http://tinyboard.org/">Tinyboard</a> Copyright &copy; 2010-2011 Tinyboard Development Group</p>
+ <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>
</body>