array( 'active' => false, 'text' => '' . html_print_image ("images/god7.png", true, array ("title" => __('Update manager'))) .'')); ui_print_page_header (__('Update manager'), "images/extensions.png", false, "", false, $buttons); if (enterprise_installed()) { if (is_array($user_key)) { if (!$user_key['result']) { ui_print_error_message($user_key['message']); } } main_view_enterprise($settings, $user_key); } else { main_view_open($settings, $user_key); } } function main_view_enterprise($settings, $user_key) { global $config; require_once("debug.php"); print_debug_message_trace("Init Call main_view_enterprise function."); $update_package = (bool) get_parameter_post ('update_package'); if ($update_package) { print_debug_message_trace("Enter in update package."); if (enterprise_installed()) { $force = (bool) get_parameter_post ('force_update'); $success = um_client_upgrade_to_latest ($user_key, $force); /* TODO: Add a new in tnews */ ui_print_result_message($success, __('Success update to the last package.'), __('Error update to the last package.')); //Reload the update manager settings $settings = um_db_load_settings (); $user_key = get_user_key ($settings); if (is_array($user_key)) { if (!$user_key['result']) { ui_print_error_message($user_key['message']); } } } else { ui_print_error_message(__('This is an Enterprise feature. Visit %s for more information.', 'http://pandorafms.com')); } } if (!empty($_FILES)) { install_offline_enterprise_package($settings, $user_key); } echo '
' . __('The new Update Manager 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.') . '
' . '' . __('Update Manager is one of the most advanced features of Pandora FMS Enterprise version, for more information visit http://pandorafms.com.') . '
' . '' . __('Update Manager sends anonymous information about Pandora FMS usage (number of agents and modules running). To disable it, just delete extension or remove remote server address from Update Manager plugin setup.') . '
'); echo '