From 9cf3e47cc5e8225f0a0c3eb0ef0d78b1d090bd2d Mon Sep 17 00:00:00 2001 From: Xkeeper Date: Sun, 9 Aug 2015 01:10:54 -0700 Subject: [PATCH] adding version number --- .gitignore | 2 +- lib/function.php | 1 - lib/layout.php | 5 ++--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 1ee8f2e..561d2db 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,6 @@ .old/ board/ xkeeper/ - +version.txt lib/config.php lib/firewall.php \ No newline at end of file diff --git a/lib/function.php b/lib/function.php index 6d83333..7f3a953 100644 --- a/lib/function.php +++ b/lib/function.php @@ -35,7 +35,6 @@ if (file_exists("lib/firewall.php") && !filter_int($disable_firewall)) { - trigger_error("Loading firewall", E_USER_NOTICE); require 'lib/firewall.php'; } diff --git a/lib/layout.php b/lib/layout.php index 1f806ed..45ea7fe 100644 --- a/lib/layout.php +++ b/lib/layout.php @@ -519,9 +519,8 @@ {$smallfont} - Acmlmboard - $verupdated b". str_pad($vernumber, 3, "0", STR_PAD_LEFT) ." -
©2000-2013 Acmlm, Xkeeper, Inuyasha, et al. + Acmlmboard - ". (file_exists('version.txt') ? file_get_contents("version.txt") : shell_exec("git log --format='commit %h [%ad]' --date='short' -n 1")) ." +
©2000-". date("Y") ." Acmlm, Xkeeper, Inuyasha, et al.