getFromDB($ID)) { // ajouter un champ dans la table comprenant l'ID du profil de la // personne connectée et le droit d'écriture $myProf->add(array('id' => $ID, 'right' => 'w')); } } function createAccess($ID) { $this->add(array('id' => $ID)); } static function changeProfile() { $prof = new self(); if ($prof->getFromDB($_SESSION['glpiactiveprofile']['id'])) { $_SESSION["glpi_plugin_auf_profile"] = $prof->fields; } else { unset($_SESSION["glpi_plugin_auf_profile"]); } } function showForm($id, $options=array()) { $target = $this->getFormURL(); if (isset($options['target'])) { $target = $options['target']; } if (!Session::haveRight("profile", "r")) { return false; } $canedit = Session::haveRight("profile", "w"); $prof = new Profile(); if ($id){ $this->getFromDB($id); $prof->getFromDB($id); } echo "