public function showForm($ID, $options = array()) { $restrict = getEntitiesRestrictRequest(" ", "glpi_plugin_accounts_hashes", '', '', $this->h->maybeRecursive()); if (countElementsInTable("glpi_plugin_accounts_hashes", $restrict) == 0) { echo "<div class='center red'>" . __('Encryption key modified', 'accounts') . "</div></br>"; } $plugin_accounts_hashes_id = -1; if (isset($options['plugin_accounts_hashes_id'])) { $plugin_accounts_hashes_id = $options['plugin_accounts_hashes_id']; } $this->initForm($ID, $options); $this->showFormHeader($options); echo "<div class='center red b'>" . __('Warning : saving the encryption key is a security hole', 'accounts') . "</div></br>"; $options['colspan'] = 1; $this->h->getFromDB($plugin_accounts_hashes_id); echo "<input type='hidden' name='plugin_accounts_hashes_id' value='{$plugin_accounts_hashes_id}'>"; echo "<tr class='tab_bg_2'><td>"; _e('Encryption key', 'accounts'); echo "</td><td>"; echo "<input type='password' autocomplete='off' name='name' value='" . $this->fields["name"] . "'>"; echo "</td>"; echo "</tr>"; $options['candel'] = false; $this->showFormButtons($options); }