6 |
jpm |
1 |
<?php
|
|
|
2 |
/*vim: set expandtab tabstop=4 shiftwidth=4: */
|
|
|
3 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
4 |
// | PHP version 4.1 |
|
|
|
5 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
6 |
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org) |
|
|
|
7 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
8 |
// | This library is free software; you can redistribute it and/or |
|
|
|
9 |
// | modify it under the terms of the GNU Lesser General Public |
|
|
|
10 |
// | License as published by the Free Software Foundation; either |
|
|
|
11 |
// | version 2.1 of the License, or (at your option) any later version. |
|
|
|
12 |
// | |
|
|
|
13 |
// | This library is distributed in the hope that it will be useful, |
|
|
|
14 |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
|
15 |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
|
|
16 |
// | Lesser General Public License for more details. |
|
|
|
17 |
// | |
|
|
|
18 |
// | You should have received a copy of the GNU Lesser General Public |
|
|
|
19 |
// | License along with this library; if not, write to the Free Software |
|
|
|
20 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
|
|
21 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
22 |
// CVS : $Id: installateur.php,v 1.1 2004-06-16 14:33:13 jpm Exp $
|
|
|
23 |
/**
|
|
|
24 |
* Application Installateur de Papyrus.
|
|
|
25 |
*
|
|
|
26 |
* Application permettant de gérer l'installation et les erreurs liés à l'abscence de base de données,
|
|
|
27 |
* d'extenssin PHP...
|
|
|
28 |
*
|
|
|
29 |
*@package Installateur
|
|
|
30 |
//Auteur original :
|
|
|
31 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
|
|
32 |
//Autres auteurs :
|
|
|
33 |
*@author Aucun
|
|
|
34 |
*@copyright Tela-Botanica 2000-2004
|
|
|
35 |
*@version $Revision: 1.1 $ $Date: 2004-06-16 14:33:13 $
|
|
|
36 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
37 |
**/
|
|
|
38 |
|
|
|
39 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
40 |
// | ENTÊTE du PROGRAMME |
|
|
|
41 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
42 |
/*Mettre ici les inclusions de fichiers*/
|
|
|
43 |
|
|
|
44 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
45 |
// | CORPS du PROGRAMME |
|
|
|
46 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
47 |
|
|
|
48 |
// A retravailler complétement!!!
|
|
|
49 |
if ($_GEN_commun['erreur_site_introuvable']) {
|
|
|
50 |
projectForm($_GEN_commun['message_erreur_bd']);
|
|
|
51 |
exit;
|
|
|
52 |
}
|
|
|
53 |
else {
|
|
|
54 |
if ($_GEN_commun['erreur_config'] || $_GEN_commun['erreur_bd']) {
|
|
|
55 |
installForm($_GEN_commun['message_erreur_bd']);
|
|
|
56 |
exit;
|
|
|
57 |
}
|
|
|
58 |
else {
|
|
|
59 |
exit (
|
|
|
60 |
'<html>'.
|
|
|
61 |
"\n".' <head>'.
|
|
|
62 |
"\n".' <title>Error</title>'.
|
|
|
63 |
"\n".' <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">'.
|
|
|
64 |
"\n".' </head>'.
|
|
|
65 |
"\n".' <body>'.
|
|
|
66 |
"\n".' <br /><br />'.
|
|
|
67 |
"\n".' <p align="center"><b>'.$_GEN_commun['message_erreur_bd'].'</b></p>'.
|
|
|
68 |
"\n".' </body>'.
|
|
|
69 |
"\n".'</html>');
|
|
|
70 |
}
|
|
|
71 |
}
|
|
|
72 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
73 |
// | PIED du PROGRAMME |
|
|
|
74 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
75 |
/*Partie non obligatoire*/
|
|
|
76 |
|
|
|
77 |
|
|
|
78 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
|
|
79 |
*
|
|
|
80 |
* $Log: not supported by cvs2svn $
|
|
|
81 |
* Revision 1.6 2004/04/22 08:25:48 jpm
|
|
|
82 |
* Transformation de $GS_GLOBAL en $_GEN_commun.
|
|
|
83 |
*
|
|
|
84 |
* Revision 1.5 2004/04/08 13:21:05 jpm
|
|
|
85 |
* Le code pour l'installation uniquement.
|
|
|
86 |
*
|
|
|
87 |
* Revision 1.4 2004/04/08 12:25:16 jpm
|
|
|
88 |
* Suppression de tous le code réalisant les vérifications. L'application Installateur ne fera qu'installer Génésia et non vérifier son bon fonctionnement.
|
|
|
89 |
*
|
|
|
90 |
* Revision 1.3 2004/04/02 16:37:51 jpm
|
|
|
91 |
* Modification des commentaires.
|
|
|
92 |
*
|
|
|
93 |
* Revision 1.2 2004/03/31 16:57:16 jpm
|
|
|
94 |
* Ajout de la gestion des erreur de base de données, de la connexion à celle-ci et des extenssions php disponibles.
|
|
|
95 |
*
|
|
|
96 |
* Revision 1.1 2004/03/29 11:00:12 jpm
|
|
|
97 |
* Transfert d'un morceau de code gérant les erreurs et l'installation mais qui a actuellement aucun effet sur Génésia.
|
|
|
98 |
*
|
|
|
99 |
*
|
|
|
100 |
* +-- Fin du code ----------------------------------------------------------------------------------------+
|
|
|
101 |
*/
|
|
|
102 |
?>
|