Projet

Général

Profil

Paste
Statistiques
| Branche: | Révision:

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

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

1
<?php
2
/*
3
   ----------------------------------------------------------------------
4
   GLPI - Gestionnaire Libre de Parc Informatique
5
   Copyright (C) 2003-2008 by the INDEPNET Development Team.
6

7
   http://indepnet.net/   http://glpi-project.org/
8
   ----------------------------------------------------------------------
9

10
   LICENSE
11

12
   This file is part of GLPI.
13

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

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

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

    
30
// ----------------------------------------------------------------------
31
// Original Author of file: Balpe Dévi
32
// Purpose of file:
33
// ----------------------------------------------------------------------
34

    
35
global $LANGPDF,$LANG;
36
        
37
if (!defined('GLPI_ROOT')) {
38
        define('GLPI_ROOT', '../../..');
39
}
40

    
41
include_once (GLPI_ROOT . "/inc/includes.php");
42

    
43
if (haveRight("config","w"))
44
        {
45
        if(TableExists("glpi_plugin_pdf_preference"))
46
                {
47
                cleanCache("GLPI_HEADER_".$_SESSION["glpiID"]);
48
                plugin_pdf_uninstall();
49
                $_SESSION["glpi_plugin_pdf_installed"]=0;
50
                }
51
        
52
        glpi_header($_SERVER['HTTP_REFERER']);
53

    
54
        }
55
else
56
        {
57
        commonHeader($LANGPDF["config"][1], $_SERVER["PHP_SELF"],"plugins","pdf");
58
        echo "<div align='center'><br><br><img src=\"".$CFG_GLPI["root_doc"]."/pics/warning.png\" alt=\"warning\"><br><br>";
59
        echo "<b>".$LANG["login"][5]."</b></div>";
60
        commonFooter();
61
        }
62
?>
Redmine Appliance - Powered by TurnKey Linux