#10598 fix discovery include
This commit is contained in:
parent
d9977a41ba
commit
f748a07c75
|
@ -603,7 +603,7 @@ class WelcomeWindow extends Wizard
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'arguments' => [
|
'arguments' => [
|
||||||
'label' => __('Let`s do it!'),
|
'label' => __("Let's do it!"),
|
||||||
'type' => 'button',
|
'type' => 'button',
|
||||||
'attributes' => [
|
'attributes' => [
|
||||||
'class' => 'secondary',
|
'class' => 'secondary',
|
||||||
|
@ -754,7 +754,7 @@ class WelcomeWindow extends Wizard
|
||||||
echo html_print_label_input_block(
|
echo html_print_label_input_block(
|
||||||
__('Ip target'),
|
__('Ip target'),
|
||||||
html_print_input_text(
|
html_print_input_text(
|
||||||
'ip_target',
|
'ip_target_discovery',
|
||||||
'192.168.10.0/24',
|
'192.168.10.0/24',
|
||||||
'192.168.10.0/24',
|
'192.168.10.0/24',
|
||||||
false,
|
false,
|
||||||
|
@ -1352,7 +1352,7 @@ class WelcomeWindow extends Wizard
|
||||||
url: "include/ajax/task_to_perform.php",
|
url: "include/ajax/task_to_perform.php",
|
||||||
data: {
|
data: {
|
||||||
create_net_scan: 1,
|
create_net_scan: 1,
|
||||||
ip_target: $('#text-ip_target').val(),
|
ip_target: $('#text-ip_target_discovery').val(),
|
||||||
},
|
},
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
if (data !== 0) {
|
if (data !== 0) {
|
||||||
|
|
|
@ -479,7 +479,7 @@ function create_module_packet_lost($id_agent, $id_group, $ip_target)
|
||||||
function create_net_scan($ip_target)
|
function create_net_scan($ip_target)
|
||||||
{
|
{
|
||||||
global $config;
|
global $config;
|
||||||
include_once 'HostDevices.class.php';
|
include_once $config['homedir'].'/godmode/wizards/HostDevices.class.php';
|
||||||
$HostDevices = new HostDevices(1);
|
$HostDevices = new HostDevices(1);
|
||||||
$id_recon_server = db_get_row_filter('tserver', ['server_type' => SERVER_TYPE_DISCOVERY], 'id_server')['id_server'];
|
$id_recon_server = db_get_row_filter('tserver', ['server_type' => SERVER_TYPE_DISCOVERY], 'id_server')['id_server'];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue