Subversion Repositories Applications.papyrus

Rev

Rev 1988 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1988 Rev 2061
Line 1... Line 1...
1
<?php
1
<?php
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */ 
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */
3
// +------------------------------------------------------------------------------------------------------+
3
// +------------------------------------------------------------------------------------------------------+
4
// | PHP version 4.1                                                                                      |
4
// | PHP version 4.1                                                                                      |
5
// +------------------------------------------------------------------------------------------------------+
5
// +------------------------------------------------------------------------------------------------------+
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
7
// +------------------------------------------------------------------------------------------------------+
7
// +------------------------------------------------------------------------------------------------------+
Line 21... Line 21...
21
// +------------------------------------------------------------------------------------------------------+
21
// +------------------------------------------------------------------------------------------------------+
22
// CVS : $Id: installateur.php,v 1.17 2008-11-19 09:25:36 aperonnet Exp $
22
// CVS : $Id: installateur.php,v 1.17 2008-11-19 09:25:36 aperonnet 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...
28
*
28
*
29
*@package Installateur
29
*@package Installateur
30
//Auteur original :
30
//Auteur original :
31
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
31
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
Line 34... Line 34...
34
*@copyright     Tela-Botanica 2000-2004
34
*@copyright     Tela-Botanica 2000-2004
35
*@version       $Revision: 1.17 $ $Date: 2008-11-19 09:25:36 $
35
*@version       $Revision: 1.17 $ $Date: 2008-11-19 09:25:36 $
36
// +------------------------------------------------------------------------------------------------------+
36
// +------------------------------------------------------------------------------------------------------+
37
**/
37
**/
Line -... Line 38...
-
 
38
 
-
 
39
 
-
 
40
if(GEN_VERSION == PAP_VERSION) {
-
 
41
	header('location:papyrus.php');
-
 
42
	exit;
38
 
43
}
39
// +------------------------------------------------------------------------------------------------------+
44
// +------------------------------------------------------------------------------------------------------+
40
// |                                            ENTÊTE du PROGRAMME                                       |
45
// |                                            ENTÊTE du PROGRAMME                                       |
41
// +------------------------------------------------------------------------------------------------------+
46
// +------------------------------------------------------------------------------------------------------+
42
// Constante de l'application Installateur. On devrait créer un fichier de config et un de langue pour rendre l'appli portable...
47
// Constante de l'application Installateur. On devrait créer un fichier de config et un de langue pour rendre l'appli portable...
Line 68... Line 73...
68
require_once INSTAL_DOSSIER_BIBLIO.'instal_installation.fonct.php';
73
require_once INSTAL_DOSSIER_BIBLIO.'instal_installation.fonct.php';
Line 69... Line 74...
69
 
74
 
70
// +------------------------------------------------------------------------------------------------------+
75
// +------------------------------------------------------------------------------------------------------+
71
// |                                          CORPS du PROGRAMME                                          |
76
// |                                          CORPS du PROGRAMME                                          |
72
// +------------------------------------------------------------------------------------------------------+
77
// +------------------------------------------------------------------------------------------------------+
73
function afficherContenuCorps() 
78
function afficherContenuCorps()
74
{
79
{
75
    // Entête XHTML des pages de l'installation de Papyrus
80
    // Entête XHTML des pages de l'installation de Papyrus
76
    $sortie = '';
81
    $sortie = '';
77
    $sortie .= '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"'."\n";
82
    $sortie .= '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"'."\n";
Line 81... Line 86...
81
    $sortie .= '    <link rel="stylesheet" type="text/css" media="screen" title="Installateur" href="papyrus/applications/installateur/presentations/styles/installateur.css" />'."\n";
86
    $sortie .= '    <link rel="stylesheet" type="text/css" media="screen" title="Installateur" href="papyrus/applications/installateur/presentations/styles/installateur.css" />'."\n";
82
    $sortie .= '    <title>Installation de Papyrus</title>'."\n";
87
    $sortie .= '    <title>Installation de Papyrus</title>'."\n";
83
    $sortie .= '  </head>'."\n";
88
    $sortie .= '  </head>'."\n";
84
 	$sortie .= '  <body xml:lang="fr" lang="fr" >'."\n";
89
 	$sortie .= '  <body xml:lang="fr" lang="fr" >'."\n";
85
	$sortie .= '  <div id="page">'."\n";
90
	$sortie .= '  <div id="page">'."\n";
86
    $sortie .= '  	<div id="zone_bandeau">'."\n";  
91
    $sortie .= '  	<div id="zone_bandeau">'."\n";
87
	$sortie .= '  		<div id="logo">'."\n";    
92
	$sortie .= '  		<div id="logo">'."\n";
88
    $sortie .= '              <img src="papyrus/applications/installateur/presentations/images/Logo_papyrus.jpg" alt="Logo Papyrus" />'."\n";
93
    $sortie .= '              <img src="papyrus/applications/installateur/presentations/images/Logo_papyrus.jpg" alt="Logo Papyrus" />'."\n";
89
    $sortie .= '        </div>'."\n";
94
    $sortie .= '        </div>'."\n";
90
    $sortie .= '        <div id="site_nom">'."\n";
95
    $sortie .= '        <div id="site_nom">'."\n";
91
    $sortie .= '          <h1>Installation de Papyrus</h1>'."\n";
96
    $sortie .= '          <h1>Installation de Papyrus</h1>'."\n";
92
    $sortie .= '        </div>'."\n";
97
    $sortie .= '        </div>'."\n";
Line 101... Line 106...
101
                    'Veuillez revoir vos informations de configuration ci-dessous.</p><br style="clear:both;">'."\n";
106
                    'Veuillez revoir vos informations de configuration ci-dessous.</p><br style="clear:both;">'."\n";
102
    } else {
107
    } else {
103
        $sortie .=  '<p class="zone_info">Vous &ecirc;tes sur le point d\'installer Papyrus '.INSTAL_VERSION_NOUVELLE.'.<br />'.
108
        $sortie .=  '<p class="zone_info">Vous &ecirc;tes sur le point d\'installer Papyrus '.INSTAL_VERSION_NOUVELLE.'.<br />'.
104
                    'Veuillez configurer votre Papyrus en remplissant les formulaires &eacute;tape par &eacute;tape.</p><br style="clear:both;">'."\n";
109
                    'Veuillez configurer votre Papyrus en remplissant les formulaires &eacute;tape par &eacute;tape.</p><br style="clear:both;">'."\n";
105
    }
110
    }
106
    
111
 
107
    if(!isset($_GET['installation']) || ($_GET['installation'] == 'form_pref' || $_GET['installation'] == 'verif_pref')) {
112
    if(!isset($_GET['installation']) || ($_GET['installation'] == 'form_pref' || $_GET['installation'] == 'verif_pref')) {
108
        include_once GEN_CHEMIN_APPLICATION.'installateur/instal_preference.inc.php';
113
        include_once GEN_CHEMIN_APPLICATION.'installateur/instal_preference.inc.php';
109
    } else if($_GET['installation'] == 'form_bdd' || $_GET['installation'] == 'verif_bdd') {
114
    } else if($_GET['installation'] == 'form_bdd' || $_GET['installation'] == 'verif_bdd') {
110
        include_once GEN_CHEMIN_APPLICATION.'installateur/instal_base_de_donnees.inc.php';
115
        include_once GEN_CHEMIN_APPLICATION.'installateur/instal_base_de_donnees.inc.php';
111
    } else if($_GET['installation'] == 'form_fichier' || $_GET['installation'] == 'verif_fichier') {
116
    } else if($_GET['installation'] == 'form_fichier' || $_GET['installation'] == 'verif_fichier') {
112
        include_once GEN_CHEMIN_APPLICATION.'installateur/instal_fichier.inc.php';
117
        include_once GEN_CHEMIN_APPLICATION.'installateur/instal_fichier.inc.php';
113
    }
118
    }
114
    
119
 
115
    // Pied XHTML des pages de l'installation de Papyrus
120
    // Pied XHTML des pages de l'installation de Papyrus
116
    $sortie .= '    </div>'."\n";
121
    $sortie .= '    </div>'."\n";
117
    $sortie .= '      <div id="zone_pied">'."\n";
122
    $sortie .= '      <div id="zone_pied">'."\n";
118
    $sortie .= '       <div id="copyright">'."\n";
123
    $sortie .= '       <div id="copyright">'."\n";
119
    $sortie .= '        <a href="http://frenchmozilla.org"><img src="papyrus/applications/installateur/presentations/images/logo-firefox.png" alt="Logo Firefox" /></a>&nbsp;'."\n";
124
    $sortie .= '        <a href="http://frenchmozilla.org"><img src="papyrus/applications/installateur/presentations/images/logo-firefox.png" alt="Logo Firefox" /></a>&nbsp;'."\n";
Line 124... Line 129...
124
    $sortie .= '       </div>'."\n";
129
    $sortie .= '       </div>'."\n";
125
    $sortie .= '      </div>'."\n";
130
    $sortie .= '      </div>'."\n";
126
    $sortie .= '  </div>'."\n";
131
    $sortie .= '  </div>'."\n";
127
    $sortie .= ' </body>'."\n";
132
    $sortie .= ' </body>'."\n";
128
    $sortie .= '</html>';
133
    $sortie .= '</html>';
129
    
134
 
130
    return $sortie;
135
    return $sortie;
131
}
136
}
Line 132... Line 137...
132
 
137