diff --git a/pandora_console/general/firts_task/custom_fields.php b/pandora_console/general/firts_task/custom_fields.php new file mode 100644 index 0000000000..1b7c9c0eca --- /dev/null +++ b/pandora_console/general/firts_task/custom_fields.php @@ -0,0 +1,26 @@ + +true, 'message'=> __('There are no custom fields defined yet.') ) ); +?> + +
+
+ __('Custom Graphs')));?> +
+
+

+

ICMP (pings), + SNMP (detecting the topology of networks and their interfaces), and other customized + type. You can define your own customized recon script.'); ?>

+
+ +
+
+
\ No newline at end of file diff --git a/pandora_console/general/firts_task/incidents.php b/pandora_console/general/firts_task/incidents.php index dc3767a104..648c8a1401 100644 --- a/pandora_console/general/firts_task/incidents.php +++ b/pandora_console/general/firts_task/incidents.php @@ -10,16 +10,18 @@ ui_print_info_message ( array('no_close'=>true, 'message'=> __('There are no in
- __('Incidents')));?> + __('Incidents')));?>

-

ICMP (pings), - SNMP (detecting the topology of networks and their interfaces), and other customized - type. You can define your own customized recon script.'); ?>

-
+

+
diff --git a/pandora_console/general/firts_task/network_map.php b/pandora_console/general/firts_task/network_map.php index 5b890caaf5..8b385004e8 100755 --- a/pandora_console/general/firts_task/network_map.php +++ b/pandora_console/general/firts_task/network_map.php @@ -19,9 +19,13 @@ $networkmap_types = networkmap_get_types($strict_user);

- - "); ?>

+ "); + echo "
  • " . __("Topology Map") . "
  • +
  • " . __("Group Map") . "
  • +
  • " . __("Radial Map (User without strict user)") . "
  • +
  • " . __("Dinamic Map") . "
  • +
  • " . __("Policy Map (Only Enterprise version)") . "
  • "; + ?>

    -

    ICMP (pings), - SNMP (detecting the topology of networks and their interfaces), and other customized - type. You can define your own customized recon script.'); ?>

    - +

    +
    diff --git a/pandora_console/general/firts_task/tags.php b/pandora_console/general/firts_task/tags.php index 23bdaa85e6..ef8c94b652 100755 --- a/pandora_console/general/firts_task/tags.php +++ b/pandora_console/general/firts_task/tags.php @@ -3,21 +3,19 @@ global $config; check_login (); ui_require_css_file ('firts_task'); ?> -true, 'message'=> __('There are no recon task defined yet.') ) ); ?> +true, 'message'=> __('There are no tags defined yet.') ) ); ?>
    - __('Recon server')));?> + __('Recon server')));?>
    -

    -

    ICMP (pings), - SNMP (detecting the topology of networks and their interfaces), and other customized - type. You can define your own customized recon script.'); ?>

    -
    - +

    +

    + +
    diff --git a/pandora_console/godmode/agentes/fields_manager.php b/pandora_console/godmode/agentes/fields_manager.php index 4b431e0865..90ad2d4df2 100644 --- a/pandora_console/godmode/agentes/fields_manager.php +++ b/pandora_console/godmode/agentes/fields_manager.php @@ -103,7 +103,8 @@ if ($fields) { $table->data = array (); } else { - ui_print_info_message ( array('no_close'=>true, 'message'=> __('No fields defined') ) ); + require_once ($config['homedir'] . "/general/firts_task/custom_fields.php"); + return; } if ($fields === false) $fields = array(); diff --git a/pandora_console/godmode/tag/tag.php b/pandora_console/godmode/tag/tag.php index 3fc1809f7c..8d2525f060 100644 --- a/pandora_console/godmode/tag/tag.php +++ b/pandora_console/godmode/tag/tag.php @@ -117,52 +117,53 @@ else { $result = tags_search_tag(false, $filter); } -// Form to add new tags or search tags -if (!defined('METACONSOLE')) { - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo "
    "; - echo '' . __("Name") . "/" . __("Description") . ''; - echo ""; - echo '
    '; - html_print_input_hidden ("search_tag", "1"); - html_print_input_text ('tag_name', $tag_name, '', 30, 255, false); - echo "   "; - html_print_submit_button (__('Filter'), 'filter_button', false, 'class="sub search"'); - echo "
    "; - echo "
    "; -} -else { - - $filters = '
    '; - $filters .= ""; - $filters .= ""; - $filters .= ""; - $filters .= ""; - $filters .= ""; - $filters .= "
    "; - $filters .= __("Name") . "/" . __("Description"); - $filters .= "  "; - $filters .= html_print_input_hidden ("search_tag", "1",true); - $filters .= html_print_input_text ('tag_name', $tag_name, '', 30, 255, true); - $filters .= ""; - $filters .= html_print_submit_button (__('Filter'), 'filter_button', false, 'class="sub search"',true); - $filters .= "
    "; - $filters .= "
    "; - ui_toggle($filters, __("Show Options")); -} - -// Prepare pagination -ui_pagination ($total_tags, $url); - -// Display tags previously filtered or not -$rowPair = true; -$iterator = 0; - if (!empty($result)) { + // Form to add new tags or search tags + if (!defined('METACONSOLE')) { + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo "
    "; + echo '' . __("Name") . "/" . __("Description") . ''; + echo ""; + echo '
    '; + html_print_input_hidden ("search_tag", "1"); + html_print_input_text ('tag_name', $tag_name, '', 30, 255, false); + echo "   "; + html_print_submit_button (__('Filter'), 'filter_button', false, 'class="sub search"'); + echo "
    "; + echo "
    "; + } + else { + + $filters = '
    '; + $filters .= ""; + $filters .= ""; + $filters .= ""; + $filters .= ""; + $filters .= ""; + $filters .= "
    "; + $filters .= __("Name") . "/" . __("Description"); + $filters .= "  "; + $filters .= html_print_input_hidden ("search_tag", "1",true); + $filters .= html_print_input_text ('tag_name', $tag_name, '', 30, 255, true); + $filters .= ""; + $filters .= html_print_submit_button (__('Filter'), 'filter_button', false, 'class="sub search"',true); + $filters .= "
    "; + $filters .= "
    "; + ui_toggle($filters, __("Show Options")); + } + + // Prepare pagination + ui_pagination ($total_tags, $url); + + // Display tags previously filtered or not + $rowPair = true; + $iterator = 0; + + $table = new stdClass(); $table->width = '100%'; @@ -241,7 +242,10 @@ if (!empty($result)) { html_print_table ($table); } - +else{ + require_once ($config['homedir'] . "/general/firts_task/tags.php"); + return; +} echo ""; echo ""; echo "
    ";