From 136772fc84d13d8a577186e248dc49ed6ce40beb Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Thu, 6 Sep 2012 17:01:22 +0000 Subject: [PATCH] 2012-09-06 Miguel de Dios * general/header.php, general/login_page.php, godmode/setup/setup.php, include/functions_ui.php, include/functions_graph.php, include/functions_html.php, include/graphs/fgraph.php, include/graphs/functions_pchart.php, include/graphs/functions_flot.php, include/functions_reporting.php, include/functions_visual_map.php, include/functions_config.php, operation/reporting/reporting_viewer.php, operation/visual_console/render_view.php, operation/agentes/tactical.php, operation/menu.php, operation/events/events.php: added the feature to set a public url for inverse proxy or for example mod_proxy of Apache. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6936 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 14 + pandora_console/general/header.php | 45 ++- pandora_console/general/login_page.php | 211 +++++------ pandora_console/godmode/setup/setup.php | 29 +- pandora_console/include/functions_config.php | 10 +- pandora_console/include/functions_graph.php | 262 ++++++------- pandora_console/include/functions_html.php | 9 +- .../include/functions_reporting.php | 5 +- pandora_console/include/functions_ui.php | 76 +++- .../include/functions_visual_map.php | 6 +- pandora_console/include/graphs/fgraph.php | 26 +- .../include/graphs/functions_flot.php | 18 +- .../include/graphs/functions_pchart.php | 347 +++++++++--------- .../operation/agentes/tactical.php | 40 +- pandora_console/operation/events/events.php | 69 ++-- pandora_console/operation/menu.php | 17 +- .../operation/reporting/reporting_viewer.php | 11 +- .../operation/visual_console/render_view.php | 3 +- 18 files changed, 637 insertions(+), 561 deletions(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index d000aecc7d..30903f28d6 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,17 @@ +2012-09-06 Miguel de Dios + + * general/header.php, general/login_page.php, + godmode/setup/setup.php, include/functions_ui.php, + include/functions_graph.php, include/functions_html.php, + include/graphs/fgraph.php, include/graphs/functions_pchart.php, + include/graphs/functions_flot.php, include/functions_reporting.php, + include/functions_visual_map.php, include/functions_config.php, + operation/reporting/reporting_viewer.php, + operation/visual_console/render_view.php, + operation/agentes/tactical.php, operation/menu.php, + operation/events/events.php: added the feature to set a + public url for inverse proxy or for example mod_proxy of Apache. + 2012-09-05 Vanessa Gil * godmode/agentes/module_manager.php diff --git a/pandora_console/general/header.php b/pandora_console/general/header.php index e927b46ccd..f8e3286d11 100644 --- a/pandora_console/general/header.php +++ b/pandora_console/general/header.php @@ -53,7 +53,7 @@ config_check(); [] 0) { echo ''; @@ -130,7 +130,6 @@ config_check(); false, 'code' => false); - if ($config['enable_refr']) { $ignored_params['refr'] = 0; echo '' . html_print_image("images/page_refresh.png", true, array("class" => 'bot', "alt" => 'lightning')) . ' '. __('Autorefresh'); @@ -150,22 +149,22 @@ config_check(); echo ''; } else { $ignored_params['refr'] = ''; - echo '' . html_print_image("images/page_refresh.png", true, array("class" => 'bot', "alt" => 'lightning')) . ' '. __('Autorefresh').''; - $values = array ( - '5' => __('5 seconds'), - '10' => __('10 seconds'), - '15' => __('15 seconds'), - '30' => __('30 seconds'), - (string)SECONDS_1MINUTE => __('1 minute'), - (string)SECONDS_2MINUTES => __('2 minutes'), - (string)SECONDS_5MINUTES => __('5 minutes'), - (string)SECONDS_15MINUTES => __('15 minutes'), - (string)SECONDS_30MINUTES => __('30 minutes'), - (string)SECONDS_1HOUR => __('1 hour')); - echo ''; + echo '' . html_print_image("images/page_refresh.png", true, array("class" => 'bot', "alt" => 'lightning')) . ' '. __('Autorefresh').''; + $values = array ( + '5' => __('5 seconds'), + '10' => __('10 seconds'), + '15' => __('15 seconds'), + '30' => __('30 seconds'), + (string)SECONDS_1MINUTE => __('1 minute'), + (string)SECONDS_2MINUTES => __('2 minutes'), + (string)SECONDS_5MINUTES => __('5 minutes'), + (string)SECONDS_15MINUTES => __('15 minutes'), + (string)SECONDS_30MINUTES => __('30 minutes'), + (string)SECONDS_1HOUR => __('1 hour')); + echo ''; } } @@ -177,7 +176,7 @@ config_check(); if (isset($config["custom_logo"])) echo html_print_image("images/custom_logo/" . $config["custom_logo"], true,array("height" => '60', "width" => '139', "alt" => 'Logo')); echo ""; - ?> + ?> @@ -195,7 +194,8 @@ config_check(); echo "value='" . __("Enter keywords to search") . "'"; else if (strlen($config['search_keywords']) == 0) echo "value='" . __("Enter keywords to search") . "'"; - else echo "value='" . $config['search_keywords'] . "'"; + else + echo "value='" . $config['search_keywords'] . "'"; ?> onfocus="javascript: if (fieldKeyWordEmpty) $('#keywords').val('');" size="100" style="background: white url('images/lupa_15x15.png') no-repeat right; padding: 0; padding-left:0px; margin: 0; width: 90%; height: 19px; margin-bottom: 5px; margin-left: 2px;" /> @@ -211,7 +211,7 @@ config_check(); ' . html_print_image("images/lightning_go.png", true, array("alt" => 'lightning_go', "class" => 'bot')) . ' '.__('Events').''; } ?> @@ -281,7 +281,6 @@ ui_require_jquery_file('jquery-ui-1.8.17.custom.min'); $("select#ref").change (function () { href = $(a).attr ("href"); $(document).attr ("location", href + this.value); - }); return false; @@ -291,4 +290,4 @@ ui_require_jquery_file('jquery-ui-1.8.17.custom.min'); ?> }); /* ]]> */ - + \ No newline at end of file diff --git a/pandora_console/general/login_page.php b/pandora_console/general/login_page.php index 32777f8812..c1c22482c5 100644 --- a/pandora_console/general/login_page.php +++ b/pandora_console/general/login_page.php @@ -21,7 +21,7 @@ if (!empty ($page) && !empty ($sec)) { $url .= '&'.safe_url_extraclean($key).'='.safe_url_extraclean($value); } } -echo ''; +echo ''; echo '