Projet

Général

Profil

Paste
Statistiques
| Branche: | Révision:

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

Historique | Voir | Annoter | Télécharger (1,86 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;
36
        
37
if (!defined('GLPI_ROOT')) {
38
        define('GLPI_ROOT', '../../..');
39
}
40

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

    
43
commonHeader($LANGPDF["config"][1], $_SERVER["PHP_SELF"],"plugins","pdf");
44

    
45
if (haveRight("config","w"))
46
        {
47
        if(!(TableExists("glpi_plugin_pdf_preference") && TableExists("glpi_plugin_pdf_profiles")))
48
                {
49
                cleanCache("GLPI_HEADER_".$_SESSION["glpiID"]);
50
                plugin_pdf_Install();
51
                plugin_pdf_initSession();
52
                glpi_header($_SERVER['HTTP_REFERER']);
53
                }
54
        }        
55
commonFooter();
56
?>
Redmine Appliance - Powered by TurnKey Linux