Add footer with LdapSaisie version

This commit is contained in:
Benjamin Renard 2021-07-08 10:39:09 +02:00
parent cc07f293ab
commit 9469103f0e
5 changed files with 15 additions and 0 deletions

2
debian/rules vendored
View file

@ -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

View file

@ -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
*/

View file

@ -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);
}
/**

View file

@ -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';

View file

@ -59,4 +59,5 @@
</td>
</tr>
</table>
<footer>LdapSaisie {$LS_VERSION}</footer>
{/block}