diff --git a/debian/rules b/debian/rules index 8c8033d9..e08f8f02 100755 --- a/debian/rules +++ b/debian/rules @@ -23,6 +23,8 @@ override_dh_install: sed -i 's/tmp\/LS.log/\/var\/log\/ldapsaisie\/ldapsaisie.log/' $(CURDIR)/debian/ldapsaisie/usr/share/ldapsaisie/conf/config.inc.php # Change default public_root_url sed -i "s/^\(\s*'public_root_url' => \).*/\1'\/ldapsaisie\/',/" $(CURDIR)/debian/ldapsaisie/usr/share/ldapsaisie/conf/config.inc.php + # Change LS_VERSION + sed -i "s/^define('LS_VERSION',.*/define('LS_VERSION', '$(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ')');/" $(CURDIR)/debian/ldapsaisie/usr/share/ldapsaisie/includes/core.php # Make a copy of default config.inc.php to /usr/local/share/ldapsaisie/conf/config.inc.example.php (=/etc/ldapsaisie/local/conf/config.inc.php) cp $(CURDIR)/debian/ldapsaisie/usr/share/ldapsaisie/conf/config.inc.php $(CURDIR)/debian/ldapsaisie/usr/local/share/ldapsaisie/conf/config.inc.example.php diff --git a/src/css/default/base.css b/src/css/default/base.css index 0aff50f4..93ed5fe5 100644 --- a/src/css/default/base.css +++ b/src/css/default/base.css @@ -85,6 +85,14 @@ a img { font-weight: bold; } +footer { + width: 100%; + text-align: center; + color: #333; + font-size: 0.6em; + font-style: italic; +} + /* * LSsession */ diff --git a/src/includes/class/class.LStemplate.php b/src/includes/class/class.LStemplate.php index f982adce..c77732be 100644 --- a/src/includes/class/class.LStemplate.php +++ b/src/includes/class/class.LStemplate.php @@ -405,6 +405,7 @@ class LStemplate extends LSlog_staticLoggerClass { LStemplate :: assign('defaultCssFiles', $defaultCssFiles); LStemplate :: assign('CssFiles', self :: $CssFiles); LStemplate :: assign('LibsCssFiles', self :: $LibsCssFiles); + LStemplate :: assign('LS_VERSION', LS_VERSION); } /** diff --git a/src/includes/core.php b/src/includes/core.php index 2fa21dee..3c0c127f 100644 --- a/src/includes/core.php +++ b/src/includes/core.php @@ -58,6 +58,9 @@ define('LS_TEXT_DOMAIN', 'ldapsaisie'); define('LS_I18N_DIR', 'lang'); define('LS_I18N_DIR_PATH', LS_ROOT_DIR.'/lang'); +// Version +define('LS_VERSION', '(git-dev)'); + require_once LS_ROOT_DIR.'/'.LS_INCLUDE_DIR.'functions.php'; require_once LS_ROOT_DIR.'/'.LS_CLASS_DIR.'class.LSsession.php'; diff --git a/src/templates/default/base_connected.tpl b/src/templates/default/base_connected.tpl index e1d9298a..f02b3821 100644 --- a/src/templates/default/base_connected.tpl +++ b/src/templates/default/base_connected.tpl @@ -59,4 +59,5 @@ + {/block}