ryxeo-glpi-git / front / mailgate.php @ b67d8923
Historique | Voir | Annoter | Télécharger (2,25 ko)
1 | b67d8923 | Eric Seigne | <?php
|
---|---|---|---|
2 | |||
3 | |||
4 | /*
|
||
5 | * @version $Id: mailgate.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 ("setup","ocsng","user","search"); |
||
39 | |||
40 | define('GLPI_ROOT', '..'); |
||
41 | include (GLPI_ROOT . "/inc/includes.php"); |
||
42 | |||
43 | |||
44 | checkRight("config", "w"); |
||
45 | |||
46 | |||
47 | commonHeader($LANG["Menu"][39], $_SERVER['PHP_SELF'], "config","mailgate"); |
||
48 | |||
49 | if (!canUseImapPop()) {
|
||
50 | echo "<div align='center'>"; |
||
51 | echo "<table class='tab_cadre_fixe'>"; |
||
52 | echo "<tr><th colspan='2'>" . $LANG["Menu"][39] . "</th></tr>"; |
||
53 | echo "<tr class='tab_bg_2'><td align='center'><p class='red'>" . $LANG["setup"][165] . "</p></td></tr></table>"; |
||
54 | echo "</div>"; |
||
55 | commonFooter(); |
||
56 | exit();
|
||
57 | } else {
|
||
58 | manageGetValuesInSearch(MAILGATE_TYPE);
|
||
59 | searchForm(MAILGATE_TYPE,$_SERVER['PHP_SELF'],$_GET["field"],$_GET["contains"],$_GET["sort"],$_GET["deleted"],$_GET["link"],$_GET["distinct"]); |
||
60 | showList(MAILGATE_TYPE,$_SERVER['PHP_SELF'],$_GET["field"],$_GET["contains"],$_GET["sort"],$_GET["order"],$_GET["start"],$_GET["deleted"],$_GET["link"],$_GET["distinct"]); |
||
61 | |||
62 | commonFooter(); |
||
63 | } |
||
64 | ?> |