diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 5d7be09f3a..cf3a971046 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,11 @@ +2011-03-02 Raul Mateos + + * include/functions*.php: Updated year in files changed this year. Also + changed spaces to tabs. + + * pandora_console_install, pandora_console_upgrade, + pandora.data.postgreSQL.sql, pandoradb_data.sql + 2011-03-02 Miguel de Dios * pandoradb.data.postgreSQL.sql: fixed the serial values. diff --git a/pandora_console/include/api.php b/pandora_console/include/api.php index 9e3e9b1022..ff48f7cd4d 100644 --- a/pandora_console/include/api.php +++ b/pandora_console/include/api.php @@ -1,7 +1,7 @@ diff --git a/pandora_console/include/functions_alerts.php b/pandora_console/include/functions_alerts.php index 6d3cac9dfe..9466fe9258 100644 --- a/pandora_console/include/functions_alerts.php +++ b/pandora_console/include/functions_alerts.php @@ -2,7 +2,7 @@ // Pandora FMS - http://pandorafms.com // ================================================== -// Copyright (c) 2005-2010 Artica Soluciones Tecnologicas +// 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 diff --git a/pandora_console/include/functions_config.php b/pandora_console/include/functions_config.php index 55175ef1be..18713b9dd8 100644 --- a/pandora_console/include/functions_config.php +++ b/pandora_console/include/functions_config.php @@ -1,7 +1,7 @@ 0) - if (!isset($groups[$graph["id_group"]])){ - continue; - } + if (!isset($groups[$graph["id_group"]])){ + continue; + } if ($only_names) { $graphs[$graph['id_graph']] = $graph['name']; diff --git a/pandora_console/include/functions_db.php b/pandora_console/include/functions_db.php index f7b442cc4c..de5eb84e73 100644 --- a/pandora_console/include/functions_db.php +++ b/pandora_console/include/functions_db.php @@ -2,7 +2,7 @@ // Pandora FMS - http://pandorafms.com // ================================================== -// Copyright (c) 2005-2010 Artica Soluciones Tecnologicas +// 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 diff --git a/pandora_console/include/functions_events.php b/pandora_console/include/functions_events.php index cfa2810c66..296e543306 100644 --- a/pandora_console/include/functions_events.php +++ b/pandora_console/include/functions_events.php @@ -2,7 +2,7 @@ // Pandora FMS - http://pandorafms.com // ================================================== -// Copyright (c) 2005-2010 Artica Soluciones Tecnologicas +// 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 diff --git a/pandora_console/include/functions_extensions.php b/pandora_console/include/functions_extensions.php index d8178f951a..c6a9759817 100644 --- a/pandora_console/include/functions_extensions.php +++ b/pandora_console/include/functions_extensions.php @@ -2,7 +2,7 @@ // Pandora FMS - http://pandorafms.com // ================================================== -// Copyright (c) 2005-2010 Artica Soluciones Tecnologicas +// 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 diff --git a/pandora_console/include/functions_filemanager.php b/pandora_console/include/functions_filemanager.php index 4219f0f1e3..36b0109ee9 100644 --- a/pandora_console/include/functions_filemanager.php +++ b/pandora_console/include/functions_filemanager.php @@ -2,7 +2,7 @@ // Pandora FMS - http://pandorafms.com // ================================================== -// Copyright (c) 2005-2010 Artica Soluciones Tecnologicas +// 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 @@ -183,7 +183,7 @@ if ($create_text_file) { $config['filemanager'] = array(); $config['filemanager']['correct_upload_file'] = 0; - $config['filemanager']['message'] = null; + $config['filemanager']['message'] = null; check_login (); @@ -254,7 +254,7 @@ if ($upload_zip) { $testHash = md5($real_directory . $directory . $config['dbpass']); if ($hash != $testHash) { - $config['filemanager']['message'] = "

".__('Security error.')."

"; + $config['filemanager']['message'] = "

".__('Security error.')."

"; } else { // Copy file to directory and change name @@ -265,7 +265,7 @@ if ($upload_zip) { $nombre_archivo = $config['homedir'].'/'.$directory.'/'.$filename; } if (! @copy ($_FILES['file']['tmp_name'], $nombre_archivo )) { - $config['filemanager']['message'] = "

".__('attach_error').""; + $config['filemanager']['message'] = "

".__('attach_error')."

"; } else { // Delete temporal file @@ -369,8 +369,8 @@ function delete_directory($dir) { unlink($dir . $file); } - } - } + } + } closedir($handle); rmdir($dir); } @@ -620,7 +620,7 @@ function file_explorer($real_directory, $relative_directory, $url, $father = '', echo ""; echo print_image('images/mimetypes/text.png', true); echo ""; - echo ""; + echo ""; echo print_image('images/mimetypes/unknown.png', true); echo ""; echo ""; diff --git a/pandora_console/include/functions_fsgraph.php b/pandora_console/include/functions_fsgraph.php index 786a7fe9d6..fd84e7a2be 100644 --- a/pandora_console/include/functions_fsgraph.php +++ b/pandora_console/include/functions_fsgraph.php @@ -2,7 +2,7 @@ // Pandora FMS - http://pandorafms.com // ================================================== -// Copyright (c) 2010 Artica Soluciones Tecnologicas +// Copyright (c) 2011 Artica Soluciones Tecnologicas // Please see http://pandorafms.org for full contribution list // This program is free software; you can redistribute it and/or @@ -134,36 +134,36 @@ function fs_2d_area_chart ($data, $width, $height, $step = 1, $params = '') { function fs_module_chart ($data, $width, $height, $avg_only = 1, $step = 10, $time_format = 'G:i', $show_events = 0, $show_alerts = 0, $caption = '', $baseline = 0) { global $config; - $graph_type = "MSArea2D"; //MSLine is possible also + $graph_type = "MSArea2D"; //MSLine is possible also // Generate the XML $chart = new FusionCharts($graph_type, $width, $height); $num_vlines = 0; $count = 0; - // NO caption needed (graph avg/max/min stats are in the legend now) - /* + // NO caption needed (graph avg/max/min stats are in the legend now) + /* if ($caption != '') { $chart->setChartParam("caption", $caption); } - */ + */ - $total_max = 0; - $total_avg = 0; - $total_min = 0; + $total_max = 0; + $total_avg = 0; + $total_min = 0; // Create categories foreach ($data as $value) { - $total_avg +=$value["sum"]; + $total_avg +=$value["sum"]; + + if ($avg_only != 1){ + if ($value["max"] > $total_max) + $total_max =$value["max"]; + if ($value["min"] < $total_min) + $total_min =$value["min"]; + } - if ($avg_only != 1){ - if ($value["max"] > $total_max) - $total_max =$value["max"]; - if ($value["min"] < $total_min) - $total_min =$value["min"]; - } - if ($count++ % $step == 0) { $show_name = '1'; $num_vlines++; @@ -173,13 +173,13 @@ function fs_module_chart ($data, $width, $height, $avg_only = 1, $step = 10, $ti $chart->addCategory(date($time_format, $value['timestamp_bottom']), 'hoverText=' . date (html_entity_decode ($config['date_format'], ENT_QUOTES, "UTF-8"), $value['timestamp_bottom']) . ';showName=' . $show_name); } - if ($count > 0) - $total_avg = format_for_graph($total_avg / $count); - else - $total_avg = 0; + if ($count > 0) + $total_avg = format_for_graph($total_avg / $count); + else + $total_avg = 0; - $total_min = format_for_graph ($total_min); - $total_max = format_for_graph ($total_max); + $total_min = format_for_graph ($total_min); + $total_max = format_for_graph ($total_max); // Event chart if ($show_events == 1) { @@ -294,23 +294,23 @@ function fs_combined_chart ($data, $categories, $sets, $width, $height, $type = // Stack charts $empty = 1; - $prev = array(); + $prev = array(); for ($i = 0; $i < sizeof ($data); $i++) { - $chart->addDataSet ($sets[$i]); + $chart->addDataSet ($sets[$i]); foreach ($data[$i] as $indice => $value) { - // Custom code to do the stack lines, because library doesn't do itself - if ($type == 3){ - if ($i > 0){ - $prev[$indice] = $prev[$indice] + $value; - } else { - $prev[$indice] = $value; - } - $myvalue = $prev[$indice]; - $chart->addChartData($myvalue); - } else { - $chart->addChartData($value); - } - } + // Custom code to do the stack lines, because library doesn't do itself + if ($type == 3){ + if ($i > 0){ + $prev[$indice] = $prev[$indice] + $value; + } else { + $prev[$indice] = $value; + } + $myvalue = $prev[$indice]; + $chart->addChartData($myvalue); + } else { + $chart->addChartData($value); + } + } } diff --git a/pandora_console/include/functions_gis.php b/pandora_console/include/functions_gis.php index a99b98356a..cbbebfe5c5 100644 --- a/pandora_console/include/functions_gis.php +++ b/pandora_console/include/functions_gis.php @@ -1,7 +1,8 @@ function escapeHTML (str) { - var div = document.createElement('div'); - var text = document.createTextNode(str); - div.appendChild(text); - return div.innerHTML; + var div = document.createElement('div'); + var text = document.createTextNode(str); + div.appendChild(text); + return div.innerHTML; }; $(document).ready (function () { diff --git a/pandora_console/include/functions_menu.php b/pandora_console/include/functions_menu.php index 32a90958d7..6d71f8926c 100644 --- a/pandora_console/include/functions_menu.php +++ b/pandora_console/include/functions_menu.php @@ -2,7 +2,7 @@ // Pandora FMS - http://pandorafms.com // ================================================== -// Copyright (c) 2005-2010 Artica Soluciones Tecnologicas +// 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 diff --git a/pandora_console/include/functions_modules.php b/pandora_console/include/functions_modules.php index a9e8c3abd0..a911eaffb8 100644 --- a/pandora_console/include/functions_modules.php +++ b/pandora_console/include/functions_modules.php @@ -2,7 +2,7 @@ // Pandora FMS - http://pandorafms.com // ================================================== -// Copyright (c) 2005-2010 Artica Soluciones Tecnologicas +// 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 diff --git a/pandora_console/include/functions_networkmap.php b/pandora_console/include/functions_networkmap.php index 84865e3c8b..47d3d5b656 100644 --- a/pandora_console/include/functions_networkmap.php +++ b/pandora_console/include/functions_networkmap.php @@ -2,7 +2,7 @@ // Pandora FMS - http://pandorafms.com // ================================================== -// Copyright (c) 2005-2010 Artica Soluciones Tecnologicas +// 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 diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index 9789cd1d12..3d73603492 100644 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -2,7 +2,7 @@ // Pandora FMS - http://pandorafms.com // ================================================== -// Copyright (c) 2005-2010 Artica Soluciones Tecnologicas +// 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 @@ -397,32 +397,32 @@ function get_agentmodule_sla ($id_agent_module, $period = 0, $min_value = 1, $ma $days = array(); //Translate to mysql week days - if ($daysWeek) - foreach ($daysWeek as $key => $value) { - if (!$value) { - if ($key == 'monday') { - $days[] = 2; - } - if ($key == 'tuesday') { - $days[] = 3; - } - if ($key == 'wednesday') { - $days[] = 4; - } - if ($key == 'thursday') { - $days[] = 5; - } - if ($key == 'friday') { - $days[] = 6; - } - if ($key == 'saturday') { - $days[] = 7; - } - if ($key == 'sunday') { - $days[] = 1; + if ($daysWeek) + foreach ($daysWeek as $key => $value) { + if (!$value) { + if ($key == 'monday') { + $days[] = 2; + } + if ($key == 'tuesday') { + $days[] = 3; + } + if ($key == 'wednesday') { + $days[] = 4; + } + if ($key == 'thursday') { + $days[] = 5; + } + if ($key == 'friday') { + $days[] = 6; + } + if ($key == 'saturday') { + $days[] = 7; + } + if ($key == 'sunday') { + $days[] = 1; + } } } - } if (count($days) > 0) { $sql .= ' AND DAYOFWEEK(FROM_UNIXTIME(utimestamp)) NOT IN (' . implode(',', $days) . ')'; @@ -2020,8 +2020,8 @@ function render_report_html_item ($content, $table, $report, $mini = false) { $sql = safe_output_html ($content['external_source']); } - // Do a security check on SQL coming from the user - $sql = check_sql ($sql); + // Do a security check on SQL coming from the user + $sql = check_sql ($sql); if($sql != '') { $result = get_db_all_rows_sql($sql); @@ -2052,8 +2052,8 @@ function render_report_html_item ($content, $table, $report, $mini = false) { break; case 'sql_graph_pie': - case 'sql_graph_vbar': - case 'sql_graph_hbar': + case 'sql_graph_vbar': + case 'sql_graph_hbar': $data = array(); $data[0] = $sizh. __('User defined graph') . " (".__($content["type"]) .")". $sizhfin; array_push ($table->data, $data); @@ -2075,7 +2075,7 @@ function render_report_html_item ($content, $table, $report, $mini = false) { if ($content['header_definition'] != '') { $table2->head = explode('|', $content['header_definition']); } - + $data = array (); $data[0] = ''; diff --git a/pandora_console/include/functions_reports.php b/pandora_console/include/functions_reports.php index bd7660b962..0e88517867 100644 --- a/pandora_console/include/functions_reports.php +++ b/pandora_console/include/functions_reports.php @@ -2,7 +2,7 @@ // Pandora FMS - http://pandorafms.com // ================================================== -// Copyright (c) 2005-2009 Artica Soluciones Tecnologicas +// 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 @@ -74,7 +74,7 @@ function get_reports ($filter = false, $fields = false, $returnAllGroup = true, $fields[] = 'id_user'; } - $groups = get_user_groups ($config['id_user'], $privileges, $returnAllGroup); + $groups = get_user_groups ($config['id_user'], $privileges, $returnAllGroup); $reports = array (); $all_reports = @get_db_all_rows_filter ('treport', $filter, $fields); diff --git a/pandora_console/include/functions_themes.php b/pandora_console/include/functions_themes.php index 75b9072773..97194b4419 100644 --- a/pandora_console/include/functions_themes.php +++ b/pandora_console/include/functions_themes.php @@ -2,7 +2,7 @@ // Pandora FMS - http://pandorafms.com // ================================================== -// Copyright (c) 2005-2009 Artica Soluciones Tecnologicas +// 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 diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index e4a9a339ea..44580b5e17 100644 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -2,7 +2,7 @@ // Pandora FMS - http://pandorafms.com // ================================================== -// Copyright (c) 2005-2009 Artica Soluciones Tecnologicas +// 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 @@ -384,7 +384,7 @@ function print_agent_name ($id_agent, $return = false, $cutoff = 0, $style = '', */ function format_alert_row ($alert, $compound = false, $agent = true, $url = '') { - $actionText = ""; + $actionText = ""; require_once ("include/functions_alerts.php"); $isFunctionPolicies = enterprise_include_once ('include/functions_policies.php'); @@ -956,7 +956,7 @@ function process_page_head ($string, $bitfield) { * @param string Callback will fill this with the current buffer. * @param bitfield Callback will fill this with a bitfield (see ob_start) * - * @return string String to return to the browser + * @return string String to return to the browser */ function process_page_body ($string, $bitfield) { global $config; @@ -1158,8 +1158,8 @@ function debug ($var, $backtrace = true) { foreach ($traces as $trace) { $trace_id++; - /* Many classes are used to allow better customization. Please, do not - remove them */ + /* Many classes are used to allow better customization. + Please, do not remove them */ echo '
  • '; if (isset ($trace['class'])) echo ''.$trace['class'].''; diff --git a/pandora_console/include/functions_visual_map.php b/pandora_console/include/functions_visual_map.php index 5c1876ebbb..1e746d500b 100644 --- a/pandora_console/include/functions_visual_map.php +++ b/pandora_console/include/functions_visual_map.php @@ -2,7 +2,7 @@ // Pandora FMS - http://pandorafms.com // ================================================== -// Copyright (c) 2005-2009 Artica Soluciones Tecnologicas +// 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 @@ -410,7 +410,7 @@ function print_pandora_visual_map ($id_layout, $show_links = true, $draw_lines = echo '
    '; - echo ""; + echo ""; $layout_datas = get_db_all_rows_field_filter ('tlayout_data', 'id_layout', $id_layout); $lines = array (); diff --git a/pandora_console/include/pchart_graph.php b/pandora_console/include/pchart_graph.php index 3ff45c6e6a..4d68b62257 100644 --- a/pandora_console/include/pchart_graph.php +++ b/pandora_console/include/pchart_graph.php @@ -2,7 +2,7 @@ // Pandora FMS - http://pandorafms.com // ================================================== -// Copyright (c) 2005-2009 Artica Soluciones Tecnologicas +// 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 @@ -213,11 +213,11 @@ class PchartGraph extends PandoraGraphAbstract { } // White background - $this->graph->drawFilledRoundedRectangle(1,1,$this->width,$this->height+2,0,254,254,254); + $this->graph->drawFilledRoundedRectangle(1,1,$this->width,$this->height+2,0,254,254,254); // Graph border // Now graph border is in the style image attribute - //$this->graph->drawRoundedRectangle(1,1,$this->width-1,$this->height+4,5,230,230,230); + //$this->graph->drawRoundedRectangle(1,1,$this->width-1,$this->height+4,5,230,230,230); $this->add_background (); @@ -302,21 +302,21 @@ class PchartGraph extends PandoraGraphAbstract { $this->dataset = new pData; $this->graph = new pChart ($this->width, $this->height+5); - $graph_items = 0; + $graph_items = 0; // $previo stores values from last series to made the stacked graph foreach ($this->data as $i => $data) { - $graph_items++; - $max = 0; - $min = 10000000000000; - $avg = 0; - $count = 0; + $graph_items++; + $max = 0; + $min = 10000000000000; + $avg = 0; + $count = 0; foreach ($data as $j => $value) { - $count ++; - $avg += $value; - if ($value > $max ) - $max = $value; - if ($value < $min ) - $min = $value; + $count ++; + $avg += $value; + if ($value > $max ) + $max = $value; + if ($value < $min ) + $min = $value; // New code for stacked. Due pchart doesnt not support stacked // area graph, we "made it", adding to a series the values of the @@ -334,21 +334,21 @@ class PchartGraph extends PandoraGraphAbstract { $previo[$j] = $previo[$j] + $value; } - if ($count > 0) - $avgdata[$i] = $avg / $count; - else - $avgdata[$i] = 0; - $maxdata[$i] = format_for_graph($max); - $mindata[$i] = format_for_graph($min); - $avgdata[$i] = format_for_graph($avgdata[$i]); + if ($count > 0) + $avgdata[$i] = $avg / $count; + else + $avgdata[$i] = 0; + $maxdata[$i] = format_for_graph($max); + $mindata[$i] = format_for_graph($min); + $avgdata[$i] = format_for_graph($avgdata[$i]); } - + $i = 0; foreach ($this->legend as $name) { - $legend = $name . " (".__("Max"). ":$maxdata[$i], ".__("Min"). ":$mindata[$i], ". __("Avg"). ": $avgdata[$i])"; + $legend = $name . " (".__("Max"). ":$maxdata[$i], ".__("Min"). ":$mindata[$i], ". __("Avg"). ": $avgdata[$i])"; $this->dataset->setSerieName ($legend, $name); $this->dataset->AddSerie ($name); - $i++; + $i++; } // Set different colors for combined graphs because need to be @@ -369,59 +369,59 @@ class PchartGraph extends PandoraGraphAbstract { $this->add_background (); - $legend_offset = $this->height - 21 - ($graph_items*15); + $legend_offset = $this->height - 21 - ($graph_items*15); - $this->graph->setGraphArea (35,10,$this->width-10, $legend_offset); + $this->graph->setGraphArea (35,10,$this->width-10, $legend_offset); $this->graph->drawGraphArea (254, 254, 254, false); // Fixed missing X-labels (6Ago09) $this->xaxis_interval = ($this->xaxis_interval / 7 >= 1) ? ($this->xaxis_interval / 7) : 10; $this->graph->drawScale ($this->dataset->GetData (), - $this->dataset->GetDataDescription (), SCALE_START0, - 80, 80, 80, $this->show_axis, 0, 50, false, - $this->xaxis_interval); + $this->dataset->GetDataDescription (), SCALE_START0, + 80, 80, 80, $this->show_axis, 0, 50, false, + $this->xaxis_interval); $this->graph->drawGrid (1, true, 225, 225, 225, 100, false); // Draw the graph if ($stacked == 1) { // Stacked solid $this->graph->drawScale ($this->dataset->GetData (), - $this->dataset->GetDataDescription (), - SCALE_START0, 80, 80, 80, $this->show_axis, 0, 0, false, - $this->xaxis_interval); + $this->dataset->GetDataDescription (), + SCALE_START0, 80, 80, 80, $this->show_axis, 0, 0, false, + $this->xaxis_interval); $this->graph->drawFilledCubicCurve ($this->dataset->GetData(), - $this->dataset->GetDataDescription(), 1, 30, true); + $this->dataset->GetDataDescription(), 1, 30, true); } elseif ($stacked == 3) { // Stacked wired $this->graph->drawScale ($this->dataset->GetData (), - $this->dataset->GetDataDescription (), - SCALE_START0, 80, 80, 80, $this->show_axis, 0, 0, false, - $this->xaxis_interval); + $this->dataset->GetDataDescription (), + SCALE_START0, 80, 80, 80, $this->show_axis, 0, 0, false, + $this->xaxis_interval); $this->graph->drawFilledCubicCurve ($this->dataset->GetData(), - $this->dataset->GetDataDescription(), 1, 0, true); + $this->dataset->GetDataDescription(), 1, 0, true); } else if ($stacked == 2) { // Wired mode $this->graph->drawScale ($this->dataset->GetData (), - $this->dataset->GetDataDescription (), - SCALE_START0, 80, 80, 80, $this->show_axis, 0, 0, false, - $this->xaxis_interval); + $this->dataset->GetDataDescription (), + SCALE_START0, 80, 80, 80, $this->show_axis, 0, 0, false, + $this->xaxis_interval); $this->graph->drawLineGraph ($this->dataset->GetData (), - $this->dataset->GetDataDescription ()); + $this->dataset->GetDataDescription ()); } else { // Non-stacked, area overlapped $this->graph->drawScale ($this->dataset->GetData (), - $this->dataset->GetDataDescription (), - SCALE_START0, 80, 80, 80, $this->show_axis, 0, 0, false, - $this->xaxis_interval); + $this->dataset->GetDataDescription (), + SCALE_START0, 80, 80, 80, $this->show_axis, 0, 0, false, + $this->xaxis_interval); $this->graph->drawFilledCubicCurve ($this->dataset->GetData(), - $this->dataset->GetDataDescription(), 1, 30, true); + $this->dataset->GetDataDescription(), 1, 30, true); } - $this->graph->setFontProperties($this->fontpath,7); - $this->graph->drawLegend(15,$legend_offset+29,$this->dataset->GetDataDescription(),92,92,92,50,50,50,45,45,45,0); + $this->graph->setFontProperties($this->fontpath,7); + $this->graph->drawLegend(15,$legend_offset+29,$this->dataset->GetDataDescription(),92,92,92,50,50,50,45,45,45,0); // Legend line separator -// $this->graph->drawFilledRoundedRectangle(35, $legend_offset + 30 ,$this->width-35,$legend_offset+30,0,220,220,220); +// $this->graph->drawFilledRoundedRectangle(35, $legend_offset + 30 ,$this->width-35,$legend_offset+30,0,220,220,220); $this->add_events ($this->legend[0]); $this->add_alert_levels (); @@ -603,18 +603,18 @@ class PchartGraph extends PandoraGraphAbstract { $this->graph->setFontProperties ($this->fontpath, 6); } - /* This is a tiny watermark */ + /* This is a tiny watermark */ if ($this->watermark) { if ($this->show_title){ $this->graph->setFontProperties ($this->fontpath, 7); $this->graph->drawTextBox ($this->width - 8, 40, - $this->width - 240, 90, 'PANDORA FMS', 90, - 174, 214, 174, ALIGN_BOTTOM_LEFT, false); + $this->width - 240, 90, 'PANDORA FMS', 90, + 174, 214, 174, ALIGN_BOTTOM_LEFT, false); } else { $this->graph->setFontProperties ($this->fontpath, 7); $this->graph->drawTextBox ($this->width - 8, 50, - $this->width - 240, 60, 'PANDORA FMS', 90, - 174, 214, 174, ALIGN_BOTTOM_LEFT, false); + $this->width - 240, 60, 'PANDORA FMS', 90, + 174, 214, 174, ALIGN_BOTTOM_LEFT, false); } } } diff --git a/pandora_console/pandora_console_install b/pandora_console/pandora_console_install index fffbb55893..85f155ad56 100755 --- a/pandora_console/pandora_console_install +++ b/pandora_console/pandora_console_install @@ -1,15 +1,15 @@ #!/bin/sh -# Pandora FMS Console Installer (c) 2008-2010 Artica ST +# Pandora FMS Console Installer (c) 2008-2011 Artica ST # Linux/FreeBSD Version (generic), for SuSe, Debian/Ubuntu, RHEL/CentOS, # Fedora and FreeBSD only # other Linux distros could not work properly without modifications # Please see http://www.pandorafms.org -# v3.2 Build 101125 +# v4.0dev Build 110203 # This code is licensed under GPL 2.0 license. # ********************************************************************** -PI_VERSION=3.2 +PI_VERSION=4.0dev FORCE=0 LOG_TIMESTAMP=`date +"%Y/%m/%d %H:%M:%S"` MODE=$1 diff --git a/pandora_console/pandora_console_upgrade b/pandora_console/pandora_console_upgrade index 20e0cd10a9..0c9a8a182f 100755 --- a/pandora_console/pandora_console_upgrade +++ b/pandora_console/pandora_console_upgrade @@ -1,6 +1,6 @@ #!/bin/bash -# Pandora FMS 3.2 Console Upgrade (c) 2009-2010 Artica ST +# Pandora FMS 4.0dev Console Upgrade (c) 2009-2011 Artica ST # Please see http://www.pandorafms.com # This code is licensed under GPL 2.0 license. # ********************************************************************** diff --git a/pandora_console/pandoradb.data.postgreSQL.sql b/pandora_console/pandoradb.data.postgreSQL.sql index 211a7f1dd9..2407bbd421 100644 --- a/pandora_console/pandoradb.data.postgreSQL.sql +++ b/pandora_console/pandoradb.data.postgreSQL.sql @@ -1,6 +1,6 @@ -- Pandora FMS - the Flexible Monitoring System -- ============================================ --- Copyright (c) 2010 Artica Soluciones Tecnologicas, http://www.artica.es +-- Copyright (c) 2011 Artica Soluciones Tecnologicas, http://www.artica.es -- Please see http://www.pandorafms.org for full contribution list -- This program is free software; you can redistribute it and/or diff --git a/pandora_console/pandoradb_data.sql b/pandora_console/pandoradb_data.sql index 254ee0897f..df3cd9ce99 100644 --- a/pandora_console/pandoradb_data.sql +++ b/pandora_console/pandoradb_data.sql @@ -1,6 +1,6 @@ -- Pandora FMS - the Flexible Monitoring System -- ============================================ --- Copyright (c) 2010 Artica Soluciones Tecnologicas, http://www.artica.es +-- Copyright (c) 2011 Artica Soluciones Tecnologicas, http://www.artica.es -- Please see http://www.pandorafms.org for full contribution list -- This program is free software; you can redistribute it and/or @@ -14,7 +14,7 @@ -- along with this program; if not, write to the Free Software -- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. --- Database Data for Pandora FMS 3.2 +-- Database Data for Pandora FMS 4.0dev -- PLEASE NO NOT USE MULTILINE COMMENTS -- Because Pandora Installer don't understand them