2008-08-21 23:07:20 +02:00
|
|
|
<?php
|
2008-10-11 21:00:18 +02:00
|
|
|
|
2019-02-26 10:43:59 +01:00
|
|
|
/**
|
2023-06-08 13:19:01 +02:00
|
|
|
* Pandora FMS - https://pandorafms.com
|
2019-02-26 10:43:59 +01:00
|
|
|
* ==================================================
|
2023-06-08 11:53:13 +02:00
|
|
|
* Copyright (c) 2005-2023 Pandora FMS
|
2023-06-08 13:19:01 +02:00
|
|
|
* Please see https://pandorafms.com/community/ for full contribution list
|
2019-02-26 10:43:59 +01:00
|
|
|
* 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 the Free Software Foundation; version 2
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*/
|
|
|
|
|
2008-08-21 23:07:20 +02:00
|
|
|
if (isset($_SERVER['REQUEST_TIME'])) {
|
2019-01-30 16:18:44 +01:00
|
|
|
$time = $_SERVER['REQUEST_TIME'];
|
|
|
|
} else {
|
|
|
|
$time = get_system_time();
|
2008-08-21 23:07:20 +02:00
|
|
|
}
|
2008-09-02 18:08:11 +02:00
|
|
|
|
2019-05-30 18:21:13 +02:00
|
|
|
ui_require_css_file('footer');
|
|
|
|
|
2019-01-30 16:18:44 +01:00
|
|
|
$license_file = 'general/license/pandora_info_'.$config['language'].'.html';
|
|
|
|
if (! file_exists($config['homedir'].$license_file)) {
|
|
|
|
$license_file = 'general/license/pandora_info_en.html';
|
2010-06-09 11:45:55 +02:00
|
|
|
}
|
|
|
|
|
2019-01-30 16:18:44 +01:00
|
|
|
if (!$config['MR']) {
|
|
|
|
$config['MR'] = 0;
|
2016-06-01 14:43:31 +02:00
|
|
|
}
|
|
|
|
|
2022-05-23 13:00:01 +02:00
|
|
|
if (isset($config['lts_name']) === false) {
|
|
|
|
$config['lts_name'] = '';
|
|
|
|
}
|
|
|
|
|
2021-06-10 10:19:11 +02:00
|
|
|
echo '<a class="footer"target="_blank" href="'.$config['homeurl'].$license_file.'">';
|
2017-02-14 09:36:11 +01:00
|
|
|
|
2019-01-30 16:18:44 +01:00
|
|
|
require_once $config['homedir'].'/include/functions_update_manager.php';
|
2017-06-08 10:22:59 +02:00
|
|
|
|
|
|
|
$current_package = update_manager_get_current_package();
|
|
|
|
|
2021-06-14 13:56:42 +02:00
|
|
|
if ($current_package === null) {
|
|
|
|
$build_package_version = 'Build '.$build_version;
|
2019-01-30 16:18:44 +01:00
|
|
|
} else {
|
2021-06-14 13:56:42 +02:00
|
|
|
$build_package_version = 'OUM '.$current_package;
|
2017-05-10 13:18:45 +02:00
|
|
|
}
|
|
|
|
|
2019-05-30 18:21:13 +02:00
|
|
|
echo __(
|
2021-06-14 13:56:42 +02:00
|
|
|
'%s %s - %s - MR %s',
|
2019-05-30 18:21:13 +02:00
|
|
|
get_product_name(),
|
2022-05-23 13:00:01 +02:00
|
|
|
$pandora_version.' '.$config['lts_name'],
|
2019-05-30 18:21:13 +02:00
|
|
|
$build_package_version,
|
|
|
|
$config['MR']
|
2021-06-10 10:19:11 +02:00
|
|
|
).'</a><br><span>'.__('Page generated on %s', date('Y-m-d H:i:s')).'</span><br>';
|
2019-05-30 18:21:13 +02:00
|
|
|
|
2017-02-14 09:36:11 +01:00
|
|
|
|
2017-03-10 17:42:55 +01:00
|
|
|
|
2019-01-30 16:18:44 +01:00
|
|
|
if (isset($config['debug'])) {
|
|
|
|
$cache_info = [];
|
|
|
|
$cache_info = db_get_cached_queries();
|
|
|
|
echo ' - Saved '.$cache_info[0].' Queries';
|
2008-08-21 23:07:20 +02:00
|
|
|
}
|