Projet

Général

Profil

Paste
Statistiques
| Branche: | Révision:

ryxeo-glpi-git / plugins / pdf / front / plugin_pdf.config.form.php @ 7b214c36

Historique | Voir | Annoter | Télécharger (2,58 ko)

1
<?php
2

    
3

    
4
/*
5
   ----------------------------------------------------------------------
6
   GLPI - Gestionnaire Libre de Parc Informatique
7
   Copyright (C) 2003-2008 by the INDEPNET Development Team.
8

9
   http://indepnet.net/   http://glpi-project.org/
10
   ----------------------------------------------------------------------
11

12
   LICENSE
13

14
   This file is part of GLPI.
15

16
   GLPI is free software; you can redistribute it and/or modify
17
   it under the terms of the GNU General Public License as published by
18
   the Free Software Foundation; either version 2 of the License, or
19
   (at your option) any later version.
20

21
   GLPI is distributed in the hope that it will be useful,
22
   but WITHOUT ANY WARRANTY; without even the implied warranty of
23
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24
   GNU General Public License for more details.
25

26
   You should have received a copy of the GNU General Public License
27
   along with GLPI; if not, write to the Free Software
28
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
29
   ------------------------------------------------------------------------
30
 */
31

    
32
// Original Author of file: Balpe Dévi / Remi Collet
33
// Purpose of file:
34
// ----------------------------------------------------------------------
35
if(!defined('GLPI_ROOT')){
36
        define('GLPI_ROOT', '../../..'); 
37
}
38
include_once (GLPI_ROOT . "/inc/includes.php");
39

    
40
if(isset($_SESSION["glpi_plugin_pdf_installed"]) && $_SESSION["glpi_plugin_pdf_installed"]==1) 
41
{
42
        checkSeveralRightsOr(array("config" => "w", "profile" => "r"));
43
        commonHeader($LANGPDF["config"][1], $_SERVER["PHP_SELF"],"plugins","pdf");
44
        
45
        echo "<div align='center'>";
46
        echo "<table class='tab_cadre' cellpadding='5'>";
47
        echo "<tr><th>".$LANGPDF["config"][1]."</th></tr>\n";
48
        if (haveRight("profile","r")){
49
                echo "<tr class='tab_bg_1' align='center'><td>";
50
                echo "<a href='plugin_pdf.profiles.php'>".$LANGPDF["config"][6]."</a></td></tr>\n";
51
        }
52
        if (haveRight("config","w")){
53
                echo "<tr class='tab_bg_1' align='center'><td>";
54
                echo "<a href=\"plugin_pdf.uninstall.php\">".$LANGPDF["config"][3]."</a></td/></tr>\n";
55
        }
56
        echo "</table>\n</div>";
57
}
58
else
59
{
60
        checkRight("config","w");
61
        commonHeader($LANG["title"][1],$_SERVER['PHP_SELF'],"config","plugins");
62
        
63
        echo "<div align='center'>";
64
        echo "<table class='tab_cadre' cellpadding='5'>\n";
65
        echo "<tr><th>".$LANGPDF["config"][1]."</th></tr>\n";
66
        echo "<tr class='tab_bg_1' align='center'><td>";
67
        echo "<a href='plugin_pdf.install.php'>".$LANGPDF["config"][2]."</a></td></tr>\n";
68
        echo "</table>\n</div>";
69
}
70

    
71
commonFooter();
72
?>
Redmine Appliance - Powered by TurnKey Linux