Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
xacobofg authored Sep 12, 2019
1 parent 8edf8f5 commit 34db022
Show file tree
Hide file tree
Showing 9 changed files with 858 additions and 2 deletions.
20 changes: 18 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,18 @@
# gappessentials
GLPI companion plugin for Gapp mobile app
# Gapp Essentials GLPI plugin

<img src="https://raw.githubusercontent.com/ticgal/gappessentials/multimedia/{LNAME}-logo-trans.png" alt="GappEssentials Logo" height="250px" width="250px" class="js-lazy-loaded">

[![Twitter](https://img.shields.io/badge/Twitter-TICgal-blue.svg?style=flat-square)](https://twitter.com/ticgalcom)
[![Web](https://img.shields.io/badge/Web-TICgal-blue.svg?style=flat-square)](https://tic.gal/)

Gapp Essentials is a companion plugin to enhance Gapp features.
Gapp benefits from using Gapp Essentials by:
* Giving access to documents to self-service users
* List GLPI plugins

## Contributing

* Open a ticket for each bug/feature so it can be discussed
* Refer to [GitFlow](http://git-flow.readthedocs.io/) process for branching
* Work on a new branch on your own fork
* Open a PR that will be reviewed by a developer
39 changes: 39 additions & 0 deletions apirest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?php
/*
-------------------------------------------------------------------------
GappEssentials plugin for GLPI
Copyright (C) 2019 by the TICgal
https://tic.gal
https://github.com/pluginsGLPI/gappessentials
-------------------------------------------------------------------------
LICENSE
This file is part of GappEssentials.
GappEssentials 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.
GappEssentials 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 GappEssentials. If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------
*/

define('GLPI_ROOT', substr(__DIR__,0,strpos(__DIR__,"/plugins")));
define('DO_NOT_CHECK_HTTP_REFERER', 1);
ini_set('session.use_cookies', 0);

include_once (GLPI_ROOT . "/inc/based_config.php");
include_once(GLPI_ROOT."/plugins/gappessentials/inc/apirest.class.php");

$GLPI_CACHE = Config::getCache('cache_db');

$api = new PluginGappEssentialsApirest();
$api->call();
55 changes: 55 additions & 0 deletions gappessentials.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<root>
<name>GappEssentials</name>
<key>gappessentials</key>
<!-- stable, beta, development, alpha, ... -->
<state>stable</state>
<logo>https://raw.githubusercontent.com/pluginsGLPI/gappessentials/master/{LNAME}.png</logo>
<description>
<short>
<!-- Add as many lang tag you want -->
<en>GappEssentials GLPI plugin.</en>
<es>Plugin GLPI GappEssentials</es>
</short>
<long>
<!-- Add as many lang tag you want -->
<en>A long description for GappEssentials GLPI plugin.</en>
<fr>Un description longue pour le plugin GLPI GappEssentials</fr>
</long>
</description>
<homepage>https://github.com/pluginsGLPI/gappessentials</homepage>
<download>https://github.com/pluginsGLPI/gappessentials/releases</download>
<issues>https://github.com/pluginsGLPI/gappessentials/issues</issues>
<readme>https://github.com/pluginsGLPI/gappessentials/blob/master/README.md</readme>
<authors>
<!-- Add as many author tag you want -->
<author>TICgal</author>
</authors>
<versions>
<!-- Add as many version tag you want -->
<version>
<num>0.0.1</num>
<!-- Add as many compatibility tag you want -->
<compatibility>9.4</compatibility>
</version>
</versions>
<langs>
<!-- Add as many lang tag you want -->
<lang>en_GB</lang>
<lang>es_ES</lang>
</langs>
<license>GPL V3+</license>
<!--tags>
<en>
<tag>One tag</tag>
<tag>Another tag</tag>
</en>
<fr>
<tag>Un tag</tag>
<tag>Un autre tag</tag>
</fr>
</tags-->
<!--screenshots>
<screenshot>https://github.com/pluginsGLPI/fields/raw/master/screenshot.png</screenshot>
<screenshot>https://github.com/pluginsGLPI/fields/raw/master/screenshot2.png</screenshot>
</screenshots-->
</root>
45 changes: 45 additions & 0 deletions hook.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?php
/*
-------------------------------------------------------------------------
GappEssentials plugin for GLPI
Copyright (C) 2019 by the TICgal
https://tic.gal
https://github.com/pluginsGLPI/gappessentials
-------------------------------------------------------------------------
LICENSE
This file is part of GappEssentials.
GappEssentials 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.
GappEssentials 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 GappEssentials. If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------
*/

/**
* Plugin install process
*
* @return boolean
*/
function plugin_gappessentials_install() {
return true;
}

/**
* Plugin uninstall process
*
* @return boolean
*/
function plugin_gappessentials_uninstall() {
return true;
}
Loading

0 comments on commit 34db022

Please sign in to comment.