+ {% endif %}
+ {% endif %}
+{% endblock %}
\ No newline at end of file
diff --git a/templates/credential.html.twig b/templates/credential.html.twig
new file mode 100644
index 0000000..b545b6c
--- /dev/null
+++ b/templates/credential.html.twig
@@ -0,0 +1,34 @@
+{% extends "generic_show_form.html.twig" %}
+{% import "components/form/fields_macros.html.twig" as fields %}
+
+{% block more_fields %}
+
+ {{ fields.dropdownNumberField(
+ 'port',
+ item.fields['port'],
+ __('Port', 'databaseinventory'),
+ {'min' : 0, 'max' : 99999, 'step' : 1}
+ )}}
+
+ {{ fields.textField(
+ 'login',
+ item.fields['login'],
+ __('Login', 'databaseinventory'),
+ )
+ }}
+
+ {{ fields.passwordField(
+ 'password',
+ item.fields['password'],
+ __('Password', 'databaseinventory'),
+ {'clearable': false, 'is_disclosable' : true}
+ )
+ }}
+ {{ fields.textField(
+ 'socket',
+ item.fields['socket'],
+ __('Socket', 'databaseinventory'),
+ )
+ }}
+
+{% endblock %}
\ No newline at end of file
diff --git a/templates/databaseparam.html.twig b/templates/databaseparam.html.twig
new file mode 100644
index 0000000..119aef2
--- /dev/null
+++ b/templates/databaseparam.html.twig
@@ -0,0 +1,20 @@
+{% extends "generic_show_form.html.twig" %}
+{% import "components/form/fields_macros.html.twig" as fields %}
+
+{% block more_fields %}
+
+ {{ fields.dropdownYesNo(
+ 'partial_inventory',
+ item.fields['partial_inventory'],
+ __('Execution frequency for partial inventory', 'databaseinventory'),
+ )
+ }}
+
+ {{ fields.dropdownNumberField(
+ 'execution_delay',
+ item.fields['execution_delay'],
+ __('Execution delay', 'databaseinventory'),
+ {'min' : 0, 'max' : 24, 'step' : 1, 'unit' : 'hour'}
+ )}}
+
+{% endblock %}
\ No newline at end of file
diff --git a/templates/databaseparam_computergroup.html.twig b/templates/databaseparam_computergroup.html.twig
new file mode 100644
index 0000000..2335017
--- /dev/null
+++ b/templates/databaseparam_computergroup.html.twig
@@ -0,0 +1,91 @@
+{% import "components/form/fields_macros.html.twig" as fields %}
+{% set rand = random() %}
+
+{% block more_fields %}
+ {% if canadd %}
+
+ {% endif %}
+ {% if canread %}
+ {% if compgrouplist is not empty %}
+
+ {% endif %}
+ {% endif %}
+{% endblock %}
\ No newline at end of file
diff --git a/templates/databaseparam_credential.html.twig b/templates/databaseparam_credential.html.twig
new file mode 100644
index 0000000..38546bd
--- /dev/null
+++ b/templates/databaseparam_credential.html.twig
@@ -0,0 +1,92 @@
+{% import "components/form/fields_macros.html.twig" as fields %}
+{% set rand = random() %}
+
+{% block more_fields %}
+ {% if canadd %}
+
+ {% endif %}
+ {% if canread %}
+ {% if credentiallist is not empty %}
+
+ {% endif %}
+ {% endif %}
+{% endblock %}
\ No newline at end of file
From 526d4a2a47fdfb343cf77bd8d98b43d2d70d86f1 Mon Sep 17 00:00:00 2001
From: LAUNAY Samuel <107540223+Lainow@users.noreply.github.com>
Date: Tue, 26 Sep 2023 15:56:35 +0200
Subject: [PATCH 3/9] fix(plugin) fix warning in computergroup page
---
inc/computergroupdynamic.class.php | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/inc/computergroupdynamic.class.php b/inc/computergroupdynamic.class.php
index 022e57c..d4ad184 100644
--- a/inc/computergroupdynamic.class.php
+++ b/inc/computergroupdynamic.class.php
@@ -74,10 +74,12 @@ public static function getSpecificValueToDisplay($field, $values, array $options
switch ($field) {
case 'search':
$count = 0;
- if (strpos($values['id'], Search::NULLVALUE) === false) {
- $computergroup_dynamic = new PluginDatabaseinventoryComputerGroupDynamic();
- $computergroup_dynamic->getFromDB($values['id']);
- $count = $computergroup_dynamic->countDynamicItems();
+ if (isset($values['id'])) {
+ if (strpos($values['id'], Search::NULLVALUE) === false) {
+ $computergroup_dynamic = new PluginDatabaseinventoryComputerGroupDynamic();
+ $computergroup_dynamic->getFromDB($values['id']);
+ $count = $computergroup_dynamic->countDynamicItems();
+ }
}
return ($count) ? $count : ' 0 ';
From eed1ebafb7019e9a1aa2a32868164542788c1e94 Mon Sep 17 00:00:00 2001
From: LAUNAY Samuel <107540223+Lainow@users.noreply.github.com>
Date: Mon, 20 Nov 2023 09:47:23 +0100
Subject: [PATCH 4/9] Fix header blocks errors
---
inc/computergroup.class.php | 1 +
inc/computergroupstatic.class.php | 11 ++++++-----
inc/contactlog.class.php | 1 +
inc/credential.class.php | 1 +
inc/databaseparam.class.php | 1 +
inc/databaseparam_computergroup.class.php | 13 +++++++------
inc/databaseparam_credential.class.php | 17 +++++++++--------
7 files changed, 26 insertions(+), 19 deletions(-)
diff --git a/inc/computergroup.class.php b/inc/computergroup.class.php
index 90a9cf1..5bbd605 100644
--- a/inc/computergroup.class.php
+++ b/inc/computergroup.class.php
@@ -1,4 +1,5 @@
getFromDB($staticgroup['computers_id'])) {
$listofcomputers[] = $computers->fields +
- [
- 'entityname' => Entity::getById($computers->fields['entities_id'])->fields['completename'],
- 'link' => $computers->getLinkURL(),
- 'idcompgroupstatic' => $staticgroup['id'],
- ];
+ [
+ 'entityname' => Entity::getById($computers->fields['entities_id'])->fields['completename'],
+ 'link' => $computers->getLinkURL(),
+ 'idcompgroupstatic' => $staticgroup['id'],
+ ];
}
}
TemplateRenderer::getInstance()->display(
diff --git a/inc/contactlog.class.php b/inc/contactlog.class.php
index c18d8e5..d327e20 100644
--- a/inc/contactlog.class.php
+++ b/inc/contactlog.class.php
@@ -1,4 +1,5 @@
getFromDB($dbpcgroup['plugin_databaseinventory_computergroups_id'])) {
$listofcgroups[] = $dbcgroups->fields +
- [
- 'link' => $dbcgroups->getLinkURL(),
- 'nbdynamicitems' => $dbcgroups->countDynamicItem(),
- 'nbstaticitems' => $dbcgroups->countStaticItem(),
- 'iddbparamcgroup' => $dbpcgroup['id'],
- ];
+ [
+ 'link' => $dbcgroups->getLinkURL(),
+ 'nbdynamicitems' => $dbcgroups->countDynamicItem(),
+ 'nbstaticitems' => $dbcgroups->countStaticItem(),
+ 'iddbparamcgroup' => $dbpcgroup['id'],
+ ];
}
}
TemplateRenderer::getInstance()->display(
diff --git a/inc/databaseparam_credential.class.php b/inc/databaseparam_credential.class.php
index c25eb64..5dea0f7 100644
--- a/inc/databaseparam_credential.class.php
+++ b/inc/databaseparam_credential.class.php
@@ -1,4 +1,5 @@
getFromDB($dbpcredential['plugin_databaseinventory_credentials_id'])) {
$listofcredentials[] = $dbcredentials->fields +
- [
- 'type' => Dropdown::getDropdownName(
- PluginDatabaseinventoryCredentialType::getTable(),
- $dbcredentials->fields['plugin_databaseinventory_credentialtypes_id']
- ),
- 'link' => $dbcredentials->getLinkURL(),
- 'iddbparamcredential' => $dbpcredential['id'],
- ];
+ [
+ 'type' => Dropdown::getDropdownName(
+ PluginDatabaseinventoryCredentialType::getTable(),
+ $dbcredentials->fields['plugin_databaseinventory_credentialtypes_id']
+ ),
+ 'link' => $dbcredentials->getLinkURL(),
+ 'iddbparamcredential' => $dbpcredential['id'],
+ ];
}
}
TemplateRenderer::getInstance()->display(
From 663ac0a75e150ff99f249a771b5e844203af973c Mon Sep 17 00:00:00 2001
From: LAUNAY Samuel <107540223+Lainow@users.noreply.github.com>
Date: Mon, 20 Nov 2023 09:53:34 +0100
Subject: [PATCH 5/9] Fix PHPStan error
---
inc/contactlog.class.php | 2 +-
inc/menu.class.php | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/inc/contactlog.class.php b/inc/contactlog.class.php
index d327e20..b48a4f3 100644
--- a/inc/contactlog.class.php
+++ b/inc/contactlog.class.php
@@ -153,7 +153,7 @@ private static function showForAgent(Agent $agent)
$linkdbparam = $dbparam->getLinkURL();
$dbparamname = $dbparam->fields['name'];
}
- if (isset($linkcred) || isset($linkagent)) {
+ if (isset($linkcred)) {
$listofctlog[] = $dbpctlog + [
'linkcred' => $linkcred ?? '',
'linkdbparam' => $linkdbparam ?? '',
diff --git a/inc/menu.class.php b/inc/menu.class.php
index a50178d..8330f23 100644
--- a/inc/menu.class.php
+++ b/inc/menu.class.php
@@ -51,7 +51,7 @@ public static function getMenuContent()
}
$menu = [
- 'title' => self::getMenuName(2),
+ 'title' => self::getMenuName(),
'page' => PluginDatabaseinventoryDatabaseParam::getSearchURL(false),
'icon' => 'fas fa-database',
'options' => [],
From 32f41fc0bdd0d4ecad38252300241731fa9be08b Mon Sep 17 00:00:00 2001
From: LAUNAY Samuel <107540223+Lainow@users.noreply.github.com>
Date: Mon, 20 Nov 2023 09:56:44 +0100
Subject: [PATCH 6/9] Fix linkcred PHPStan error
---
inc/contactlog.class.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/inc/contactlog.class.php b/inc/contactlog.class.php
index b48a4f3..3a1519e 100644
--- a/inc/contactlog.class.php
+++ b/inc/contactlog.class.php
@@ -155,7 +155,7 @@ private static function showForAgent(Agent $agent)
}
if (isset($linkcred)) {
$listofctlog[] = $dbpctlog + [
- 'linkcred' => $linkcred ?? '',
+ 'linkcred' => $linkcred,
'linkdbparam' => $linkdbparam ?? '',
'credname' => $credname ?? '',
'dbparamname' => $dbparamname ?? '',
From 8f2654148cea7d76b1b7d3a888b2f675a752e99d Mon Sep 17 00:00:00 2001
From: LAUNAY Samuel <107540223+Lainow@users.noreply.github.com>
Date: Mon, 20 Nov 2023 10:00:59 +0100
Subject: [PATCH 7/9] Fix all headers
---
templates/computergroup.html.twig | 28 +++++++++++++++++++
templates/computergroupstatic.html.twig | 28 +++++++++++++++++++
templates/contactlog.html.twig | 28 +++++++++++++++++++
templates/credential.html.twig | 28 +++++++++++++++++++
templates/databaseparam.html.twig | 28 +++++++++++++++++++
.../databaseparam_computergroup.html.twig | 28 +++++++++++++++++++
templates/databaseparam_credential.html.twig | 28 +++++++++++++++++++
7 files changed, 196 insertions(+)
diff --git a/templates/computergroup.html.twig b/templates/computergroup.html.twig
index c0629eb..106fb7d 100644
--- a/templates/computergroup.html.twig
+++ b/templates/computergroup.html.twig
@@ -1 +1,29 @@
+{#
+ # -------------------------------------------------------------------------
+ # DatabaseInventory plugin for GLPI
+ # -------------------------------------------------------------------------
+ #
+ # LICENSE
+ #
+ # This file is part of DatabaseInventory.
+ #
+ # DatabaseInventory is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+ # the Free Software Foundation; either version 3 of the License, or
+ # (at your option) any later version.
+ #
+ # DatabaseInventory is distributed in the hope that it will be useful,
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ # GNU General Public License for more details.
+ #
+ # You should have received a copy of the GNU General Public License
+ # along with DatabaseInventory. If not, see .
+ # -------------------------------------------------------------------------
+ # @copyright Copyright (C) 2021-2023 by Teclib'.
+ # @license GPLv3 https://www.gnu.org/licenses/gpl-3.0.html
+ # @link https://services.glpi-network.com
+ # -------------------------------------------------------------------------
+ #}
+
{% extends "generic_show_form.html.twig" %}
\ No newline at end of file
diff --git a/templates/computergroupstatic.html.twig b/templates/computergroupstatic.html.twig
index c09835e..db47e97 100644
--- a/templates/computergroupstatic.html.twig
+++ b/templates/computergroupstatic.html.twig
@@ -1,3 +1,31 @@
+{#
+ # -------------------------------------------------------------------------
+ # DatabaseInventory plugin for GLPI
+ # -------------------------------------------------------------------------
+ #
+ # LICENSE
+ #
+ # This file is part of DatabaseInventory.
+ #
+ # DatabaseInventory is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+ # the Free Software Foundation; either version 3 of the License, or
+ # (at your option) any later version.
+ #
+ # DatabaseInventory is distributed in the hope that it will be useful,
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ # GNU General Public License for more details.
+ #
+ # You should have received a copy of the GNU General Public License
+ # along with DatabaseInventory. If not, see .
+ # -------------------------------------------------------------------------
+ # @copyright Copyright (C) 2021-2023 by Teclib'.
+ # @license GPLv3 https://www.gnu.org/licenses/gpl-3.0.html
+ # @link https://services.glpi-network.com
+ # -------------------------------------------------------------------------
+ #}
+
{% import "components/form/fields_macros.html.twig" as fields %}
{% set rand = random() %}
diff --git a/templates/contactlog.html.twig b/templates/contactlog.html.twig
index fddfcaf..e3f154e 100644
--- a/templates/contactlog.html.twig
+++ b/templates/contactlog.html.twig
@@ -1,3 +1,31 @@
+{#
+ # -------------------------------------------------------------------------
+ # DatabaseInventory plugin for GLPI
+ # -------------------------------------------------------------------------
+ #
+ # LICENSE
+ #
+ # This file is part of DatabaseInventory.
+ #
+ # DatabaseInventory is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+ # the Free Software Foundation; either version 3 of the License, or
+ # (at your option) any later version.
+ #
+ # DatabaseInventory is distributed in the hope that it will be useful,
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ # GNU General Public License for more details.
+ #
+ # You should have received a copy of the GNU General Public License
+ # along with DatabaseInventory. If not, see .
+ # -------------------------------------------------------------------------
+ # @copyright Copyright (C) 2021-2023 by Teclib'.
+ # @license GPLv3 https://www.gnu.org/licenses/gpl-3.0.html
+ # @link https://services.glpi-network.com
+ # -------------------------------------------------------------------------
+ #}
+
{% import "components/form/fields_macros.html.twig" as fields %}
{% block more_fields %}
diff --git a/templates/credential.html.twig b/templates/credential.html.twig
index b545b6c..be13da5 100644
--- a/templates/credential.html.twig
+++ b/templates/credential.html.twig
@@ -1,3 +1,31 @@
+{#
+ # -------------------------------------------------------------------------
+ # DatabaseInventory plugin for GLPI
+ # -------------------------------------------------------------------------
+ #
+ # LICENSE
+ #
+ # This file is part of DatabaseInventory.
+ #
+ # DatabaseInventory is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+ # the Free Software Foundation; either version 3 of the License, or
+ # (at your option) any later version.
+ #
+ # DatabaseInventory is distributed in the hope that it will be useful,
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ # GNU General Public License for more details.
+ #
+ # You should have received a copy of the GNU General Public License
+ # along with DatabaseInventory. If not, see .
+ # -------------------------------------------------------------------------
+ # @copyright Copyright (C) 2021-2023 by Teclib'.
+ # @license GPLv3 https://www.gnu.org/licenses/gpl-3.0.html
+ # @link https://services.glpi-network.com
+ # -------------------------------------------------------------------------
+ #}
+
{% extends "generic_show_form.html.twig" %}
{% import "components/form/fields_macros.html.twig" as fields %}
diff --git a/templates/databaseparam.html.twig b/templates/databaseparam.html.twig
index 119aef2..a6de483 100644
--- a/templates/databaseparam.html.twig
+++ b/templates/databaseparam.html.twig
@@ -1,3 +1,31 @@
+{#
+ # -------------------------------------------------------------------------
+ # DatabaseInventory plugin for GLPI
+ # -------------------------------------------------------------------------
+ #
+ # LICENSE
+ #
+ # This file is part of DatabaseInventory.
+ #
+ # DatabaseInventory is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+ # the Free Software Foundation; either version 3 of the License, or
+ # (at your option) any later version.
+ #
+ # DatabaseInventory is distributed in the hope that it will be useful,
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ # GNU General Public License for more details.
+ #
+ # You should have received a copy of the GNU General Public License
+ # along with DatabaseInventory. If not, see .
+ # -------------------------------------------------------------------------
+ # @copyright Copyright (C) 2021-2023 by Teclib'.
+ # @license GPLv3 https://www.gnu.org/licenses/gpl-3.0.html
+ # @link https://services.glpi-network.com
+ # -------------------------------------------------------------------------
+ #}
+
{% extends "generic_show_form.html.twig" %}
{% import "components/form/fields_macros.html.twig" as fields %}
diff --git a/templates/databaseparam_computergroup.html.twig b/templates/databaseparam_computergroup.html.twig
index 2335017..4561596 100644
--- a/templates/databaseparam_computergroup.html.twig
+++ b/templates/databaseparam_computergroup.html.twig
@@ -1,3 +1,31 @@
+{#
+ # -------------------------------------------------------------------------
+ # DatabaseInventory plugin for GLPI
+ # -------------------------------------------------------------------------
+ #
+ # LICENSE
+ #
+ # This file is part of DatabaseInventory.
+ #
+ # DatabaseInventory is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+ # the Free Software Foundation; either version 3 of the License, or
+ # (at your option) any later version.
+ #
+ # DatabaseInventory is distributed in the hope that it will be useful,
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ # GNU General Public License for more details.
+ #
+ # You should have received a copy of the GNU General Public License
+ # along with DatabaseInventory. If not, see .
+ # -------------------------------------------------------------------------
+ # @copyright Copyright (C) 2021-2023 by Teclib'.
+ # @license GPLv3 https://www.gnu.org/licenses/gpl-3.0.html
+ # @link https://services.glpi-network.com
+ # -------------------------------------------------------------------------
+ #}
+
{% import "components/form/fields_macros.html.twig" as fields %}
{% set rand = random() %}
diff --git a/templates/databaseparam_credential.html.twig b/templates/databaseparam_credential.html.twig
index 38546bd..9851095 100644
--- a/templates/databaseparam_credential.html.twig
+++ b/templates/databaseparam_credential.html.twig
@@ -1,3 +1,31 @@
+{#
+ # -------------------------------------------------------------------------
+ # DatabaseInventory plugin for GLPI
+ # -------------------------------------------------------------------------
+ #
+ # LICENSE
+ #
+ # This file is part of DatabaseInventory.
+ #
+ # DatabaseInventory is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+ # the Free Software Foundation; either version 3 of the License, or
+ # (at your option) any later version.
+ #
+ # DatabaseInventory is distributed in the hope that it will be useful,
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ # GNU General Public License for more details.
+ #
+ # You should have received a copy of the GNU General Public License
+ # along with DatabaseInventory. If not, see .
+ # -------------------------------------------------------------------------
+ # @copyright Copyright (C) 2021-2023 by Teclib'.
+ # @license GPLv3 https://www.gnu.org/licenses/gpl-3.0.html
+ # @link https://services.glpi-network.com
+ # -------------------------------------------------------------------------
+ #}
+
{% import "components/form/fields_macros.html.twig" as fields %}
{% set rand = random() %}
From 3d5afab44fbe9811166a549976e37f21b60d655e Mon Sep 17 00:00:00 2001
From: LAUNAY Samuel <107540223+Lainow@users.noreply.github.com>
Date: Mon, 20 Nov 2023 10:07:05 +0100
Subject: [PATCH 8/9] Fix headers missed
---
inc/computergroup.class.php | 28 +++++++++++++++++++++++
inc/computergroupstatic.class.php | 28 +++++++++++++++++++++++
inc/contactlog.class.php | 28 +++++++++++++++++++++++
inc/credential.class.php | 28 +++++++++++++++++++++++
inc/databaseparam.class.php | 28 +++++++++++++++++++++++
inc/databaseparam_computergroup.class.php | 28 +++++++++++++++++++++++
inc/databaseparam_credential.class.php | 28 +++++++++++++++++++++++
7 files changed, 196 insertions(+)
diff --git a/inc/computergroup.class.php b/inc/computergroup.class.php
index 5bbd605..ded7327 100644
--- a/inc/computergroup.class.php
+++ b/inc/computergroup.class.php
@@ -1,5 +1,33 @@
.
+ * -------------------------------------------------------------------------
+ * @copyright Copyright (C) 2021-2023 by Teclib'.
+ * @license GPLv3 https://www.gnu.org/licenses/gpl-3.0.html
+ * @link https://services.glpi-network.com
+ * -------------------------------------------------------------------------
+ */
+
use Glpi\Application\View\TemplateRenderer;
/**
diff --git a/inc/computergroupstatic.class.php b/inc/computergroupstatic.class.php
index d4b694a..28c62bb 100644
--- a/inc/computergroupstatic.class.php
+++ b/inc/computergroupstatic.class.php
@@ -1,5 +1,33 @@
.
+ * -------------------------------------------------------------------------
+ * @copyright Copyright (C) 2021-2023 by Teclib'.
+ * @license GPLv3 https://www.gnu.org/licenses/gpl-3.0.html
+ * @link https://services.glpi-network.com
+ * -------------------------------------------------------------------------
+ */
+
use Glpi\Application\View\TemplateRenderer;
/**
diff --git a/inc/contactlog.class.php b/inc/contactlog.class.php
index 3a1519e..97a0f33 100644
--- a/inc/contactlog.class.php
+++ b/inc/contactlog.class.php
@@ -1,5 +1,33 @@
.
+ * -------------------------------------------------------------------------
+ * @copyright Copyright (C) 2021-2023 by Teclib'.
+ * @license GPLv3 https://www.gnu.org/licenses/gpl-3.0.html
+ * @link https://services.glpi-network.com
+ * -------------------------------------------------------------------------
+ */
+
use Glpi\Application\View\TemplateRenderer;
/**
diff --git a/inc/credential.class.php b/inc/credential.class.php
index 78892b5..afd89d6 100644
--- a/inc/credential.class.php
+++ b/inc/credential.class.php
@@ -1,5 +1,33 @@
.
+ * -------------------------------------------------------------------------
+ * @copyright Copyright (C) 2021-2023 by Teclib'.
+ * @license GPLv3 https://www.gnu.org/licenses/gpl-3.0.html
+ * @link https://services.glpi-network.com
+ * -------------------------------------------------------------------------
+ */
+
use Glpi\Application\View\TemplateRenderer;
/**
diff --git a/inc/databaseparam.class.php b/inc/databaseparam.class.php
index 0cb1ea6..2ed6cc7 100644
--- a/inc/databaseparam.class.php
+++ b/inc/databaseparam.class.php
@@ -1,5 +1,33 @@
.
+ * -------------------------------------------------------------------------
+ * @copyright Copyright (C) 2021-2023 by Teclib'.
+ * @license GPLv3 https://www.gnu.org/licenses/gpl-3.0.html
+ * @link https://services.glpi-network.com
+ * -------------------------------------------------------------------------
+ */
+
use Glpi\Application\View\TemplateRenderer;
/**
diff --git a/inc/databaseparam_computergroup.class.php b/inc/databaseparam_computergroup.class.php
index b260e8d..a58a5da 100644
--- a/inc/databaseparam_computergroup.class.php
+++ b/inc/databaseparam_computergroup.class.php
@@ -1,5 +1,33 @@
.
+ * -------------------------------------------------------------------------
+ * @copyright Copyright (C) 2021-2023 by Teclib'.
+ * @license GPLv3 https://www.gnu.org/licenses/gpl-3.0.html
+ * @link https://services.glpi-network.com
+ * -------------------------------------------------------------------------
+ */
+
use Glpi\Application\View\TemplateRenderer;
/**
diff --git a/inc/databaseparam_credential.class.php b/inc/databaseparam_credential.class.php
index 5dea0f7..2f87227 100644
--- a/inc/databaseparam_credential.class.php
+++ b/inc/databaseparam_credential.class.php
@@ -1,5 +1,33 @@
.
+ * -------------------------------------------------------------------------
+ * @copyright Copyright (C) 2021-2023 by Teclib'.
+ * @license GPLv3 https://www.gnu.org/licenses/gpl-3.0.html
+ * @link https://services.glpi-network.com
+ * -------------------------------------------------------------------------
+ */
+
use Glpi\Application\View\TemplateRenderer;
/**
From be97fa751b6c493abaa3b1cd95775c63726aaf1d Mon Sep 17 00:00:00 2001
From: stonebuzz
Date: Wed, 21 Feb 2024 09:07:45 +0100
Subject: [PATCH 9/9] update icon
---
inc/computergroup.class.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/inc/computergroup.class.php b/inc/computergroup.class.php
index ded7327..e60878c 100644
--- a/inc/computergroup.class.php
+++ b/inc/computergroup.class.php
@@ -275,7 +275,7 @@ public static function uninstall(Migration $migration)
public static function getIcon()
{
- return "fas fa-list-alt";
+ return "ti ti-sitemap";
}
public function post_purgeItem()