-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Walid Nouh
committed
Aug 14, 2015
0 parents
commit e2a7da5
Showing
159 changed files
with
22,615 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
/* | ||
* @version $Id$ | ||
LICENSE | ||
This file is part of the datainjection plugin. | ||
Datainjection plugin 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. | ||
Datainjection plugin 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 datainjection. If not, see <http://www.gnu.org/licenses/>. | ||
-------------------------------------------------------------------------- | ||
@package datainjection | ||
@author the datainjection plugin team | ||
@copyright Copyright (c) 2010-2013 Datainjection plugin team | ||
@license GPLv2+ | ||
http://www.gnu.org/licenses/gpl.txt | ||
@link https://forge.indepnet.net/projects/datainjection | ||
@link http://www.glpi-project.org/ | ||
@since 2009 | ||
---------------------------------------------------------------------- */ | ||
|
||
// Direct access to file | ||
if (strpos($_SERVER['PHP_SELF'],"dropdownChooseField.php")) { | ||
include ('../../../inc/includes.php'); | ||
header("Content-Type: text/html; charset=UTF-8"); | ||
Html::header_nocache(); | ||
} | ||
|
||
Session::checkCentralAccess(); | ||
PluginDatainjectionInjectionType::dropdownFields($_POST); | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
/* | ||
* @version $Id$ | ||
LICENSE | ||
This file is part of the datainjection plugin. | ||
Datainjection plugin 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. | ||
Datainjection plugin 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 datainjection. If not, see <http://www.gnu.org/licenses/>. | ||
-------------------------------------------------------------------------- | ||
@package datainjection | ||
@author the datainjection plugin team | ||
@copyright Copyright (c) 2010-2013 Datainjection plugin team | ||
@license GPLv2+ | ||
http://www.gnu.org/licenses/gpl.txt | ||
@link https://forge.indepnet.net/projects/datainjection | ||
@link http://www.glpi-project.org/ | ||
@since 2009 | ||
---------------------------------------------------------------------- */ | ||
|
||
// Direct access to file | ||
if (strpos($_SERVER['PHP_SELF'],"dropdownMandatory.php")) { | ||
include ('../../../inc/includes.php'); | ||
header("Content-Type: text/html; charset=UTF-8"); | ||
Html::header_nocache(); | ||
} | ||
|
||
Session::checkCentralAccess(); | ||
PluginDatainjectionInjectionType::showMandatoryCheckBox($_POST); | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?php | ||
/* | ||
* @version $Id$ | ||
LICENSE | ||
This file is part of the datainjection plugin. | ||
Datainjection plugin 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. | ||
Datainjection plugin 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 datainjection. If not, see <http://www.gnu.org/licenses/>. | ||
-------------------------------------------------------------------------- | ||
@package datainjection | ||
@author the datainjection plugin team | ||
@copyright Copyright (c) 2010-2013 Datainjection plugin team | ||
@license GPLv2+ | ||
http://www.gnu.org/licenses/gpl.txt | ||
@link https://forge.indepnet.net/projects/datainjection | ||
@link http://www.glpi-project.org/ | ||
@since 2009 | ||
---------------------------------------------------------------------- */ | ||
|
||
// Direct access to file | ||
if (strpos($_SERVER['PHP_SELF'],"dropdownSelectModel.php")) { | ||
include ('../../../inc/includes.php'); | ||
header("Content-Type: text/html; charset=UTF-8"); | ||
Html::header_nocache(); | ||
} | ||
|
||
Session::checkCentralAccess(); | ||
|
||
if (isset($_SESSION['datainjection']['models_id']) | ||
&& $_SESSION['datainjection']['models_id']!=$_POST['models_id']) { | ||
PluginDatainjectionModel::cleanSessionVariables(); | ||
} | ||
|
||
$_SESSION['datainjection']['step'] = PluginDatainjectionClientInjection::STEP_UPLOAD; | ||
$model = new PluginDatainjectionModel(); | ||
|
||
if (($_POST['models_id'] > 0) | ||
&& $model->can($_POST['models_id'], READ)) { | ||
PluginDatainjectionInfo::showAdditionalInformationsForm($model); | ||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
/* | ||
* @version $Id$ | ||
LICENSE | ||
This file is part of the datainjection plugin. | ||
Datainjection plugin 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. | ||
Datainjection plugin 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 datainjection. If not, see <http://www.gnu.org/licenses/>. | ||
-------------------------------------------------------------------------- | ||
@package datainjection | ||
@author the datainjection plugin team | ||
@copyright Copyright (c) 2010-2013 Datainjection plugin team | ||
@license GPLv2+ | ||
http://www.gnu.org/licenses/gpl.txt | ||
@link https://forge.indepnet.net/projects/datainjection | ||
@link http://www.glpi-project.org/ | ||
@since 2009 | ||
---------------------------------------------------------------------- */ | ||
|
||
// Direct access to file | ||
if (strpos($_SERVER['PHP_SELF'],"injection.php")) { | ||
include ('../../../inc/includes.php'); | ||
header("Content-Type: text/html; charset=UTF-8"); | ||
Html::header_nocache(); | ||
} | ||
|
||
Session::checkCentralAccess(); | ||
$model = unserialize($_SESSION['datainjection']['currentmodel']); | ||
PluginDatainjectionClientInjection::showInjectionForm($model, $_SESSION['glpiactive_entity']); | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
/* | ||
* @version $Id$ | ||
LICENSE | ||
This file is part of the datainjection plugin. | ||
Datainjection plugin 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. | ||
Datainjection plugin 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 datainjection. If not, see <http://www.gnu.org/licenses/>. | ||
-------------------------------------------------------------------------- | ||
@package datainjection | ||
@author the datainjection plugin team | ||
@copyright Copyright (c) 2010-2013 Datainjection plugin team | ||
@license GPLv2+ | ||
http://www.gnu.org/licenses/gpl.txt | ||
@link https://forge.indepnet.net/projects/datainjection | ||
@link http://www.glpi-project.org/ | ||
@since 2009 | ||
---------------------------------------------------------------------- */ | ||
|
||
// Direct access to file | ||
if (strpos($_SERVER['PHP_SELF'],"results.php")) { | ||
include ('../../../inc/includes.php'); | ||
header("Content-Type: text/html; charset=UTF-8"); | ||
Html::header_nocache(); | ||
} | ||
|
||
Session::checkCentralAccess(); | ||
$model = unserialize($_SESSION['datainjection']['currentmodel']); | ||
PluginDatainjectionClientInjection::showResultsForm($model); | ||
?> |
Oops, something went wrong.