common version text

This commit is contained in:
Roland Gruber 2019-05-12 09:50:23 +02:00
parent 2924e3e652
commit 99da1f05e6
9 changed files with 40 additions and 20 deletions

View File

@ -1706,6 +1706,19 @@ function convertUtf8ToUtf16Le($input) {
return $output;
}
/**
* Returns the text with LAM and its version for header area.
*
* @return string LAM version text
*/
function getLAMVersionText() {
$text = 'LDAP Account Manager';
if (isLAMProVersion()) {
$text .= ' Pro';
}
return $text . ' - ' . LAMVersion();
}
/**
* LAM exception with title and message.
*

View File

@ -3,7 +3,7 @@ namespace LAM\HEADER;
/*
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2018 Roland Gruber
Copyright (C) 2018 - 2019 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -93,9 +93,8 @@ foreach ($toSort as $key => $value) {
<a class="lamLogo" href="https://www.ldap-account-manager.org/" target="new_window">
<span class="hide-on-tablet">&nbsp;</span>
<span class="hide-on-mobile">
LDAP Account Manager
<?php
echo $pro . " - " . LAMVersion();
echo getLAMVersionText();
?>
</span>
</a>

View File

@ -2,7 +2,7 @@
namespace LAM\CONFIG;
/*
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2017 - 2018 Roland Gruber
Copyright (C) 2017 - 2019 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -60,7 +60,9 @@ function printConfigurationPageHeaderBar($conf) {
<table border=0 width="100%" class="lamHeader ui-corner-all">
<tr>
<td align="left" height="30">
<a class="lamLogo" href="http://www.ldap-account-manager.org/" target="new_window">LDAP Account Manager</a>
<a class="lamLogo" href="http://www.ldap-account-manager.org/" target="new_window">
<?php echo getLAMVersionText(); ?>
</a>
</td>
<td align="right">
<?php echo _('Server profile') . ': ' . $conf->getName(); ?>

View File

@ -12,7 +12,7 @@ use \htmlResponsiveInputField;
use \htmlHorizontalLine;
/*
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2003 - 2018 Roland Gruber
Copyright (C) 2003 - 2019 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -83,7 +83,9 @@ $tabindex = 1;
<table border=0 width="100%" class="lamHeader ui-corner-all">
<tr>
<td align="left" height="30">
<a class="lamLogo" href="http://www.ldap-account-manager.org/" target="new_window">LDAP Account Manager</a>
<a class="lamLogo" href="http://www.ldap-account-manager.org/" target="new_window">
<?php echo getLAMVersionText(); ?>
</a>
</td>
</tr>
</table>

View File

@ -2,7 +2,7 @@
/*
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2003 - 2018 Roland Gruber
Copyright (C) 2003 - 2019 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -48,7 +48,9 @@ printHeaderContents(_("Configuration overview"), '../..');
<table class="lamTop ui-corner-all">
<tr>
<td align="left">
<a class="lamLogo" href="http://www.ldap-account-manager.org/" target="new_window">LDAP Account Manager</a>
<a class="lamLogo" href="http://www.ldap-account-manager.org/" target="new_window">
<?php echo getLAMVersionText(); ?>
</a>
</td>
</tr>
</table>

View File

@ -2,7 +2,7 @@
/*
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2003 - 2018 Roland Gruber
Copyright (C) 2003 - 2019 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -86,7 +86,9 @@ printHeaderContents(_("Login"), '../..');
<table border=0 width="100%" class="lamHeader ui-corner-all">
<tr>
<td align="left" height="30">
<a class="lamLogo" href="http://www.ldap-account-manager.org/" target="new_window">LDAP Account Manager</a>
<a class="lamLogo" href="http://www.ldap-account-manager.org/" target="new_window">
<?php echo getLAMVersionText(); ?>
</a>
</td>
</tr>
</table>

View File

@ -275,7 +275,9 @@ printHeaderContents(_("Edit general settings"), '../..');
<table border=0 width="100%" class="lamHeader ui-corner-all">
<tr>
<td align="left" height="30">
<a class="lamLogo" href="http://www.ldap-account-manager.org/" target="new_window">LDAP Account Manager</a>
<a class="lamLogo" href="http://www.ldap-account-manager.org/" target="new_window">
<?php echo getLAMVersionText(); ?>
</a>
</td>
</tr>
</table>

View File

@ -16,7 +16,7 @@ use \htmlLink;
/*
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2003 - 2018 Roland Gruber
Copyright (C) 2003 - 2019 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -164,7 +164,9 @@ printHeaderContents(_("Profile management"), '../..');
<table border=0 width="100%" class="lamHeader ui-corner-all">
<tr>
<td align="left" height="30">
<a class="lamLogo" href="http://www.ldap-account-manager.org/" target="new_window">LDAP Account Manager</a>
<a class="lamLogo" href="http://www.ldap-account-manager.org/" target="new_window">
<?php echo getLAMVersionText(); ?>
</a>
</td>
</tr>
</table>

View File

@ -18,7 +18,7 @@ use \htmlDiv;
This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
Copyright (C) 2003 - 2006 Michael Duergner
2005 - 2018 Roland Gruber
2005 - 2019 Roland Gruber
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -218,12 +218,8 @@ function display_LoginPage($licenseValidator, $error_message) {
<tr>
<td align="left" height="30" width="34%">
<a class="lamLogo" href="http://www.ldap-account-manager.org/" target="new_window">
LAM
<?php
if (isLAMProVersion()) {
echo 'Pro ';
}
echo ' - ' . LAMVersion();
echo getLAMVersionText();
?>
</a>
</td>