コード例 #1
0
ファイル: profile.class.php プロジェクト: picaro04/simcard
 static function install(Migration $migration)
 {
     global $DB;
     // Table no longer needed in GLPI 0.85+; drop it. Needed for upgrades
     $migration->dropTable(getTableForItemType(__CLASS__));
     PluginSimcardProfile::createFirstAccess($_SESSION['glpiactiveprofile']['id']);
 }
コード例 #2
0
ファイル: hook.php プロジェクト: geldarr/hack-space
function plugin_simcard_uninstall()
{
    include_once GLPI_ROOT . "/plugins/simcard/inc/profile.class.php";
    include_once GLPI_ROOT . "/plugins/simcard/inc/simcard.class.php";
    include_once GLPI_ROOT . "/plugins/simcard/inc/simcardsize.class.php";
    include_once GLPI_ROOT . "/plugins/simcard/inc/simcardvoltage.class.php";
    include_once GLPI_ROOT . "/plugins/simcard/inc/phoneoperator.class.php";
    include_once GLPI_ROOT . "/plugins/simcard/inc/simcard_item.class.php";
    PluginSimcardProfile::uninstall();
    PluginSimcardSimcard::uninstall();
    PluginSimcardSimcardSize::uninstall();
    PluginSimcardSimcardVoltage::uninstall();
    PluginSimcardPhoneOperator::uninstall();
    PluginSimcardSimcard_Item::uninstall();
    return true;
}
コード例 #3
0
ファイル: profile.form.php プロジェクト: NandyJoshu/simcard
 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.

 Order 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 GLPI; along with Simcard. If not, see <http://www.gnu.org/licenses/>.
 --------------------------------------------------------------------------
 @package   simcard
 @author    the simcard plugin team
 @copyright Copyright (c) 2010-2011 Simcard plugin team
 @license   GPLv2+
            http://www.gnu.org/licenses/gpl.txt
 @link      https://forge.indepnet.net/projects/simcard
 @link      http://www.glpi-project.org/
 @since     2009
 ---------------------------------------------------------------------- */
define('GLPI_ROOT', '../../..');
include GLPI_ROOT . "/inc/includes.php";
//Session::checkRight("profile", "r");
Profile::canView();
$profile = new PluginSimcardProfile();
//Save profile
if (isset($_POST['update'])) {
    $profile->update($_POST);
}
Html::back();
コード例 #4
0
ファイル: profile.class.php プロジェクト: geldarr/hack-space
 static function install(Migration $migration)
 {
     global $DB;
     $table = getTableForItemType(__CLASS__);
     if (!TableExists($table)) {
         $query = "CREATE TABLE IF NOT EXISTS `{$table}` (\n               `id` int(11) NOT NULL auto_increment,\n               `profiles_id` int(11) NOT NULL default '0' COMMENT 'RELATION to glpi_profiles (id)',\n               `simcard` char(1) collate utf8_unicode_ci default NULL,\n               `open_ticket` char(1) collate utf8_unicode_ci default NULL,\n               PRIMARY KEY  (`id`),\n               KEY `profiles_id` (`profiles_id`)\n            ) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;";
         $DB->query($query) or die($DB->error());
     }
     PluginSimcardProfile::createFirstAccess($_SESSION['glpiactiveprofile']['id']);
     self::changeProfile();
 }
コード例 #5
0
ファイル: profile.class.php プロジェクト: jelacote/simcard
 static function install(Migration $migration)
 {
     global $DB;
     PluginSimcardProfile::createFirstAccess($_SESSION['glpiactiveprofile']['id']);
 }
コード例 #6
0
ファイル: profile.form.php プロジェクト: geldarr/hack-space
 Order 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.

 Order 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 GLPI; along with Simcard. If not, see <http://www.gnu.org/licenses/>.
 --------------------------------------------------------------------------
 @package   simcard
 @author    the simcard plugin team
 @copyright Copyright (c) 2010-2011 Simcard plugin team
 @license   GPLv2+
            http://www.gnu.org/licenses/gpl.txt
 @link      https://forge.indepnet.net/projects/simcard
 @link      http://www.glpi-project.org/
 @since     2009
 ---------------------------------------------------------------------- */
define('GLPI_ROOT', '../../..');
include GLPI_ROOT . "/inc/includes.php";
Session::checkRight("profile", "r");
$prof = new PluginSimcardProfile();
//Save profile
if (isset($_POST['update'])) {
    $prof->update($_POST);
}
Html::back();