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 @@ [{{ page.num }}]{% if loop.last %} {% endif %} {% endfor %} {{ btn.next }} {{ boardlist.bottom }} -

Powered by Tinyboard v0.9.4 | Tinyboard Copyright © 2010-2011 Tinyboard Development Group

+

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.

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 @@
{% if subtitle %}{{subtitle}}{% endif %}

{% if mod %}Return to dashboard{% endif %}

{{ body }}
-

Powered by Tinyboard v0.9.4 | Tinyboard Copyright © 2010-2011 Tinyboard Development Group

+

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

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 @@ [Return] {{ boardlist.bottom }} -

Powered by Tinyboard v0.9.4 | Tinyboard Copyright © 2010-2011 Tinyboard Development Group

+

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.