Skip to content

Commit e2a7da5

Browse files
author
Walid Nouh
committed
TAG 2.4.1
0 parents  commit e2a7da5

File tree

159 files changed

+22615
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+22615
-0
lines changed

LICENSE

+339
Large diffs are not rendered by default.

ajax/dropdownChooseField.php

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?php
2+
/*
3+
* @version $Id$
4+
LICENSE
5+
6+
This file is part of the datainjection plugin.
7+
8+
Datainjection plugin is free software; you can redistribute it and/or modify
9+
it under the terms of the GNU General Public License as published by
10+
the Free Software Foundation; either version 2 of the License, or
11+
(at your option) any later version.
12+
13+
Datainjection plugin is distributed in the hope that it will be useful,
14+
but WITHOUT ANY WARRANTY; without even the implied warranty of
15+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16+
GNU General Public License for more details.
17+
18+
You should have received a copy of the GNU General Public License
19+
along with datainjection. If not, see <http://www.gnu.org/licenses/>.
20+
--------------------------------------------------------------------------
21+
@package datainjection
22+
@author the datainjection plugin team
23+
@copyright Copyright (c) 2010-2013 Datainjection plugin team
24+
@license GPLv2+
25+
http://www.gnu.org/licenses/gpl.txt
26+
@link https://forge.indepnet.net/projects/datainjection
27+
@link http://www.glpi-project.org/
28+
@since 2009
29+
---------------------------------------------------------------------- */
30+
31+
// Direct access to file
32+
if (strpos($_SERVER['PHP_SELF'],"dropdownChooseField.php")) {
33+
include ('../../../inc/includes.php');
34+
header("Content-Type: text/html; charset=UTF-8");
35+
Html::header_nocache();
36+
}
37+
38+
Session::checkCentralAccess();
39+
PluginDatainjectionInjectionType::dropdownFields($_POST);
40+
41+
?>

ajax/dropdownMandatory.php

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?php
2+
/*
3+
* @version $Id$
4+
LICENSE
5+
6+
This file is part of the datainjection plugin.
7+
8+
Datainjection plugin is free software; you can redistribute it and/or modify
9+
it under the terms of the GNU General Public License as published by
10+
the Free Software Foundation; either version 2 of the License, or
11+
(at your option) any later version.
12+
13+
Datainjection plugin is distributed in the hope that it will be useful,
14+
but WITHOUT ANY WARRANTY; without even the implied warranty of
15+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16+
GNU General Public License for more details.
17+
18+
You should have received a copy of the GNU General Public License
19+
along with datainjection. If not, see <http://www.gnu.org/licenses/>.
20+
--------------------------------------------------------------------------
21+
@package datainjection
22+
@author the datainjection plugin team
23+
@copyright Copyright (c) 2010-2013 Datainjection plugin team
24+
@license GPLv2+
25+
http://www.gnu.org/licenses/gpl.txt
26+
@link https://forge.indepnet.net/projects/datainjection
27+
@link http://www.glpi-project.org/
28+
@since 2009
29+
---------------------------------------------------------------------- */
30+
31+
// Direct access to file
32+
if (strpos($_SERVER['PHP_SELF'],"dropdownMandatory.php")) {
33+
include ('../../../inc/includes.php');
34+
header("Content-Type: text/html; charset=UTF-8");
35+
Html::header_nocache();
36+
}
37+
38+
Session::checkCentralAccess();
39+
PluginDatainjectionInjectionType::showMandatoryCheckBox($_POST);
40+
?>

ajax/dropdownSelectModel.php

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<?php
2+
/*
3+
* @version $Id$
4+
LICENSE
5+
6+
This file is part of the datainjection plugin.
7+
8+
Datainjection plugin is free software; you can redistribute it and/or modify
9+
it under the terms of the GNU General Public License as published by
10+
the Free Software Foundation; either version 2 of the License, or
11+
(at your option) any later version.
12+
13+
Datainjection plugin is distributed in the hope that it will be useful,
14+
but WITHOUT ANY WARRANTY; without even the implied warranty of
15+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16+
GNU General Public License for more details.
17+
18+
You should have received a copy of the GNU General Public License
19+
along with datainjection. If not, see <http://www.gnu.org/licenses/>.
20+
--------------------------------------------------------------------------
21+
@package datainjection
22+
@author the datainjection plugin team
23+
@copyright Copyright (c) 2010-2013 Datainjection plugin team
24+
@license GPLv2+
25+
http://www.gnu.org/licenses/gpl.txt
26+
@link https://forge.indepnet.net/projects/datainjection
27+
@link http://www.glpi-project.org/
28+
@since 2009
29+
---------------------------------------------------------------------- */
30+
31+
// Direct access to file
32+
if (strpos($_SERVER['PHP_SELF'],"dropdownSelectModel.php")) {
33+
include ('../../../inc/includes.php');
34+
header("Content-Type: text/html; charset=UTF-8");
35+
Html::header_nocache();
36+
}
37+
38+
Session::checkCentralAccess();
39+
40+
if (isset($_SESSION['datainjection']['models_id'])
41+
&& $_SESSION['datainjection']['models_id']!=$_POST['models_id']) {
42+
PluginDatainjectionModel::cleanSessionVariables();
43+
}
44+
45+
$_SESSION['datainjection']['step'] = PluginDatainjectionClientInjection::STEP_UPLOAD;
46+
$model = new PluginDatainjectionModel();
47+
48+
if (($_POST['models_id'] > 0)
49+
&& $model->can($_POST['models_id'], READ)) {
50+
PluginDatainjectionInfo::showAdditionalInformationsForm($model);
51+
}
52+
53+
?>

ajax/injection.php

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?php
2+
/*
3+
* @version $Id$
4+
LICENSE
5+
6+
This file is part of the datainjection plugin.
7+
8+
Datainjection plugin is free software; you can redistribute it and/or modify
9+
it under the terms of the GNU General Public License as published by
10+
the Free Software Foundation; either version 2 of the License, or
11+
(at your option) any later version.
12+
13+
Datainjection plugin is distributed in the hope that it will be useful,
14+
but WITHOUT ANY WARRANTY; without even the implied warranty of
15+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16+
GNU General Public License for more details.
17+
18+
You should have received a copy of the GNU General Public License
19+
along with datainjection. If not, see <http://www.gnu.org/licenses/>.
20+
--------------------------------------------------------------------------
21+
@package datainjection
22+
@author the datainjection plugin team
23+
@copyright Copyright (c) 2010-2013 Datainjection plugin team
24+
@license GPLv2+
25+
http://www.gnu.org/licenses/gpl.txt
26+
@link https://forge.indepnet.net/projects/datainjection
27+
@link http://www.glpi-project.org/
28+
@since 2009
29+
---------------------------------------------------------------------- */
30+
31+
// Direct access to file
32+
if (strpos($_SERVER['PHP_SELF'],"injection.php")) {
33+
include ('../../../inc/includes.php');
34+
header("Content-Type: text/html; charset=UTF-8");
35+
Html::header_nocache();
36+
}
37+
38+
Session::checkCentralAccess();
39+
$model = unserialize($_SESSION['datainjection']['currentmodel']);
40+
PluginDatainjectionClientInjection::showInjectionForm($model, $_SESSION['glpiactive_entity']);
41+
?>

ajax/results.php

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?php
2+
/*
3+
* @version $Id$
4+
LICENSE
5+
6+
This file is part of the datainjection plugin.
7+
8+
Datainjection plugin is free software; you can redistribute it and/or modify
9+
it under the terms of the GNU General Public License as published by
10+
the Free Software Foundation; either version 2 of the License, or
11+
(at your option) any later version.
12+
13+
Datainjection plugin is distributed in the hope that it will be useful,
14+
but WITHOUT ANY WARRANTY; without even the implied warranty of
15+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16+
GNU General Public License for more details.
17+
18+
You should have received a copy of the GNU General Public License
19+
along with datainjection. If not, see <http://www.gnu.org/licenses/>.
20+
--------------------------------------------------------------------------
21+
@package datainjection
22+
@author the datainjection plugin team
23+
@copyright Copyright (c) 2010-2013 Datainjection plugin team
24+
@license GPLv2+
25+
http://www.gnu.org/licenses/gpl.txt
26+
@link https://forge.indepnet.net/projects/datainjection
27+
@link http://www.glpi-project.org/
28+
@since 2009
29+
---------------------------------------------------------------------- */
30+
31+
// Direct access to file
32+
if (strpos($_SERVER['PHP_SELF'],"results.php")) {
33+
include ('../../../inc/includes.php');
34+
header("Content-Type: text/html; charset=UTF-8");
35+
Html::header_nocache();
36+
}
37+
38+
Session::checkCentralAccess();
39+
$model = unserialize($_SESSION['datainjection']['currentmodel']);
40+
PluginDatainjectionClientInjection::showResultsForm($model);
41+
?>

0 commit comments

Comments
 (0)