ryxeo-glpi-git / front / setup.config.php @ b67d8923
Historique | Voir | Annoter | Télécharger (2,07 ko)
1 |
<?php
|
---|---|
2 |
|
3 |
|
4 |
/*
|
5 |
* @version $Id: setup.config.php 7763 2009-01-06 18:44:50Z moyo $
|
6 |
-------------------------------------------------------------------------
|
7 |
GLPI - Gestionnaire Libre de Parc Informatique
|
8 |
Copyright (C) 2003-2009 by the INDEPNET Development Team.
|
9 |
|
10 |
http://indepnet.net/ http://glpi-project.org
|
11 |
-------------------------------------------------------------------------
|
12 |
|
13 |
LICENSE
|
14 |
|
15 |
This file is part of GLPI.
|
16 |
|
17 |
GLPI is free software; you can redistribute it and/or modify
|
18 |
it under the terms of the GNU General Public License as published by
|
19 |
the Free Software Foundation; either version 2 of the License, or
|
20 |
(at your option) any later version.
|
21 |
|
22 |
GLPI is distributed in the hope that it will be useful,
|
23 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
24 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
25 |
GNU General Public License for more details.
|
26 |
|
27 |
You should have received a copy of the GNU General Public License
|
28 |
along with GLPI; if not, write to the Free Software
|
29 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
30 |
--------------------------------------------------------------------------
|
31 |
*/
|
32 |
|
33 |
// ----------------------------------------------------------------------
|
34 |
// Original Author of file:
|
35 |
// Purpose of file:
|
36 |
// ----------------------------------------------------------------------
|
37 |
|
38 |
$NEEDED_ITEMS = array ( |
39 |
"setup",
|
40 |
"ocsng",
|
41 |
"dbreplicate"
|
42 |
); |
43 |
|
44 |
define('GLPI_ROOT', '..'); |
45 |
include (GLPI_ROOT . "/inc/includes.php"); |
46 |
|
47 |
checkRight("config", "w"); |
48 |
$config = new Config(); |
49 |
|
50 |
if (!isset ($_SESSION['glpi_configgen'])) |
51 |
$_SESSION['glpi_configgen'] = 1; |
52 |
if (isset ($_GET['onglet'])) |
53 |
$_SESSION['glpi_configgen'] = $_GET['onglet']; |
54 |
|
55 |
|
56 |
if (!empty ($_POST["update"])) { |
57 |
$config->update($_POST); |
58 |
if (isset($_POST["ocs_mode"])&&$_POST["ocs_mode"] && !$CFG_GLPI["ocs_mode"]) |
59 |
glpi_header($CFG_GLPI["root_doc"] ."/front/setup.ocsng.php"); |
60 |
else
|
61 |
glpi_header($CFG_GLPI["root_doc"] ."/front/setup.config.php"); |
62 |
} |
63 |
|
64 |
commonHeader($LANG["common"][12], $_SERVER['PHP_SELF'],"config","config"); |
65 |
$config->showForm($_SERVER['PHP_SELF']); |
66 |
|
67 |
commonFooter(); |
68 |
?>
|