Subversion Repositories Applications.papyrus

Rev

Rev 76 | Rev 80 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 76 Rev 79
Line 17... Line 17...
17
// |                                                                                                      |
17
// |                                                                                                      |
18
// | You should have received a copy of the GNU Lesser General Public                                     |
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                                  |
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                            |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
21
// +------------------------------------------------------------------------------------------------------+
21
// +------------------------------------------------------------------------------------------------------+
22
// CVS : $Id: installateur.php,v 1.4 2004-10-19 15:59:18 jpm Exp $
22
// CVS : $Id: installateur.php,v 1.5 2004-10-19 16:47:28 jpm Exp $
23
/**
23
/**
24
* Application Installateur de Papyrus.
24
* Application Installateur de Papyrus.
25
*
25
*
26
* Application permettant de gérer l'installation et les erreurs liés à l'abscence de base de données, 
26
* Application permettant de gérer l'installation et les erreurs liés à l'abscence de base de données, 
27
* d'extenssin PHP...
27
* d'extenssin PHP...
Line 30... Line 30...
30
//Auteur original :
30
//Auteur original :
31
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
31
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
32
//Autres auteurs :
32
//Autres auteurs :
33
*@author        Aucun
33
*@author        Aucun
34
*@copyright     Tela-Botanica 2000-2004
34
*@copyright     Tela-Botanica 2000-2004
35
*@version       $Revision: 1.4 $ $Date: 2004-10-19 15:59:18 $
35
*@version       $Revision: 1.5 $ $Date: 2004-10-19 16:47:28 $
36
// +------------------------------------------------------------------------------------------------------+
36
// +------------------------------------------------------------------------------------------------------+
37
**/
37
**/
Line 38... Line 38...
38
 
38
 
39
// +------------------------------------------------------------------------------------------------------+
39
// +------------------------------------------------------------------------------------------------------+
Line 58... Line 58...
58
    define('INSTAL_VERSION_ANCIENNE', '');
58
    define('INSTAL_VERSION_ANCIENNE', '');
59
}
59
}
Line 60... Line 60...
60
 
60
 
61
// Fichiers à inclure
61
// Fichiers à inclure
62
require_once INSTAL_DOSSIER_BIBLIO.'instal_installation.fonct.php';
-
 
63
 
-
 
64
// Entêtre XHTML des pages de l'installation de Papyrus
-
 
65
$sortie = '';
-
 
66
$sortie .= '<html>';
-
 
67
$sortie .= '  <head>';
-
 
68
$sortie .= '    <title>Installation de Papyrus</title>';
-
 
69
$sortie .= '    <style>';
-
 
70
$sortie .= '      p, body, td, li, input, select, textarea { font-family: Verdana; font-size: 13px; }';
-
 
71
$sortie .= '      h1 { font-size: 1.8em; text-align: center; color: #880000; }';
-
 
72
$sortie .= '      h2 { font-size: 1.2em; text-align: left; color: #880000; }';
-
 
73
$sortie .= '      input { color: #880000; }';
-
 
74
$sortie .= '      form ul { list-style-type: none; padding : 0px; }';
-
 
75
$sortie .= '      form ul li { clear:both;text-align: left; padding-left: 0px; margin-left: 0px; }';
-
 
76
$sortie .= '      form ul li label { float: left; width: 175px; text-align: left; }';
-
 
77
$sortie .= '      li { margin: 5px 5px 5px 5px; }';
-
 
78
$sortie .= '      a { color: #0000FF; }';
-
 
79
$sortie .= '      .ok { color: #008800; font-weight: bold; }';
-
 
80
$sortie .= '      .failed { color: #880000; font-weight: bold; }';
-
 
81
$sortie .= '      .erreur { color: red; font-weight: bold;}';
-
 
82
$sortie .= '      .zone_requete { height: 300px; width: 550px; overflow: auto;}';
-
 
83
$sortie .= '    </style>';
-
 
84
$sortie .= '  </head>';
-
 
Line 85... Line 62...
85
$sortie .= '  <body>';
62
require_once INSTAL_DOSSIER_BIBLIO.'instal_installation.fonct.php';
86
 
63
 
87
// +------------------------------------------------------------------------------------------------------+
64
// +------------------------------------------------------------------------------------------------------+
-
 
65
// |                                          CORPS du PROGRAMME                                          |
-
 
66
// +------------------------------------------------------------------------------------------------------+
-
 
67
function afficherContenuCorps() 
-
 
68
{
-
 
69
    // Entêtre XHTML des pages de l'installation de Papyrus
-
 
70
    $sortie = '';
-
 
71
    $sortie .= '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"'."\n";
-
 
72
    $sortie .= '"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'."\n";
-
 
73
    $sortie .= '<html xmlns="http://www.w3.org/1999/xhtml" lang="fr-FR" xml:lang="fr-FR">'."\n";
-
 
74
    $sortie .= '  <head>'."\n";
-
 
75
    $sortie .= '    <title>Installation de Papyrus</title>'."\n";
-
 
76
    $sortie .= '    <style type="text/javascript">'."\n";
-
 
77
    $sortie .= '      p, body, td, li, input, select, textarea { font-family: Verdana; font-size: 13px; }'."\n";
-
 
78
    $sortie .= '      h1 { font-size: 1.8em; text-align: center; color: #880000; }'."\n";
-
 
79
    $sortie .= '      h2 { font-size: 1.2em; text-align: left; color: #880000; }'."\n";
-
 
80
    $sortie .= '      input { color: #880000; }'."\n";
-
 
81
    $sortie .= '      form ul { list-style-type: none; padding : 0px; }'."\n";
-
 
82
    $sortie .= '      form ul li { clear:both;text-align: left; padding-left: 0px; margin-left: 0px; }'."\n";
-
 
83
    $sortie .= '      form ul li label { float: left; width: 175px; text-align: left; }'."\n";
-
 
84
    $sortie .= '      li { margin: 5px 5px 5px 5px; }'."\n";
-
 
85
    $sortie .= '      a { color: #0000FF; }'."\n";
-
 
86
    $sortie .= '      .ok { color: #008800; font-weight: bold; }'."\n";
-
 
87
    $sortie .= '      .failed { color: #880000; font-weight: bold; }'."\n";
-
 
88
    $sortie .= '      .erreur { color: red; font-weight: bold;}'."\n";
-
 
89
    $sortie .= '      .zone_requete { height: 300px; width: 550px; overflow: auto;}'."\n";
-
 
90
    $sortie .= '    </style>'."\n";
-
 
91
    $sortie .= '  </head>'."\n";
88
// |                                          CORPS du PROGRAMME                                          |
92
    $sortie .= '  <body>'."\n";
89
// +------------------------------------------------------------------------------------------------------+
93
    
90
if(!isset($_GET['installation'])) {
94
    if(!isset($_GET['installation'])) {
91
    include_once GEN_CHEMIN_APPLICATION.'installateur/instal_defaut.inc.php';
95
        include_once GEN_CHEMIN_APPLICATION.'installateur/instal_defaut.inc.php';
92
} else if($_GET['installation'] == 'verif') {
96
    } else if($_GET['installation'] == 'verif') {
93
    include_once GEN_CHEMIN_APPLICATION.'installateur/instal_verification.inc.php';
97
        include_once GEN_CHEMIN_APPLICATION.'installateur/instal_verification.inc.php';
94
} else if($_GET['installation'] == 'bdd') {
98
    } else if($_GET['installation'] == 'bdd') {
95
    include_once GEN_CHEMIN_APPLICATION.'installateur/instal_base_de_donnees.inc.php';
99
        include_once GEN_CHEMIN_APPLICATION.'installateur/instal_base_de_donnees.inc.php';
-
 
100
    } else if($_GET['installation'] == 'config') {
-
 
101
        include_once GEN_CHEMIN_APPLICATION.'installateur/instal_fichier.inc.php';
-
 
102
    }
-
 
103
    // Pied XHTML des pages de l'installation de Papyrus
-
 
104
    $sortie .= '  </body>'."\n";
-
 
105
    $sortie .= '</html>';
96
} else if($_GET['installation'] == 'config') {
106
    
97
    include_once GEN_CHEMIN_APPLICATION.'installateur/instal_fichier.inc.php';
-
 
98
}
107
    return $sortie;
99
 
108
}
100
// +------------------------------------------------------------------------------------------------------+
109
// +------------------------------------------------------------------------------------------------------+
101
// |                                            PIED du PROGRAMME                                         |
-
 
102
// +------------------------------------------------------------------------------------------------------+
-
 
103
// Pied XHTML des pages de l'installation de Papyrus
-
 
104
$sortie .= '  </body>';
-
 
105
$sortie .= '</html>';
-
 
106
 
-
 
Line 107... Line 110...
107
// Attribution à la variable globale de sortie de Papyrus du texte XHTML de l'installation
110
// |                                            PIED du PROGRAMME                                         |
108
$GLOBALS['_GEN_commun']['sortie'] = $sortie;
111
// +------------------------------------------------------------------------------------------------------+
109
 
112
 
-
 
113
/* +--Fin du code ----------------------------------------------------------------------------------------+
-
 
114
*
-
 
115
* $Log: not supported by cvs2svn $
-
 
116
* Revision 1.4  2004/10/19 15:59:18  jpm
110
/* +--Fin du code ----------------------------------------------------------------------------------------+
117
* Ajout de la gestion des valeurs propre à Papyrus à insérer dans la base de données.
111
*
118
* Ajout des constantes FTP.
112
* $Log: not supported by cvs2svn $
119
*
113
* Revision 1.3  2004/10/18 09:12:09  jpm
120
* Revision 1.3  2004/10/18 09:12:09  jpm
114
* Changement de nom d'un fichier.
121
* Changement de nom d'un fichier.