'.__('Extensions'). " » ". __('Update manager').''; if ($settings->customer_key == FREE_USER) { echo '
'; echo ' '; /* Translators: Do not translade Update Manager, it's the name of the program */ echo __('The new Update Manager client is shipped with Pandora FMS 3.0. 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.'); echo '

'; echo __('Update Manager is one of the most advanced features of Pandora FMS 3.0 Enterprise version, for more information visit http://pandorafms.com.'); echo '

'; echo __('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 '

'; } $user_key = get_user_key ($settings); $update_package = (bool) get_parameter_post ('update_package'); if ($update_package) { echo '

'.__('Updating').'...

'; flush (); $force = (bool) get_parameter_post ('force_update'); um_client_upgrade_to_latest ($user_key, $force); /* TODO: Add a new in tnews */ $settings = um_db_load_settings (); } $package = um_client_check_latest_update ($settings, $user_key); if (give_acl ($config['id_user'], 0, 'PM')) { if (is_int ($package) && $package == 1) { echo '
'.__('Your system is up-to-date').'.
'; } elseif ($package === false) { echo '
'.__('Server connection failed')."
"; } elseif (is_int ($package) && $package == 0) { echo '
'.__('Server authorization rejected')."
"; } else { echo '
'.__('There\'s a new update for Pandora FMS')."
"; $table->width = '80%'; $table->data = array (); $table->data[0][0] = ''.__('Id').''; $table->data[0][1] = $package->id; $table->data[1][0] = ''.__('Timestamp').''; $table->data[1][1] = $package->timestamp; $table->data[2][0] = ''.__('Description').''; $table->data[2][1] = html_entity_decode ($package->description); print_table ($table); echo '
'; echo '
'; echo __('Overwrite local changes'); print_checkbox ('force_update', '1', false); echo '

'; print_input_hidden ('update_package', 1); print_submit_button (__('Update'), 'update_button', false, 'class="sub upd"'); echo '

'; echo '
'; } } echo '

'.__('Your system version number is').': '.$settings->current_update.'

'; ?>