2011-04-13 Sancho Lerena <slerena@artica.es>

* operation/servers/view_server_detail.php,
	godmode/servers/manage_recontask.php,
	godmode/servers/manage_recontask_form.php: Fixes bug #3286027. Also implement
	the new "manual" mode for recon tasks.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4210 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
slerena 2011-04-13 15:12:40 +00:00
parent 4bf3f498e7
commit 67d1b9b750
4 changed files with 22 additions and 6 deletions

View File

@ -1,3 +1,11 @@
2011-04-13 Sancho Lerena <slerena@artica.es>
* operation/servers/view_server_detail.php,
godmode/servers/manage_recontask.php,
godmode/servers/manage_recontask_form.php: Fixes bug #3286027. Also implement
the new "manual" mode for recon tasks.
2011-04-13 Miguel de Dios <miguel.dedios@artica.es> 2011-04-13 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_graph.php, * include/functions_graph.php,

View File

@ -218,8 +218,11 @@ if ($result !== false) {
} else { } else {
$data[5] = "-"; $data[5] = "-";
} }
// INTEVAL // INTERVAL
$data[6] =human_time_description_raw($row["interval_sweep"]); if ($row["interval_sweep"]==0)
$data[6] = __("Manual");
else
$data[6] =human_time_description_raw($row["interval_sweep"]);
// PORTS // PORTS
if ($row["id_recon_script"] == 0){ if ($row["id_recon_script"] == 0){

View File

@ -13,7 +13,6 @@
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details. // GNU General Public License for more details.
// Load global vars // Load global vars
global $config; global $config;
@ -56,10 +55,10 @@ if (isset ($_GET["update"])) { // Edit mode
$network = ""; $network = "";
$description = ""; $description = "";
$id_recon_server = 0; $id_recon_server = 0;
$interval = 43200; $interval = 0;
$id_group = 0; $id_group = 0;
$create_incident = 1; $create_incident = 1;
$snmp_community = "public"; $snmp_community = "public";
$id_network_profile = 1; $id_network_profile = 1;
$id_os = -1; // Any $id_os = -1; // Any
$recon_ports = ""; // Any $recon_ports = ""; // Any
@ -116,6 +115,7 @@ $table->data[3][1] = print_input_text ('network', $network, '', 25, 0, true);
// Interval // Interval
$values = array (); $values = array ();
$values[0] = __('Manual');
$values[3600] = __('%d hour', 1); $values[3600] = __('%d hour', 1);
$values[7200] = __('%d hours', 2); $values[7200] = __('%d hours', 2);
$values[21600] = __('%d hours', 6); $values[21600] = __('%d hours', 6);

View File

@ -103,7 +103,12 @@ foreach ($recon_tasks as $task) {
$data[1] = '<b>'. $task["name"].'</b>'; $data[1] = '<b>'. $task["name"].'</b>';
$data[2] = human_time_description_raw ($task["interval_sweep"]); if ($task["interval_sweep"] == 0){
$data[2] = __("Manual");
}
else {
$data[2] = human_time_description_raw ($task["interval_sweep"]);
}
if ($task["id_recon_script"] == 0){ if ($task["id_recon_script"] == 0){
$data[3] = $task["subnet"]; $data[3] = $task["subnet"];