Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/vendor/
composer.lock
*.log
.vscode/
vendor/
Empty file modified LICENSE
100644 → 100755
Empty file.
11 changes: 5 additions & 6 deletions README.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
## Transferticketentity plugin for GLPI

[![License](https://img.shields.io/badge/License-GNU%20GPL%20v3-blue.svg?style=flat-square)](https://github.com/pluginsGLPI/transferticketentity/blob/master/LICENSE)
[![Translate](https://img.shields.io/badge/Translate-Transifex-cyan)](https://explore.transifex.com/pluginsGLPI/glpi-plugin-transfer-ticket-entity/)


# GLPi Transfer Ticket Entity Plugin (FR)

## Introduction
Expand Down Expand Up @@ -43,7 +37,9 @@ Pour configurer les prérequis du transfert d'entité :
Vous pouvez configurer les droits d'accès au plugin dans l'administration des profils.
Les prérequis du transfert se gèrent dans l'administration des entités.

## Compatibilité

Ce plugin a été testé jusqu'à la version de GLPI 10.0.14

# GLPi Transfer Ticket Entity Plugin (EN)

Expand Down Expand Up @@ -84,3 +80,6 @@ To configure entity transfer prerequisites :
You can configure access rights to the plugin in profile administration.
The transfer prerequisites are managed in the entity administration.

## Compatibility

This plugin has been tested up to GLPI version 10.0.14
56 changes: 28 additions & 28 deletions ajax/getEntitiesRights.php
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
<?php

/*
-------------------------------------------------------------------------
LICENSE

This file is part of Transferticketentity plugin for GLPI.

Transferticketentity is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Transferticketentity 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 Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with Reports. If not, see <http://www.gnu.org/licenses/>.

@category Ticket
@package Transferticketentity
@author Yannick Comba, Xavier Caillaud, Infotel
@copyright 2015-2026 Transferticketentity team
@license AGPL License 3.0 or (at your option) any later version
https://www.gnu.org/licenses/gpl-3.0.html
@link https://github.com/pluginsGLPI/transferticketentity/
--------------------------------------------------------------------------
/**
* -------------------------------------------------------------------------
* LICENSE
*
* This file is part of Transferticketentity plugin for GLPI.
*
* Transferticketentity is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Transferticketentity 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Reports. If not, see <http://www.gnu.org/licenses/>.
*
* @category Ticket
* @package Transferticketentity
* @author Yannick Comba, Xavier Caillaud, Infotel, Département de Maine-et-Loire, Ilyasse Mellouk
* @copyright 2015-2026 Transferticketentity team
* @license AGPL License 3.0 or (at your option) any later version
* https://www.gnu.org/licenses/gpl-3.0.html
* @link https://github.com/pluginsGLPI/transferticketentity/
* --------------------------------------------------------------------------
*/

use GlpiPlugin\Transferticketentity\Entity;

header("Content-Type: application/json; charset=UTF-8");
header("Content-Type: text/html; charset=UTF-8");
Html::header_nocache();

Session::checkLoginUser();
Expand Down
58 changes: 29 additions & 29 deletions ajax/showentitygroups.php
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
<?php

/*
-------------------------------------------------------------------------
LICENSE

This file is part of Transferticketentity plugin for GLPI.

Transferticketentity is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Transferticketentity 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 Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with Reports. If not, see <http://www.gnu.org/licenses/>.

@category Ticket
@package Transferticketentity
@author Yannick Comba, Xavier Caillaud, Infotel
@copyright 2015-2026 Transferticketentity team
@license AGPL License 3.0 or (at your option) any later version
https://www.gnu.org/licenses/gpl-3.0.html
@link https://github.com/pluginsGLPI/transferticketentity/
--------------------------------------------------------------------------
/**
* -------------------------------------------------------------------------
* Metademands plugin for GLPI
* -------------------------------------------------------------------------
*
* LICENSE
*
* This file is part of Metademands.
*
* Metademands 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 2 of the License, or
* (at your option) any later version.
*
* Metademands 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 Metademands. If not, see <http://www.gnu.org/licenses/>.
* -------------------------------------------------------------------------
* @copyright Copyright (C) 2013-2022 by Metademands plugin team.
* @copyright 2015-2022 Teclib' and contributors.
* @copyright 2003-2014 by the INDEPNET Development Team.
* @licence https://www.gnu.org/licenses/gpl-3.0.html
* @license GPLv2 https://www.gnu.org/licenses/gpl-2.0.html
* @link https://github.com/pluginsGLPI/Metademands
* -------------------------------------------------------------------------
*/

use GlpiPlugin\Transferticketentity\Ticket;

Session::checkLoginUser();

if (strpos($_SERVER['PHP_SELF'], "showentitygroups.php")) {
header("Content-Type: text/html; charset=UTF-8");
Html::header_nocache();
Expand Down
59 changes: 29 additions & 30 deletions ajax/showentitymandatorygroup.php
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,46 +1,45 @@
<?php

/*
-------------------------------------------------------------------------
LICENSE

This file is part of Transferticketentity plugin for GLPI.

Transferticketentity is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Transferticketentity 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 Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with Reports. If not, see <http://www.gnu.org/licenses/>.

@category Ticket
@package Transferticketentity
@author Yannick Comba, Xavier Caillaud, Infotel
@copyright 2015-2026 Transferticketentity team
@license AGPL License 3.0 or (at your option) any later version
https://www.gnu.org/licenses/gpl-3.0.html
@link https://github.com/pluginsGLPI/transferticketentity/
--------------------------------------------------------------------------
/**
* -------------------------------------------------------------------------
* Metademands plugin for GLPI
* -------------------------------------------------------------------------
*
* LICENSE
*
* This file is part of Metademands.
*
* Metademands 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 2 of the License, or
* (at your option) any later version.
*
* Metademands 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 Metademands. If not, see <http://www.gnu.org/licenses/>.
* -------------------------------------------------------------------------
* @copyright Copyright (C) 2013-2022 by Metademands plugin team.
* @copyright 2015-2022 Teclib' and contributors.
* @copyright 2003-2014 by the INDEPNET Development Team.
* @licence https://www.gnu.org/licenses/gpl-3.0.html
* @license GPLv2 https://www.gnu.org/licenses/gpl-2.0.html
* @link https://github.com/pluginsGLPI/Metademands
* -------------------------------------------------------------------------
*/

use GlpiPlugin\Transferticketentity\Entity;

Session::checkLoginUser();

if (strpos($_SERVER['PHP_SELF'], "showentitymandatorygroup.php")) {
header("Content-Type: text/html; charset=UTF-8");
Html::header_nocache();
} elseif (!defined('GLPI_ROOT')) {
die("Sorry. You can't access this file directly");
}

Toolbox::logInfo($_POST);
if (isset($_POST['entity_selection'])) {
$entitites_id = $_POST['entity_selection'];

Expand Down
58 changes: 29 additions & 29 deletions ajax/showentitymandatoryjustification.php
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
<?php

/*
-------------------------------------------------------------------------
LICENSE

This file is part of Transferticketentity plugin for GLPI.

Transferticketentity is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Transferticketentity 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 Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with Reports. If not, see <http://www.gnu.org/licenses/>.

@category Ticket
@package Transferticketentity
@author Yannick Comba, Xavier Caillaud, Infotel
@copyright 2015-2026 Transferticketentity team
@license AGPL License 3.0 or (at your option) any later version
https://www.gnu.org/licenses/gpl-3.0.html
@link https://github.com/pluginsGLPI/transferticketentity/
--------------------------------------------------------------------------
/**
* -------------------------------------------------------------------------
* Metademands plugin for GLPI
* -------------------------------------------------------------------------
*
* LICENSE
*
* This file is part of Metademands.
*
* Metademands 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 2 of the License, or
* (at your option) any later version.
*
* Metademands 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 Metademands. If not, see <http://www.gnu.org/licenses/>.
* -------------------------------------------------------------------------
* @copyright Copyright (C) 2013-2022 by Metademands plugin team.
* @copyright 2015-2022 Teclib' and contributors.
* @copyright 2003-2014 by the INDEPNET Development Team.
* @licence https://www.gnu.org/licenses/gpl-3.0.html
* @license GPLv2 https://www.gnu.org/licenses/gpl-2.0.html
* @link https://github.com/pluginsGLPI/Metademands
* -------------------------------------------------------------------------
*/

use GlpiPlugin\Transferticketentity\Entity;

Session::checkLoginUser();

if (strpos($_SERVER['PHP_SELF'], "showentitymandatoryjustification.php")) {
header("Content-Type: text/html; charset=UTF-8");
Html::header_nocache();
Expand Down
Empty file modified composer.json
100644 → 100755
Empty file.
54 changes: 27 additions & 27 deletions front/entity.form.php
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
<?php

/*
-------------------------------------------------------------------------
LICENSE

This file is part of Transferticketentity plugin for GLPI.

Transferticketentity is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Transferticketentity 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 Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with Reports. If not, see <http://www.gnu.org/licenses/>.

@category Ticket
@package Transferticketentity
@author Yannick Comba, Xavier Caillaud, Infotel
@copyright 2015-2026 Transferticketentity team
@license AGPL License 3.0 or (at your option) any later version
https://www.gnu.org/licenses/gpl-3.0.html
@link https://github.com/pluginsGLPI/transferticketentity/
--------------------------------------------------------------------------
/**
* -------------------------------------------------------------------------
* LICENSE
*
* This file is part of Transferticketentity plugin for GLPI.
*
* Transferticketentity is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Transferticketentity 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Reports. If not, see <http://www.gnu.org/licenses/>.
*
* @category Ticket
* @package Transferticketentity
* @author Yannick Comba, Xavier Caillaud, Infotel, Département de Maine-et-Loire, Ilyasse Mellouk
* @copyright 2015-2026 Transferticketentity team
* @license AGPL License 3.0 or (at your option) any later version
* https://www.gnu.org/licenses/gpl-3.0.html
* @link https://github.com/pluginsGLPI/transferticketentity/
* --------------------------------------------------------------------------
*/

use GlpiPlugin\Transferticketentity\Entity;
Expand Down
Loading