(at your option) any later version. Resources 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 Resources. If not, see <http://www.gnu.org/licenses/>. -------------------------------------------------------------------------- */ include '../../../inc/includes.php'; $resource = new PluginResourcesResource(); $employee = new PluginResourcesEmployee(); $choice = new PluginResourcesChoice(); $resource->checkGlobal("r"); if ($_SESSION['glpiactiveprofile']['interface'] == 'central') { //from central Html::header(PluginResourcesResource::getTypeName(2), '', "plugins", "resources"); } else { //from helpdesk Html::helpHeader(PluginResourcesResource::getTypeName(2)); } if (isset($_POST["first_step"]) || isset($_GET["first_step"])) { if (!isset($_POST["template"])) { $_POST["template"] = $_GET["template"]; } if (!isset($_POST["withtemplate"])) { $_POST["withtemplate"] = $_GET["withtemplate"]; } // Set default value...