'.html_print
$row['control'] .= ' '.html_print_image('images/status_sets/default/severity_normal.png', true).' '.__('Connection its OK').'';
$row['control'] .= ' '.html_print_image('images/status_sets/default/severity_critical.png', true).' '.__('Connection failed').'';
$row['control'] .= ' ';
-$table_remote->data['integria_test'] = $row;
+$table_remote->data['ITSM_test'] = $row;
// Print.
echo '';
// Form remote.
echo '';
echo '
';
}
- if ($config['integria_enabled'] && $config['integria_user_level_conf']) {
- // Integria IMS user remote login.
- $table_remote = new StdClass();
- $table_remote->data = [];
- $table_remote->width = '100%';
- $table_remote->id = 'integria-remote-setup';
- $table_remote->class = 'white_box';
- $table_remote->size['name'] = '30%';
- $table_remote->style['name'] = 'font-weight: bold';
-
- // Integria IMS user level authentication.
- // Title.
- $row = [];
- $row['control'] = ''.__('Integria user configuration').':
';
- $table_remote->data['integria_user_level_conf'] = $row;
-
- // Integria IMS user.
- $row = [];
- $row['name'] = __('User');
- $row['control'] = html_print_input_text('integria_user_level_user', $user_info['integria_user_level_user'], '', 30, 100, true);
- $table_remote->data['integria_user_level_user'] = $row;
-
- // Integria IMS pass.
- $row = [];
- $row['name'] = __('Password');
- $row['control'] = html_print_input_password('integria_user_level_pass', io_output_password($user_info['integria_user_level_pass']), '', 30, 100, true);
- $table_remote->data['integria_user_level_pass'] = $row;
-
- // Test.
- $integria_host = db_get_value('value', 'tconfig', 'token', 'integria_hostname');
- $integria_api_pass = db_get_value('value', 'tconfig', 'token', 'integria_api_pass');
-
- $row = [];
- $row['name'] = __('Test');
- $row['control'] = html_print_button(
- __('Start'),
- 'test-integria',
- false,
- 'integria_connection_test("'.$integria_host.'",'.$integria_api_pass.')',
- [ 'icon' => 'next' ],
- true
- );
- $row['control'] .= ' '.html_print_image('images/spinner.gif', true).'';
- $row['control'] .= ' '.html_print_image('images/status_sets/default/severity_normal.png', true).'';
- $row['control'] .= ' '.html_print_image('images/status_sets/default/severity_critical.png', true).'';
- $row['control'] .= '';
- $table_remote->data['integria_test'] = $row;
-
- echo '';
- html_print_table($table_remote);
- echo '
';
- }
-
-
if ($is_management_allowed === true) {
if ((bool) $config['user_can_update_info'] === false) {
$outputButton = ''.__('You can not change your user info under the current authentication scheme').'';
@@ -1071,7 +1014,6 @@ $skin = '';
diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql
index 87f6283152..c54d3ddb7b 100644
--- a/pandora_console/pandoradb.sql
+++ b/pandora_console/pandoradb.sql
@@ -1322,7 +1322,7 @@ CREATE TABLE IF NOT EXISTS `tusuario` (
`ehorus_user_level_pass` VARCHAR(45),
`ehorus_user_level_enabled` TINYINT,
`integria_user_level_user` VARCHAR(60),
- `integria_user_level_pass` VARCHAR(45),
+ `integria_user_level_pass` TEXT,
`api_token` VARCHAR(255) NOT NULL DEFAULT '',
`allowed_ip_active` TINYINT UNSIGNED DEFAULT 0,
`allowed_ip_list` TEXT,
diff --git a/pandora_console/pandoradb_data.sql b/pandora_console/pandoradb_data.sql
index ebf38a35f7..114a13898d 100644
--- a/pandora_console/pandoradb_data.sql
+++ b/pandora_console/pandoradb_data.sql
@@ -126,12 +126,9 @@ INSERT INTO `tconfig` (`token`, `value`) VALUES
('custom_docs_logo', 'default_docs.png'),
('custom_support_logo', 'default_support.png'),
('custom_logo_white_bg_preview', 'pandora_logo_head_white_bg.png'),
-('integria_enabled', 0),
-('integria_user', ''),
+('ITSM_enabled', 0),
('integria_pass', ''),
-('integria_hostname', ''),
-('integria_api_pass', ''),
-('integria_req_timeout', 5),
+('ITSM_hostname', ''),
('default_group', ''),
('default_criticity', ''),
('default_creator', ''),
diff --git a/pandora_console/update_manager_client/lib/UpdateManager/Client.php b/pandora_console/update_manager_client/lib/UpdateManager/Client.php
index ba1574d8f9..cf948f0701 100644
--- a/pandora_console/update_manager_client/lib/UpdateManager/Client.php
+++ b/pandora_console/update_manager_client/lib/UpdateManager/Client.php
@@ -1018,7 +1018,7 @@ class Client
);
if ($sth === false) {
- // IntegriaIMS.
+ // Pandora ITSM.
$sth = $dbh->query(
'SELECT `value`
FROM `tconfig`
diff --git a/pandora_console/views/ITSM/ITSMDashboardView.php b/pandora_console/views/ITSM/ITSMDashboardView.php
index c6949c64cf..a0d162f45d 100644
--- a/pandora_console/views/ITSM/ITSMDashboardView.php
+++ b/pandora_console/views/ITSM/ITSMDashboardView.php
@@ -31,8 +31,6 @@ require_once $config['homedir'].'/include/class/HTML.class.php';
global $config;
-ui_require_css_file('integriaims');
-
/**
* Draw chart.
@@ -83,7 +81,7 @@ ui_print_standard_header(
__('ITSM Dashboard'),
'',
false,
- 'integria_tab',
+ 'ITSM_tab',
false,
[],
[
diff --git a/pandora_console/views/ITSM/ITSMTicketDetailView.php b/pandora_console/views/ITSM/ITSMTicketDetailView.php
index 7a1a15c25e..24c61ef792 100644
--- a/pandora_console/views/ITSM/ITSMTicketDetailView.php
+++ b/pandora_console/views/ITSM/ITSMTicketDetailView.php
@@ -28,14 +28,12 @@
global $config;
-ui_require_css_file('integriaims');
-
// Header tabs.
ui_print_standard_header(
__('ITSM Detailed'),
'',
false,
- 'integria_tab',
+ 'ITSM_tab',
false,
[],
[
@@ -71,12 +69,12 @@ if (empty($incidence) === true) {
}
// Details box.
- $details_box = '';
- $details_box .= '
'.__('Status').'
';
- $details_box .= '
'.__('Resolution').'
';
- $details_box .= '
'.__('Group').'
';
- $details_box .= '
'.__('Priority').'
';
- $details_box .= '
'.__('Type').'
';
+ $details_box = '
';
+ $details_box .= '
'.__('Status').'
';
+ $details_box .= '
'.__('Resolution').'
';
+ $details_box .= '
'.__('Group').'
';
+ $details_box .= '
'.__('Priority').'
';
+ $details_box .= '
'.__('Type').'
';
$details_box .= '
';
$details_box .= html_print_image('images/heart.png', true, ['class' => 'invert_filter']);
$details_box .= '
';
@@ -104,7 +102,7 @@ if (empty($incidence) === true) {
$details_box .= '
';
// People box.
- $people_box = '
';
+ $people_box = '
';
$people_box .= '
';
$people_box .= html_print_image('images/header_user_green.png', true, ['width' => '21']);
$people_box .= '
';
@@ -115,9 +113,9 @@ if (empty($incidence) === true) {
$people_box .= html_print_image('images/header_user_green.png', true, ['width' => '21']);
$people_box .= '
';
- $people_box .= '
'.__('Created by').':
';
- $people_box .= '
'.__('Owned by').':
';
- $people_box .= '
'.__('Closed by').':
';
+ $people_box .= '
'.__('Created by').':
';
+ $people_box .= '
'.__('Owned by').':
';
+ $people_box .= '
'.__('Closed by').':
';
$people_box .= '
';
$people_box .= (empty($incidence['idCreator']) === false) ? $users[$incidence['idCreator']]['fullName'] : '--';
@@ -131,7 +129,7 @@ if (empty($incidence) === true) {
$people_box .= '
';
// Dates box.
- $dates_box = '
';
+ $dates_box = '
';
$dates_box .= '
';
$dates_box .= html_print_image('images/tick.png', true, ['class' => 'invert_filter']);
$dates_box .= '
';
@@ -142,9 +140,9 @@ if (empty($incidence) === true) {
$dates_box .= html_print_image('images/mul.png', true, ['class' => 'invert_filter']);
$dates_box .= '
';
- $dates_box .= '
'.__('Created at').':
';
- $dates_box .= '
'.__('Updated at').':
';
- $dates_box .= '
'.__('Closed at').':
';
+ $dates_box .= '
'.__('Created at').':
';
+ $dates_box .= '
'.__('Updated at').':
';
+ $dates_box .= '
'.__('Closed at').':
';
$dates_box .= '
'.$incidence['startDate'].'
';
$dates_box .= '
'.$incidence['updateDate'].'
';
@@ -154,7 +152,7 @@ if (empty($incidence) === true) {
$dates_box .= '
';
// Show details, people and dates.
- echo '
';
+ echo '
';
ui_toggle(
$details_box,
__('Details'),
@@ -163,8 +161,8 @@ if (empty($incidence) === true) {
false,
false,
'',
- 'integria_details_content white-box-content',
- 'integria_details_shadow box-flat white_table_graph'
+ 'ITSM_details_content white-box-content',
+ 'ITSM_details_shadow box-flat white_table_graph'
);
ui_toggle(
$people_box,
@@ -174,8 +172,8 @@ if (empty($incidence) === true) {
false,
false,
'',
- 'integria_details_content white-box-content',
- 'integria_details_shadow box-flat white_table_graph'
+ 'ITSM_details_content white-box-content',
+ 'ITSM_details_shadow box-flat white_table_graph'
);
ui_toggle(
$dates_box,
@@ -185,13 +183,13 @@ if (empty($incidence) === true) {
false,
false,
'',
- 'integria_details_content white-box-content',
- 'integria_details_shadow box-flat white_table_graph'
+ 'ITSM_details_content white-box-content',
+ 'ITSM_details_shadow box-flat white_table_graph'
);
echo '
';
// Show description.
- $description_box = '
';
+ $description_box = '
';
$description_box .= $incidence['description'];
$description_box .= '
';
ui_toggle($description_box, __('Description'), '', '', false);
diff --git a/pandora_console/views/ITSM/ITSMTicketEditView.php b/pandora_console/views/ITSM/ITSMTicketEditView.php
index d51a1aa45a..3e438c0eb2 100644
--- a/pandora_console/views/ITSM/ITSMTicketEditView.php
+++ b/pandora_console/views/ITSM/ITSMTicketEditView.php
@@ -36,7 +36,7 @@ ui_print_standard_header(
__('ITSM Edit'),
'',
false,
- 'integria_tab',
+ 'ITSM_tab',
false,
[],
[
@@ -90,13 +90,13 @@ $table->data[0][0] = html_print_label_input_block(
)
);
-$integria_logo = 'images/integria_logo_gray.png';
+$ITSM_logo = 'images/integria_logo_gray.png';
if ($config['style'] === 'pandora_black' && is_metaconsole() === false) {
- $integria_logo = 'images/integria_logo.svg';
+ $ITSM_logo = 'images/integria_logo.svg';
}
$table->data[0][2] = '
'.html_print_image(
- $integria_logo,
+ $ITSM_logo,
true,
['style' => 'width: -webkit-fill-available;'],
false
@@ -182,7 +182,7 @@ $table->data[3][1] = html_print_label_input_block(
),
html_print_input_text(
'idCreator',
- $config['integria_user'],
+ '',
'',
0,
100,
@@ -196,7 +196,7 @@ $table->data[3][1] = html_print_label_input_block(
$table->data[3][2] = html_print_label_input_block(
__('Owner').ui_print_help_tip(__('Type at least two characters to search the user.'), true),
- html_print_autocomplete_users_from_integria(
+ html_print_autocomplete_users_from_pandora_itsm(
'owner',
($incidence['owner'] ?? ''),
true,
@@ -237,7 +237,7 @@ $table->data[5][0] = html_print_label_input_block(
)
);
-$formName = 'create_integria_incident_form';
+$formName = 'create_itsm_incident_form';
$classForm = 'max_floating_element_size';
$enctype = 'multipart/form-data';
echo '