Fixed an error that made impossible the connection with the metaconsole nodes
This commit is contained in:
parent
2a36e4b864
commit
42b8b97f82
|
@ -79,14 +79,15 @@ if ($get_module_detail) {
|
||||||
|
|
||||||
if (defined ('METACONSOLE')) {
|
if (defined ('METACONSOLE')) {
|
||||||
$server = metaconsole_get_connection ($server_name);
|
$server = metaconsole_get_connection ($server_name);
|
||||||
$conexion = mysql_connect ($server['dbhost'], $server['dbuser'],
|
|
||||||
$server['dbpass']);
|
if (metaconsole_connect($server) != NOERR)
|
||||||
$select_db = mysql_select_db ($server['dbname'], $conexion);
|
return;
|
||||||
|
$conexion = false;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$conexion = false;
|
$conexion = false;
|
||||||
}
|
}
|
||||||
|
html_debug_print($conexion, true);
|
||||||
$selection_mode = get_parameter('selection_mode', 'fromnow');
|
$selection_mode = get_parameter('selection_mode', 'fromnow');
|
||||||
$date_from = (string) get_parameter ('date_from', date ('Y-m-j'));
|
$date_from = (string) get_parameter ('date_from', date ('Y-m-j'));
|
||||||
$time_from = (string) get_parameter ('time_from', date ('h:iA'));
|
$time_from = (string) get_parameter ('time_from', date ('h:iA'));
|
||||||
|
@ -266,6 +267,7 @@ if ($get_module_detail) {
|
||||||
html_print_table($table);
|
html_print_table($table);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
metaconsole_restore_db();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue