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; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -------------------------------------------------------------------------- */ // ---------------------------------------------------------------------- // Original Author of file: // Purpose of file: // ---------------------------------------------------------------------- define('GLPI_ROOT', '..'); include GLPI_ROOT . "/inc/includes.php"; checkRight("config", "w"); $config = new Config(); if (!empty($_POST["update_auth"])) { $config->update($_POST); glpi_header($_SERVER['HTTP_REFERER']); } if (!empty($_POST["update"])) { $config->update($_POST); if (isset($_POST["use_ocs_mode"]) && $_POST["use_ocs_mode"] && !$CFG_GLPI["use_ocs_mode"]) { glpi_header(getItemTypeSearchURL('OcsServer')); } else { glpi_header(getItemTypeFormURL('Config')); } } commonHeader($LANG['common'][12], $_SERVER['PHP_SELF'], "config", "config"); $config->showForm(1); commonFooter();