コード例 #1
0
ファイル: hook.php プロジェクト: geldarr/hack-space
function plugin_utilitaires_install()
{
    global $DB;
    include_once GLPI_ROOT . "/plugins/utilitaires/inc/profile.class.php";
    if (!TableExists("glpi_plugin_utilitaires_profiles")) {
        $DB->runFile(GLPI_ROOT . "/plugins/utilitaires/sql/empty-1.5.0.sql");
    }
    PluginUtilitairesProfile::createfirstAccess($_SESSION['glpiactiveprofile']['id']);
    return true;
}
コード例 #2
0
ファイル: profile.form.php プロジェクト: geldarr/hack-space
https://forge.indepnet.net/projects/utilitaires
-------------------------------------------------------------------------

LICENSE
		
This file is part of Utilitaires.

Utilitaires 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.

Utilitaires 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 utilitaires. If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------
*/
define('GLPI_ROOT', '../../..');
include GLPI_ROOT . "/inc/includes.php";
Session::checkRight("profile", "r");
$prof = new PluginUtilitairesProfile();
//Save profile
if (isset($_POST['update'])) {
    $prof->update($_POST);
    Html::back();
}