ryxeo-glpi-git / front / setup.php @ b67d8923
Historique | Voir | Annoter | Télécharger (3,34 ko)
1 |
<?php
|
---|---|
2 |
/*
|
3 |
* @version $Id: setup.php 7763 2009-01-06 18:44:50Z moyo $
|
4 |
-------------------------------------------------------------------------
|
5 |
GLPI - Gestionnaire Libre de Parc Informatique
|
6 |
Copyright (C) 2003-2009 by the INDEPNET Development Team.
|
7 |
|
8 |
http://indepnet.net/ http://glpi-project.org
|
9 |
-------------------------------------------------------------------------
|
10 |
|
11 |
LICENSE
|
12 |
|
13 |
This file is part of GLPI.
|
14 |
|
15 |
GLPI is free software; you can redistribute it and/or modify
|
16 |
it under the terms of the GNU General Public License as published by
|
17 |
the Free Software Foundation; either version 2 of the License, or
|
18 |
(at your option) any later version.
|
19 |
|
20 |
GLPI is distributed in the hope that it will be useful,
|
21 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
22 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
23 |
GNU General Public License for more details.
|
24 |
|
25 |
You should have received a copy of the GNU General Public License
|
26 |
along with GLPI; if not, write to the Free Software
|
27 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
28 |
--------------------------------------------------------------------------
|
29 |
*/
|
30 |
|
31 |
// Based on:
|
32 |
// IRMA, Information Resource-Management and Administration
|
33 |
// Christian Bauer
|
34 |
// ----------------------------------------------------------------------
|
35 |
// Original Author of file:
|
36 |
// Purpose of file:
|
37 |
// ----------------------------------------------------------------------
|
38 |
|
39 |
|
40 |
|
41 |
$NEEDED_ITEMS=array("setup"); |
42 |
|
43 |
define('GLPI_ROOT', '..'); |
44 |
include (GLPI_ROOT . "/inc/includes.php"); |
45 |
|
46 |
checkCentralAccess(); |
47 |
|
48 |
|
49 |
commonHeader($LANG["common"][12],$_SERVER['PHP_SELF'],"config"); |
50 |
|
51 |
|
52 |
echo "<div align='center'><table class='tab_cadre' cellpadding='5'>"; |
53 |
echo "<tr><th colspan='2'>".$LANG["setup"][62]."</th></tr>"; |
54 |
|
55 |
$config=array(); |
56 |
|
57 |
if (haveRight("config","w")){ |
58 |
$config["setup.config.php"]=$LANG["setup"][70]; |
59 |
$config["setup.mailing.php"]=$LANG["setup"][68]; |
60 |
$config["setup.auth.php"]=$LANG["setup"][67]; |
61 |
$config["mailgate.php"]=$LANG["Menu"][39]; |
62 |
if ($CFG_GLPI["ocs_mode"]&&haveRight("ocsng","w")) |
63 |
$config["setup.ocsng.php"]=$LANG["setup"][134]; |
64 |
} |
65 |
|
66 |
$data=array(); |
67 |
if (haveRight("dropdown","w")||haveRight("entity_dropdown","w")){ |
68 |
$data["setup.dropdowns.php"]=$LANG["setup"][0]; |
69 |
} |
70 |
if (haveRight("device","w")){ |
71 |
$data[$CFG_GLPI["root_doc"]."/front/device.php"]=$LANG["title"][30]; |
72 |
} |
73 |
if (haveRight("typedoc","r")){ |
74 |
$data[$CFG_GLPI["root_doc"]."/front/typedoc.php"]=$LANG["document"][7]; |
75 |
} |
76 |
if (haveRight("link","r")){ |
77 |
$data[$CFG_GLPI["root_doc"]."/front/link.php"]=$LANG["setup"][87]; |
78 |
} |
79 |
|
80 |
echo "<tr class='tab_bg_1'>"; |
81 |
if (count($data)>0){ |
82 |
echo "<td><table>"; |
83 |
foreach ($data as $page => $title) |
84 |
echo "<tr><td><a href=\"$page\"><b>$title</b></a></td></tr>\n"; |
85 |
echo "</table></td>"; |
86 |
} |
87 |
|
88 |
if (count($config)>0){ |
89 |
echo "<td><table>"; |
90 |
foreach ($config as $page => $title) |
91 |
echo "<tr><td><a href=\"$page\"><b>$title</b></a></td></tr>\n"; |
92 |
echo "</table></td>"; |
93 |
} |
94 |
|
95 |
echo "</tr>"; |
96 |
|
97 |
if (isset($PLUGIN_HOOKS['config_page'])&&is_array($PLUGIN_HOOKS['config_page'])&&count($PLUGIN_HOOKS['config_page'])) |
98 |
echo "<tr class='tab_bg_1'><td colspan='2' align='center'><a href=\"setup.plugins.php\"><b>".$LANG["common"][29]."</b></a></td></tr>"; |
99 |
if (haveRight("check_update","r")) |
100 |
echo "<tr class='tab_bg_1'><td colspan='2' align='center'><a href=\"setup.version.php\"><b>".$LANG["setup"][300]."</b></a></td></tr>"; |
101 |
|
102 |
|
103 |
|
104 |
echo "</table></div>"; |
105 |
|
106 |
|
107 |
|
108 |
|
109 |
commonFooter(); |
110 |
?>
|