2014-06-09 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_config.php, general/login_page.php: improved
the source code style.
* godmode/setup/os.builder.php: fixed the form.
* godmode/update_manager_xxx/*, godmode/menu.php,
include/functions_update_manager.php,
include/ajax/update_manager.ajax.php,
include/graphs/functions_gd.php, include/graphs/functions_flot.php,
include/config_process.php, include/javascript/update_manager.js,
include/javascript/jquery.knob.js,
include/javascript/jquery.iframe-transport.js,
include/javascript/jquery.fileupload.js, images/check-cross.png:
first version of new update manager.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10144 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-06-09 15:33:55 +02:00
< ? php
// Pandora FMS - http://pandorafms.com
// ==================================================
// Copyright (c) 2005-2011 Artica Soluciones Tecnologicas
// Please see http://pandorafms.org for full contribution list
// 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.
global $config ;
2014-06-10 16:56:15 +02:00
ui_require_css_file ( 'update_manager' , 'godmode/update_manager/' );
2014-06-10 14:57:17 +02:00
require_once ( " include/functions_update_manager.php " );
2014-06-09 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_config.php, general/login_page.php: improved
the source code style.
* godmode/setup/os.builder.php: fixed the form.
* godmode/update_manager_xxx/*, godmode/menu.php,
include/functions_update_manager.php,
include/ajax/update_manager.ajax.php,
include/graphs/functions_gd.php, include/graphs/functions_flot.php,
include/config_process.php, include/javascript/update_manager.js,
include/javascript/jquery.knob.js,
include/javascript/jquery.iframe-transport.js,
include/javascript/jquery.fileupload.js, images/check-cross.png:
first version of new update manager.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10144 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-06-09 15:33:55 +02:00
enterprise_include_once ( " include/functions_update_manager.php " );
2014-08-14 18:01:59 +02:00
$current_package = update_manager_get_current_package ();
2014-06-10 16:34:27 +02:00
echo " <p><b> " . sprintf ( __ ( " The last version of package installed is: %d " ),
$current_package ) . " </b></p> " ;
2014-06-26 17:00:43 +02:00
$memory_limit = ini_get ( " memory_limit " );
$memory_limit = str_replace ( " M " , " " , $memory_limit );
$memory_limit = ( int ) $memory_limit ;
2014-06-27 15:44:19 +02:00
if ( $memory_limit < 500 ) {
2014-06-26 17:00:43 +02:00
ui_print_error_message (
2014-06-27 15:44:19 +02:00
sprintf ( __ ( 'Your PHP has set memory limit in %s. For avoid problems with big updates please set to 500M' ), ini_get ( " memory_limit " ))
2014-06-26 17:00:43 +02:00
);
}
2014-06-09 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_config.php, general/login_page.php: improved
the source code style.
* godmode/setup/os.builder.php: fixed the form.
* godmode/update_manager_xxx/*, godmode/menu.php,
include/functions_update_manager.php,
include/ajax/update_manager.ajax.php,
include/graphs/functions_gd.php, include/graphs/functions_flot.php,
include/config_process.php, include/javascript/update_manager.js,
include/javascript/jquery.knob.js,
include/javascript/jquery.iframe-transport.js,
include/javascript/jquery.fileupload.js, images/check-cross.png:
first version of new update manager.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10144 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-06-09 15:33:55 +02:00
/* Translators: Do not translade Update Manager, it's the name of the program */
ui_print_info_message (
'<p>' .
__ ( 'The new <a href="http://updatemanager.sourceforge.net">Update Manager</a> client is shipped with Pandora FMS It helps system administrators to update their Pandora FMS automatically, since the Update Manager does the task of getting new modules, new plugins and new features (even full migrations tools for future versions) automatically.' ) .
'</p>' .
'<p>' .
__ ( 'Update Manager is one of the most advanced features of Pandora FMS Enterprise version, for more information visit <a href="http://pandorafms.com">http://pandorafms.com</a>.' ) .
'</p>' .
'<p>' .
__ ( 'Update Manager sends anonymous information about Pandora FMS usage (number of agents and modules running). To disable it, remove remote server address from Update Manager plugin setup.' ) .
'</p>' );
echo " <div id='box_online' style='text-align: center;'> " ;
echo " <span class='loading' style=''> " ;
echo " <img src='images/wait.gif' /> " ;
echo " </span> " ;
echo " <div class='checking_package' style='width:100%; text-align: center; display: none;'> " ;
echo __ ( 'Checking for the newest package.' );
echo " </div> " ;
echo " <div class='downloading_package' style='width:100%; text-align: center; display: none;'> " ;
echo __ ( 'Downloading for the newest package.' );
echo " </div> " ;
echo " <div class='content'></div> " ;
echo " <div class='progressbar' style='display: none;'><img class='progressbar_img' src='' /></div> " ;
echo " </div> " ;
$enterprise = enterprise_hook ( 'update_manager_enterprise_main' );
if ( $enterprise == ENTERPRISE_NOT_HOOK ) {
//Open view
update_manager_main ();
}
?>