mdtrooper b4c3ed60bc 2014-06-10 Miguel de Dios <miguel.dedios@artica.es>
* extensions/update_manager.php, extensions/update_manager/*,
	include/functions_config.php: remove the old update manager. Bye bye
	my old friend.
	
	* godmode/update_manager_xxx -> godmode/update_manager,
	godmode/update_manager/* -> godmode/update_manager/*,
	godmode/menu.php: rename
	the update manager.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10155 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2014-06-10 14:56:15 +00:00

51 lines
1.8 KiB
PHP

<?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;
$url_update_manager = get_parameter('url_update_manager',
$config['url_update_manager']);
$action_update_url_update_manager = (bool)get_parameter(
'action_update_url_update_manager', 0);
if ($action_update_url_update_manager) {
$result = config_update_value('url_update_manager',
$url_update_manager);
ui_print_result_message($result,
__('Succesful Update the url config vars.'),
__('Unsuccesful Update the url config vars.'));
}
echo '<form method="post" action="index.php?sec=gsetup&sec2=godmode/update_manager/update_manager_xxx&tab=setup">';
$table = null;
$table->width = '98%';
$table->style[0] = 'font-weight: bolder; vertical-align: top;';
$table->data[0][0] = __('URL update manager:');
$table->data[0][1] = html_print_input_text('url_update_manager',
$url_update_manager, __('URL update manager'), 40, 60, true);
html_print_input_hidden('action_update_url_update_manager', 1);
html_print_table($table);
echo '<div class="action-buttons" style="width: '.$table->width.'">';
html_print_submit_button (__('Update'), 'update_button', false,
'class="sub upd"');
echo '</div>';
echo '</form>';
?>