Skip to content
This repository was archived by the owner on Oct 9, 2023. It is now read-only.

Commit bd6145d

Browse files
committed
ajout licence, rm des includes manuels (autoload ok), coding standard
1 parent 3245afc commit bd6145d

25 files changed

Lines changed: 2168 additions & 1699 deletions

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.settings/
2+
.buildpath
3+
.project

LICENSE

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

README

Whitespace-only changes.

ajax/ajax.php

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,45 @@
11
<?php
2+
3+
/*
4+
------------------------------------------------------------------------
5+
GLPI Plugin MantisBT
6+
Copyright (C) 2014 by the GLPI Plugin MantisBT Development Team.
7+
8+
https://forge.indepnet.net/projects/mantis
9+
------------------------------------------------------------------------
10+
11+
LICENSE
12+
13+
This file is part of GLPI Plugin MantisBT project.
14+
15+
GLPI Plugin MantisBT is free software; you can redistribute it and/or modify
16+
it under the terms of the GNU General Public License as published by
17+
the Free Software Foundation; either version 3 of the License, or
18+
(at your option) any later version.
19+
20+
GLPI Plugin MantisBT is distributed in the hope that it will be useful,
21+
but WITHOUT ANY WARRANTY; without even the implied warranty of
22+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23+
GNU General Public License for more details.
24+
25+
You should have received a copy of the GNU General Public License
26+
along with GLPI Plugin MantisBT. If not, see <http://www.gnu.org/licenses/>.
27+
28+
------------------------------------------------------------------------
29+
30+
@package GLPI Plugin MantisBT
31+
@author Stanislas Kita (teclib')
32+
@co-author François Legastelois (teclib')
33+
@co-author Le Conseil d'Etat
34+
@copyright Copyright (c) 2014 GLPI Plugin MantisBT Development team
35+
@license GPLv3 or (at your option) any later version
36+
http://www.gnu.org/licenses/gpl.html
37+
@link https://forge.indepnet.net/projects/mantis
38+
@since 2014
39+
40+
------------------------------------------------------------------------
41+
*/
42+
243
include('../../../inc/includes.php');
344
require_once('../inc/mantisWS.class.php');
445
require_once('../inc/mantis.class.php');

front/config.form.php

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,45 @@
11
<?php
2+
3+
/*
4+
------------------------------------------------------------------------
5+
GLPI Plugin MantisBT
6+
Copyright (C) 2014 by the GLPI Plugin MantisBT Development Team.
7+
8+
https://forge.indepnet.net/projects/mantis
9+
------------------------------------------------------------------------
10+
11+
LICENSE
12+
13+
This file is part of GLPI Plugin MantisBT project.
14+
15+
GLPI Plugin MantisBT is free software; you can redistribute it and/or modify
16+
it under the terms of the GNU General Public License as published by
17+
the Free Software Foundation; either version 3 of the License, or
18+
(at your option) any later version.
19+
20+
GLPI Plugin MantisBT is distributed in the hope that it will be useful,
21+
but WITHOUT ANY WARRANTY; without even the implied warranty of
22+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23+
GNU General Public License for more details.
24+
25+
You should have received a copy of the GNU General Public License
26+
along with GLPI Plugin MantisBT. If not, see <http://www.gnu.org/licenses/>.
27+
28+
------------------------------------------------------------------------
29+
30+
@package GLPI Plugin MantisBT
31+
@author Stanislas Kita (teclib')
32+
@co-author François Legastelois (teclib')
33+
@co-author Le Conseil d'Etat
34+
@copyright Copyright (c) 2014 GLPI Plugin MantisBT Development team
35+
@license GPLv3 or (at your option) any later version
36+
http://www.gnu.org/licenses/gpl.html
37+
@link https://forge.indepnet.net/projects/mantis
38+
@since 2014
39+
40+
------------------------------------------------------------------------
41+
*/
42+
243
include ('../../../inc/includes.php');
344
require_once('../inc/config.class.php');
445

front/mantis.form.php

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,45 @@
11
<?php
2+
3+
/*
4+
------------------------------------------------------------------------
5+
GLPI Plugin MantisBT
6+
Copyright (C) 2014 by the GLPI Plugin MantisBT Development Team.
7+
8+
https://forge.indepnet.net/projects/mantis
9+
------------------------------------------------------------------------
10+
11+
LICENSE
12+
13+
This file is part of GLPI Plugin MantisBT project.
14+
15+
GLPI Plugin MantisBT is free software; you can redistribute it and/or modify
16+
it under the terms of the GNU General Public License as published by
17+
the Free Software Foundation; either version 3 of the License, or
18+
(at your option) any later version.
19+
20+
GLPI Plugin MantisBT is distributed in the hope that it will be useful,
21+
but WITHOUT ANY WARRANTY; without even the implied warranty of
22+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23+
GNU General Public License for more details.
24+
25+
You should have received a copy of the GNU General Public License
26+
along with GLPI Plugin MantisBT. If not, see <http://www.gnu.org/licenses/>.
27+
28+
------------------------------------------------------------------------
29+
30+
@package GLPI Plugin MantisBT
31+
@author Stanislas Kita (teclib')
32+
@co-author François Legastelois (teclib')
33+
@co-author Le Conseil d'Etat
34+
@copyright Copyright (c) 2014 GLPI Plugin MantisBT Development team
35+
@license GPLv3 or (at your option) any later version
36+
http://www.gnu.org/licenses/gpl.html
37+
@link https://forge.indepnet.net/projects/mantis
38+
@since 2014
39+
40+
------------------------------------------------------------------------
41+
*/
42+
243
include('../../../inc/includes.php');
344
require_once('../inc/mantis.class.php');
445

front/profile.form.php

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,45 @@
11
<?php
2+
3+
/*
4+
------------------------------------------------------------------------
5+
GLPI Plugin MantisBT
6+
Copyright (C) 2014 by the GLPI Plugin MantisBT Development Team.
7+
8+
https://forge.indepnet.net/projects/mantis
9+
------------------------------------------------------------------------
10+
11+
LICENSE
12+
13+
This file is part of GLPI Plugin MantisBT project.
14+
15+
GLPI Plugin MantisBT is free software; you can redistribute it and/or modify
16+
it under the terms of the GNU General Public License as published by
17+
the Free Software Foundation; either version 3 of the License, or
18+
(at your option) any later version.
19+
20+
GLPI Plugin MantisBT is distributed in the hope that it will be useful,
21+
but WITHOUT ANY WARRANTY; without even the implied warranty of
22+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23+
GNU General Public License for more details.
24+
25+
You should have received a copy of the GNU General Public License
26+
along with GLPI Plugin MantisBT. If not, see <http://www.gnu.org/licenses/>.
27+
28+
------------------------------------------------------------------------
29+
30+
@package GLPI Plugin MantisBT
31+
@author Stanislas Kita (teclib')
32+
@co-author François Legastelois (teclib')
33+
@co-author Le Conseil d'Etat
34+
@copyright Copyright (c) 2014 GLPI Plugin MantisBT Development team
35+
@license GPLv3 or (at your option) any later version
36+
http://www.gnu.org/licenses/gpl.html
37+
@link https://forge.indepnet.net/projects/mantis
38+
@since 2014
39+
40+
------------------------------------------------------------------------
41+
*/
42+
243
include ("../../../inc/includes.php");
344

445
Session::checkRight("profile", "r");

hook.php

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,45 @@
11
<?php
22

3+
/*
4+
------------------------------------------------------------------------
5+
GLPI Plugin MantisBT
6+
Copyright (C) 2014 by the GLPI Plugin MantisBT Development Team.
7+
8+
https://forge.indepnet.net/projects/mantis
9+
------------------------------------------------------------------------
10+
11+
LICENSE
12+
13+
This file is part of GLPI Plugin MantisBT project.
14+
15+
GLPI Plugin MantisBT is free software; you can redistribute it and/or modify
16+
it under the terms of the GNU General Public License as published by
17+
the Free Software Foundation; either version 3 of the License, or
18+
(at your option) any later version.
19+
20+
GLPI Plugin MantisBT is distributed in the hope that it will be useful,
21+
but WITHOUT ANY WARRANTY; without even the implied warranty of
22+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23+
GNU General Public License for more details.
24+
25+
You should have received a copy of the GNU General Public License
26+
along with GLPI Plugin MantisBT. If not, see <http://www.gnu.org/licenses/>.
27+
28+
------------------------------------------------------------------------
29+
30+
@package GLPI Plugin MantisBT
31+
@author Stanislas Kita (teclib')
32+
@co-author François Legastelois (teclib')
33+
@co-author Le Conseil d'Etat
34+
@copyright Copyright (c) 2014 GLPI Plugin MantisBT Development team
35+
@license GPLv3 or (at your option) any later version
36+
http://www.gnu.org/licenses/gpl.html
37+
@link https://forge.indepnet.net/projects/mantis
38+
@since 2014
39+
40+
------------------------------------------------------------------------
41+
*/
42+
343
/**
444
* function to install the plugin
545
* @return boolean

inc/config.class.php

Lines changed: 45 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,55 @@
11
<?php
2-
require_once('mantisIssue.class.php');
2+
3+
/*
4+
------------------------------------------------------------------------
5+
GLPI Plugin MantisBT
6+
Copyright (C) 2014 by the GLPI Plugin MantisBT Development Team.
7+
8+
https://forge.indepnet.net/projects/mantis
9+
------------------------------------------------------------------------
10+
11+
LICENSE
12+
13+
This file is part of GLPI Plugin MantisBT project.
14+
15+
GLPI Plugin MantisBT is free software; you can redistribute it and/or modify
16+
it under the terms of the GNU General Public License as published by
17+
the Free Software Foundation; either version 3 of the License, or
18+
(at your option) any later version.
19+
20+
GLPI Plugin MantisBT is distributed in the hope that it will be useful,
21+
but WITHOUT ANY WARRANTY; without even the implied warranty of
22+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23+
GNU General Public License for more details.
24+
25+
You should have received a copy of the GNU General Public License
26+
along with GLPI Plugin MantisBT. If not, see <http://www.gnu.org/licenses/>.
27+
28+
------------------------------------------------------------------------
29+
30+
@package GLPI Plugin MantisBT
31+
@author Stanislas Kita (teclib')
32+
@co-author François Legastelois (teclib')
33+
@co-author Le Conseil d'Etat
34+
@copyright Copyright (c) 2014 GLPI Plugin MantisBT Development team
35+
@license GPLv3 or (at your option) any later version
36+
http://www.gnu.org/licenses/gpl.html
37+
@link https://forge.indepnet.net/projects/mantis
38+
@since 2014
39+
40+
------------------------------------------------------------------------
41+
*/
42+
343
/**
444
* Class PluginMantisConfig pour la partie gestion de la configuration
545
*/
6-
class PluginMantisConfig extends CommonDBTM
7-
{
8-
46+
class PluginMantisConfig extends CommonDBTM {
947

1048
/**
1149
* Function to define if the user have right to create
1250
* @return bool|booleen
1351
*/
14-
static function canCreate()
15-
{
52+
static function canCreate() {
1653
return Session::haveRight('config', 'w');
1754
}
1855

@@ -21,17 +58,15 @@ static function canCreate()
2158
* Function to define if the user have right to view
2259
* @return bool|booleen
2360
*/
24-
static function canView()
25-
{
61+
static function canView() {
2662
return Session::haveRight('config', 'r');
2763
}
2864

2965

3066
/**
3167
* Function to show form to configure the plugin MantisBT
3268
*/
33-
function showConfigForm()
34-
{
69+
function showConfigForm() {
3570
//we recover the first and only record
3671
$this->getFromDB(1);
3772

@@ -128,7 +163,4 @@ function showConfigForm()
128163
echo $content;
129164
}
130165

131-
132-
133-
134166
}

0 commit comments

Comments
 (0)