2009-01-14 Sancho Lerena <slerena@artica.es>

* operation/servers/view_server_detail.php: Fixed missing parameter.
        Probably because function interface change.

        * pandoradb_migrate_20_to_21.sql: Added some ALTER table sentences
        was missing.

        * general/login_page.php: Fixed typo.

        * godmode/menu.php: Bad page rendered for module manage. Fixed.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1343 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
slerena 2009-01-14 18:51:17 +00:00
parent 106067f3b6
commit 466dc5be76
5 changed files with 29 additions and 4 deletions

View File

@ -1,3 +1,15 @@
2009-01-14 Sancho Lerena <slerena@artica.es>
* operation/servers/view_server_detail.php: Fixed missing parameter.
Probably because function interface change.
* pandoradb_migrate_20_to_21.sql: Added some ALTER table sentences
was missing.
* general/login_page.php: Fixed typo.
* godmode/menu.php: Bad page rendered for module manage. Fixed.
2009-01-14 Evi Vanoost <vanooste@rcbi.rochester.edu> 2009-01-14 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/functions_db.php: New functions process_sql_insert and * include/functions_db.php: New functions process_sql_insert and

View File

@ -40,7 +40,7 @@ echo '<tr><td rowspan="3" align="left" style="border-right: solid 1px #678;">';
if (!empty ($page) && !empty ($sec)) { if (!empty ($page) && !empty ($sec)) {
foreach ($_POST as $key => $value) { foreach ($_POST as $key => $value) {
print_input_hidden ($key, $vale); print_input_hidden ($key, $value);
} }
} }

View File

@ -44,7 +44,7 @@ if (give_acl ($config['id_user'], 0, "AW")) {
} }
if (give_acl ($config['id_user'], 0, "PM")) { if (give_acl ($config['id_user'], 0, "PM")) {
$menu["gmodules"]["text"] = __('Manage modules'); $menu["gmodules"]["text"] = __('Manage modules');
$menu["gmodules"]["sec2"] = "godmode/agentes/modificar_agente"; $menu["gmodules"]["sec2"] = "godmode/modules/module_list";
$menu["gmodules"]["id"] = "god-modules"; $menu["gmodules"]["id"] = "god-modules";
$sub = array (); $sub = array ();

View File

@ -52,11 +52,12 @@ echo "<h2>". __('Configuration detail') . " - ".$server_name;
echo '&nbsp;<a href="index.php?sec=estado_server&sec2=operation/servers/view_server_detail&server_id='.$id_server.'"><img src="images/refresh.png" /></a>'; echo '&nbsp;<a href="index.php?sec=estado_server&sec2=operation/servers/view_server_detail&server_id='.$id_server.'"><img src="images/refresh.png" /></a>';
echo "</h2>"; echo "</h2>";
// Show network tasks for Recon Server // Show network tasks for Recon Server
if ($recon_tasks === false) { if ($recon_tasks === false) {
$recon_tasks = array (); $recon_tasks = array ();
}
}
$table->cellpadding = 4; $table->cellpadding = 4;
$table->cellspacing = 4; $table->cellspacing = 4;
$table->width = 725; $table->width = 725;
@ -119,7 +120,7 @@ foreach ($recon_tasks as $task) {
$data[6] = print_group_icon ($task["id_group"], true); $data[6] = print_group_icon ($task["id_group"], true);
$data[7] = print_os_icon ($task["id_os"], true); $data[7] = print_os_icon ($task["id_os"], false, true);
if ($task["status"] < 0 || $task["status"] > 100) { if ($task["status"] < 0 || $task["status"] > 100) {
$data[8] = "-"; $data[8] = "-";

View File

@ -1,3 +1,7 @@
ALTER TABLE tagente ADD `custom_id` varchar(255) default '';
ALTER TABLE tagente_modulo ADD `custom_id` varchar(255) default '';
ALTER TABLE tgrupo ADD `custom_id` varchar(255) default '';
ALTER TABLE `tagente_datos` DROP INDEX `data_index2`; ALTER TABLE `tagente_datos` DROP INDEX `data_index2`;
ALTER TABLE `tagente_datos` DROP `timestamp`, DROP `id_agente`; ALTER TABLE `tagente_datos` DROP `timestamp`, DROP `id_agente`;
ALTER TABLE `tagente_datos_inc` DROP `timestamp`; ALTER TABLE `tagente_datos_inc` DROP `timestamp`;
@ -17,6 +21,14 @@ DEFAULT '0', ADD `min_critical` DOUBLE( 18, 2 ) NOT NULL DEFAULT
`min_ff_event` INT( 4 ) UNSIGNED NOT NULL DEFAULT '0', ADD `min_ff_event` INT( 4 ) UNSIGNED NOT NULL DEFAULT '0', ADD
`delete_pending` INT( 1 ) UNSIGNED NOT NULL DEFAULT '0'; `delete_pending` INT( 1 ) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `tagente_modulo` ADD `min_warning` double(18,2) default 0;
ALTER TABLE `tagente_modulo` ADD `max_warning` double(18,2) default 0;
ALTER TABLE `tagente_modulo` ADD `min_critical` double(18,2) default 0;
ALTER TABLE `tagente_modulo` ADD `max_critical` double(18,2) default 0;
ALTER TABLE `tagente_modulo` ADD `min_ff_event` int(4) unsigned default '0';
ALTER TABLE tagente_modulo ADD `delete_pending` int(1) unsigned default 0;
ALTER TABLE `tagente_modulo` DROP INDEX `tam_plugin`; ALTER TABLE `tagente_modulo` DROP INDEX `tam_plugin`;
ALTER TABLE `tagente_modulo` DROP PRIMARY KEY , ADD PRIMARY KEY ALTER TABLE `tagente_modulo` DROP PRIMARY KEY , ADD PRIMARY KEY
( `id_agente_modulo` ); ( `id_agente_modulo` );