2008-08-21 23:07:20 +02:00
|
|
|
<?php
|
2008-10-11 21:00:18 +02:00
|
|
|
|
2009-06-08 20:26:14 +02:00
|
|
|
// Pandora FMS - http://pandorafms.com
|
|
|
|
// ==================================================
|
2011-03-17 Raul Mateos <raulofpandora@gmail.com>
* extensions/dbmanager.php, extensions/pandora_logs.php, general/*.php,
index.php, ajax.php, operation/search_*.php, operation/menu.php,
operation/extensions.php, godmode/menu.php, godmode/extensions.php,
admin_access_logs.php: Cleaned code and updated page disclaimers.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4108 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-17 23:01:01 +01:00
|
|
|
// Copyright (c) 2005-2011 Artica Soluciones Tecnologicas
|
|
|
|
// Please see http://pandorafms.org for full contribution list
|
2006-06-29 21:31:53 +02:00
|
|
|
// This program is free software; you can redistribute it and/or
|
2011-03-23 Raul Mateos <raulofpandora@gmail.com>
* extensions/ssh_console.php, extensions/vnc_view.php,
extensions/update_manager.php, extensions/users_connected.php,
extensions/extension_uploader.php, extensions/insert_data.php,
extensions/module_groups.php, extensions/plugin_registration.php,
extensions/agent_modules.php, extensions/resource_registration.php,
extensions/resource_exportation.php, extensions/dbmanager.php,
extensions/pandora_logs.php, general/*.php, ajax.php,
operation/search_*.php, operation/menu.php, operation/extensions.php,
godmode/menu.php, godmode/extensions.php, godmode/admin_access_logs.php:
CReverted unwanted license changes.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4126 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-23 17:13:28 +01:00
|
|
|
// modify it under the terms of the GNU General Public License
|
2011-03-17 Raul Mateos <raulofpandora@gmail.com>
* extensions/dbmanager.php, extensions/pandora_logs.php, general/*.php,
index.php, ajax.php, operation/search_*.php, operation/menu.php,
operation/extensions.php, godmode/menu.php, godmode/extensions.php,
admin_access_logs.php: Cleaned code and updated page disclaimers.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4108 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-17 23:01:01 +01:00
|
|
|
// as published by the Free Software Foundation; version 2
|
2008-04-01 15:53:11 +02:00
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2011-03-17 Raul Mateos <raulofpandora@gmail.com>
* extensions/dbmanager.php, extensions/pandora_logs.php, general/*.php,
index.php, ajax.php, operation/search_*.php, operation/menu.php,
operation/extensions.php, godmode/menu.php, godmode/extensions.php,
admin_access_logs.php: Cleaned code and updated page disclaimers.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4108 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-17 23:01:01 +01:00
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2008-04-01 15:53:11 +02:00
|
|
|
// 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-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
|
|
|
}
|
|
|
|
|
2019-02-25 11:54:46 +01: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();
|
|
|
|
|
2019-01-30 16:18:44 +01:00
|
|
|
if ($current_package == 0) {
|
|
|
|
$build_package_version = $build_version;
|
|
|
|
} else {
|
|
|
|
$build_package_version = $current_package;
|
2017-05-10 13:18:45 +02:00
|
|
|
}
|
|
|
|
|
2019-01-30 16:18:44 +01:00
|
|
|
echo sprintf(__('%s %s - Build %s - MR %s', get_product_name(), $pandora_version, $build_package_version, $config['MR']));
|
2017-02-14 09:36:11 +01:00
|
|
|
|
2019-02-25 11:54:46 +01:00
|
|
|
echo '</a> ';
|
|
|
|
echo '<a class="footer">'.__('Page generated at').' '.date($config['date_format']);
|
|
|
|
echo '</a><br /><span>® '.get_copyright_notice().'</span>';
|
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
|
|
|
}
|