Show package version rather build version in footer (ext. fix update manager css) - #813

This commit is contained in:
enriquecd 2017-05-10 13:18:45 +02:00
parent 71f8f29107
commit 746eab7666
3 changed files with 12 additions and 4 deletions

View File

@ -15,7 +15,7 @@ if(!enterprise_installed()){
$open=true; $open=true;
} }
$tipo = $_GET['message']; $tipo = $_POST['message'];
echo " echo "
<div class='modalheader'> <div class='modalheader'>
@ -185,7 +185,7 @@ echo "
</div>"; </div>";
if($open){ if($open){
echo "<div class='modalgobutton gopandora'> echo "<div class='modalgobutton gopandora'>
<span class='modalokbuttontext'>About Enterprise</span> <span class='modalgobuttontext'>About Enterprise</span>
</div>"; </div>";
} }

View File

@ -32,7 +32,15 @@ if (!$config["MR"]) {
echo '<a class="white_bold footer" target="_blank" href="' . $config["homeurl"] . $license_file. '">'; echo '<a class="white_bold footer" target="_blank" href="' . $config["homeurl"] . $license_file. '">';
echo sprintf(__('Pandora FMS %s - Build %s - MR %s', $pandora_version, $build_version, $config["MR"])); if($current_package == 0){
$build_package_version = $build_version;
}
else{
$build_package_version = $current_package;
}
echo sprintf(__('Pandora FMS %s - Build %s - MR %s', $pandora_version, $build_package_version, $config["MR"]));
echo '</a><br />'; echo '</a><br />';
echo '<a class="white footer">'. __('Page generated at') . ' '. date('F j, Y h:i a'); //Always use timestamp here echo '<a class="white footer">'. __('Page generated at') . ' '. date('F j, Y h:i a'); //Always use timestamp here

View File

@ -147,7 +147,7 @@ var open = "<?php echo $open;?>";
if(open){ if(open){
$(document).ready(function() { $(document).ready(function() {
$('body').append( "<div id='opacidad' style='position:fixed;background:black;opacity:0.6;z-index:1'></div>" ); $('body').append( "<div id='opacidad' style='position:fixed;background:black;opacity:0.6;z-index:1'></div>" );
jQuery.get ("ajax.php", jQuery.post ("ajax.php",
{ {
"page": "general/alert_enterprise", "page": "general/alert_enterprise",
"message":"infomodal"}, "message":"infomodal"},