mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 15:54:29 +02:00
2011-07-27 Sergio Martin <sergio.matin@artica.es>
* include/functions_html.php godmode/reporting/reporting_builder.php godmode/reporting/reporting_builder.item_editor.php: Fixed several warnings of undeclared variables and use of not supported parameter of function strstr in php 3.2 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4630 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
fe0f580fa8
commit
c87fc9a807
@ -1,3 +1,11 @@
|
|||||||
|
2011-07-27 Sergio Martin <sergio.matin@artica.es>
|
||||||
|
|
||||||
|
* include/functions_html.php
|
||||||
|
godmode/reporting/reporting_builder.php
|
||||||
|
godmode/reporting/reporting_builder.item_editor.php: Fixed several
|
||||||
|
warnings of undeclared variables and use of not supported parameter
|
||||||
|
of function strstr in php 3.2
|
||||||
|
|
||||||
2011-07-27 Vanessa Gil <vanessa.gil@artica.es>
|
2011-07-27 Vanessa Gil <vanessa.gil@artica.es>
|
||||||
|
|
||||||
* operation/agentes/status_monitor.php: Update the monitor search with "Filter" button.
|
* operation/agentes/status_monitor.php: Update the monitor search with "Filter" button.
|
||||||
|
@ -33,11 +33,6 @@ if (enterprise_include_once ('include/functions_metaconsole.php')) {
|
|||||||
$servers = enterprise_hook("metaconsole_get_connection_names");
|
$servers = enterprise_hook("metaconsole_get_connection_names");
|
||||||
}
|
}
|
||||||
|
|
||||||
switch ($action) {
|
|
||||||
case 'new':
|
|
||||||
$actionParameter = 'save';
|
|
||||||
$type = get_parameter('type', 'SLA');
|
|
||||||
$period = 86400;
|
|
||||||
$idAgent = null;
|
$idAgent = null;
|
||||||
$idCustomGraph = null;
|
$idCustomGraph = null;
|
||||||
$text = null;
|
$text = null;
|
||||||
@ -46,9 +41,16 @@ switch ($action) {
|
|||||||
$url = null;
|
$url = null;
|
||||||
$field = null;
|
$field = null;
|
||||||
$line = null;
|
$line = null;
|
||||||
$description = null;
|
|
||||||
$sql = null;
|
|
||||||
$group = 0;
|
$group = 0;
|
||||||
|
$group_by_agent = 0;
|
||||||
|
$order_uptodown = 0;
|
||||||
|
$show_resume = 0;
|
||||||
|
$top_n = 0;
|
||||||
|
$top_n_value = 10;
|
||||||
|
$exception_condition = 0;
|
||||||
|
$exception_condition_value = 10;
|
||||||
|
$modulegroup = 0;
|
||||||
|
$period = 86400;
|
||||||
$only_display_wrong = 0;
|
$only_display_wrong = 0;
|
||||||
$monday = true;
|
$monday = true;
|
||||||
$tuesday = true;
|
$tuesday = true;
|
||||||
@ -59,17 +61,16 @@ switch ($action) {
|
|||||||
$sunday = true;
|
$sunday = true;
|
||||||
$time_from = '00:00';
|
$time_from = '00:00';
|
||||||
$time_to = '23:59';
|
$time_to = '23:59';
|
||||||
$group_by_agent = 0;
|
|
||||||
$order_uptodown = 0;
|
|
||||||
$show_resume = 0;
|
|
||||||
$top_n = 0;
|
|
||||||
$top_n_value = 10;
|
|
||||||
$exception_condition = 0;
|
|
||||||
$exception_condition_value = 10;
|
|
||||||
$show_graph = 0;
|
$show_graph = 0;
|
||||||
|
|
||||||
|
switch ($action) {
|
||||||
|
case 'new':
|
||||||
|
$actionParameter = 'save';
|
||||||
|
$type = get_parameter('type', 'SLA');
|
||||||
|
$description = null;
|
||||||
|
$sql = null;
|
||||||
$show_in_two_columns = 0;
|
$show_in_two_columns = 0;
|
||||||
$show_in_landscape = 0;
|
$show_in_landscape = 0;
|
||||||
$modulegroup = 0;
|
|
||||||
$server_name = '';
|
$server_name = '';
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
@ -155,7 +155,13 @@ switch ($action) {
|
|||||||
$resultOperationDB = (bool)db_process_sql_update('treport', array('name' => $reportName, 'id_group' => $idGroupReport, 'description' => $description), array('id_report' => $idReport));
|
$resultOperationDB = (bool)db_process_sql_update('treport', array('name' => $reportName, 'id_group' => $idGroupReport, 'description' => $description), array('id_report' => $idReport));
|
||||||
}
|
}
|
||||||
else if ($action == 'save') {
|
else if ($action == 'save') {
|
||||||
|
if($reportName != "" && $idGroupReport != "") {
|
||||||
$idOrResult = db_process_sql_insert('treport', array('name' => $reportName, 'id_group' => $idGroupReport, 'description' => $description));
|
$idOrResult = db_process_sql_insert('treport', array('name' => $reportName, 'id_group' => $idGroupReport, 'description' => $description));
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$idOrResult = false;
|
||||||
|
}
|
||||||
|
|
||||||
if ($idOrResult === false) {
|
if ($idOrResult === false) {
|
||||||
$resultOperationDB = false;
|
$resultOperationDB = false;
|
||||||
}
|
}
|
||||||
@ -213,7 +219,7 @@ switch ($action) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
$id_gs = strstr($values ['id_gs'], '|', true);
|
$id_gs = substr ($values['id_gs'], 0, strpos ($values['id_gs'], '|'));
|
||||||
if ($id_gs !== false) {
|
if ($id_gs !== false) {
|
||||||
$server_name = strstr($values ['id_gs'], '|');
|
$server_name = strstr($values ['id_gs'], '|');
|
||||||
$values ['id_gs'] = $id_gs;
|
$values ['id_gs'] = $id_gs;
|
||||||
@ -305,8 +311,7 @@ switch ($action) {
|
|||||||
$resultOperationDB = false;
|
$resultOperationDB = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
$id_gs = substr ($values['id_gs'], 0, strpos ($values['id_gs'], '|'));
|
||||||
$id_gs = strstr($values ['id_gs'], '|', true);
|
|
||||||
if ($id_gs !== false) {
|
if ($id_gs !== false) {
|
||||||
$server_name = strstr($values ['id_gs'], '|');
|
$server_name = strstr($values ['id_gs'], '|');
|
||||||
$values ['id_gs'] = $id_gs;
|
$values ['id_gs'] = $id_gs;
|
||||||
|
@ -299,7 +299,7 @@ function html_print_select ($fields, $name, $selected = '', $script = '', $nothi
|
|||||||
$output .= '>'.$nothing.'</option>';
|
$output .= '>'.$nothing.'</option>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty ($fields)) {
|
if (is_array($fields) && !empty ($fields)) {
|
||||||
if ($sort !== false) {
|
if ($sort !== false) {
|
||||||
asort ($fields);
|
asort ($fields);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user