Subversion Repositories Applications.papyrus

Rev

Rev 119 | Rev 986 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 119 Rev 458
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.9 2004-10-27 11:43:32 jpm Exp $
22
// CVS : $Id: installateur.php,v 1.10 2005-09-23 14:20:23 florian 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.9 $ $Date: 2004-10-27 11:43:32 $
35
*@version       $Revision: 1.10 $ $Date: 2005-09-23 14:20:23 $
36
// +------------------------------------------------------------------------------------------------------+
36
// +------------------------------------------------------------------------------------------------------+
37
**/
37
**/
Line 38... Line 38...
38
 
38
 
39
// +------------------------------------------------------------------------------------------------------+
39
// +------------------------------------------------------------------------------------------------------+
Line 76... Line 76...
76
    $sortie = '';
76
    $sortie = '';
77
    $sortie .= '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"'."\n";
77
    $sortie .= '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"'."\n";
78
    $sortie .= '"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'."\n";
78
    $sortie .= '"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'."\n";
79
    $sortie .= '<html xmlns="http://www.w3.org/1999/xhtml" lang="fr-FR" xml:lang="fr-FR">'."\n";
79
    $sortie .= '<html xmlns="http://www.w3.org/1999/xhtml" lang="fr-FR" xml:lang="fr-FR">'."\n";
80
    $sortie .= '  <head>'."\n";
80
    $sortie .= '  <head>'."\n";
-
 
81
    $sortie .= '    <link rel="stylesheet" type="text/css" media="screen" title="Installateur" href="papyrus/applications/installateur/presentations/styles/installateur.css" />'."\n";
81
    $sortie .= '    <title>Installation de Papyrus</title>'."\n";
82
    $sortie .= '    <title>Installation de Papyrus</title>'."\n";
82
    $sortie .= '    <style type="text/css">'."\n";
-
 
83
    $sortie .= '      p, body, td, li, input, select, textarea { font-family: Verdana; font-size: 13px; }'."\n";
-
 
84
    $sortie .= '      h1 { font-size: 1.8em; text-align: center; color: #0C6628; }'."\n";
-
 
85
    $sortie .= '      h2 { font-size: 1.2em; text-align: left; color: #0C6628; }'."\n";
-
 
86
    $sortie .= '      input { color: #0C6628; }'."\n";
-
 
87
    $sortie .= '      form ul { list-style-type: none; padding : 0px; }'."\n";
-
 
88
    $sortie .= '      form ul li { clear:both;text-align: left; padding-left: 0px; margin-left: 0px; }'."\n";
-
 
89
    $sortie .= '      form ul li label { float: left; width: 175px; text-align: left; }'."\n";
-
 
90
    $sortie .= '      li { margin: 5px 5px 5px 5px; }'."\n";
-
 
91
    $sortie .= '      a { color: #0000FF; }'."\n";
-
 
92
    $sortie .= '      .ok { color: #008800; font-weight: bold; }'."\n";
-
 
93
    $sortie .= '      .failed { color: #880000; font-weight: bold; }'."\n";
-
 
94
    $sortie .= '      .erreur { color: red; font-weight: bold;}'."\n";
-
 
95
    $sortie .= '      .zone_requete { height: 300px; width: 550px; overflow: scroll;}'."\n";
-
 
96
    $sortie .= '      .etape_info { margin: 5px 10% 5px 10%; padding: 3px; text-align: center; background-color: #92C492; border: 1px dashed black; }'."\n";
-
 
97
    $sortie .= '      .etape_numero { width: 200px; text-align: center; padding: 3px; font-size: 1.2em; border: 1px dotted black; color: #0C6628;}'."\n";
-
 
98
    $sortie .= '      #fichier_config { background-color: #EEEEEE; padding: 10px 10px;}'."\n";
-
 
99
    $sortie .= '    </style>'."\n";
-
 
100
    $sortie .= '  </head>'."\n";
83
    $sortie .= '  </head>'."\n";
101
    $sortie .= '  <body>'."\n";
84
    $sortie .= '  <body>'."\n";
-
 
85
    $sortie .= '  <div id="container">'."\n";
-
 
86
    $sortie .= '      <div id="zone_bandeau" >'."\n";
-
 
87
    $sortie .= '        <div id="logo">'."\n";
-
 
88
    $sortie .= '          <a href="/" title="Retour en page d\'accueil">'."\n";
-
 
89
    $sortie .= '              <img src="papyrus/applications/installateur/presentations/images/logo_papyrus.png" width="183" height="63" alt="Logo Papyrus" />'."\n";
-
 
90
    $sortie .= '          </a>'."\n";
-
 
91
    $sortie .= '        </div>'."\n";
-
 
92
    $sortie .= '        <div id="site_nom">'."\n";
102
    $sortie .= '    <h1>Installation de Papyrus</h1></h1>'."\n";
93
    $sortie .= '          <h1>Installation de Papyrus</h1>'."\n";
103
    
-
 
-
 
94
    $sortie .= '        </div>'."\n";
-
 
95
    $sortie .= '      </div>'."\n";
-
 
96
    $sortie .= '      <div id="zone_contenu">'."\n";
104
    // Message situation de l'installation
97
    // Message situation de l'installation
105
    if (defined('PAP_VERSION')) {
98
    if (defined('PAP_VERSION')) {
106
        $sortie .=  '<p>Votre syst&egrave;me Papyrus existant a &eacute;t&eacute; reconnu comme &eacute;tant la version '.
99
        $sortie .=  '<p>Votre syst&egrave;me Papyrus existant a &eacute;t&eacute; reconnu comme &eacute;tant la version '.
107
                    INSTAL_VERSION_ANCIENNE.'.<br />'.
100
                    INSTAL_VERSION_ANCIENNE.'.<br />'.
108
                    'Vous &ecirc;tes sur le point de <b>mettre &agrave; jour</b> Papyrus pour la version '.
101
                    'Vous &ecirc;tes sur le point de <b>mettre &agrave; jour</b> Papyrus pour la version '.
Line 120... Line 113...
120
    } else if($_GET['installation'] == 'form_fichier' || $_GET['installation'] == 'verif_fichier') {
113
    } else if($_GET['installation'] == 'form_fichier' || $_GET['installation'] == 'verif_fichier') {
121
        include_once GEN_CHEMIN_APPLICATION.'installateur/instal_fichier.inc.php';
114
        include_once GEN_CHEMIN_APPLICATION.'installateur/instal_fichier.inc.php';
122
    }
115
    }
Line 123... Line 116...
123
    
116
    
-
 
117
    // Pied XHTML des pages de l'installation de Papyrus
-
 
118
    $sortie .= '    </div>'."\n";
-
 
119
    $sortie .= '      <div id="zone_pied">'."\n";
-
 
120
    $sortie .= '        <a href="http://frenchmozilla.org"><img src="papyrus/applications/installateur/presentations/images/logo-firefox.png" alt="Logo Firefox" /></a>&nbsp;'."\n";
-
 
121
    $sortie .= '        <a href="http://validator.w3.org/check?uri=referer"><img src="papyrus/applications/installateur/presentations/images/logo-xhtml11.png" alt="Logo XHTML" /></a>&nbsp;'."\n";
-
 
122
    $sortie .= '        <a href="http://jigsaw.w3.org/css-validator/check/referer"><img src="papyrus/applications/installateur/presentations/images/logo-css.png" alt="Logo CSS" /></a><br />'."\n";
-
 
123
    $sortie .= '        &copy;<a href="http://www.tela-botanica.org/">Tela Botanica</a> et  <a href="http://www.ecole-et-nature.org/">Réseau Ecole et Nature</a> / 2004-2006'."\n";
-
 
124
    $sortie .= '      </div>'."\n";
124
    // Pied XHTML des pages de l'installation de Papyrus
125
    $sortie .= '  </div>'."\n";
125
    $sortie .= '  </body>'."\n";
126
    $sortie .= ' </body>'."\n";
Line 126... Line 127...
126
    $sortie .= '</html>';
127
    $sortie .= '</html>';
127
    
128
    
Line 132... Line 133...
132
// +------------------------------------------------------------------------------------------------------+
133
// +------------------------------------------------------------------------------------------------------+
Line 133... Line 134...
133
 
134
 
134
/* +--Fin du code ----------------------------------------------------------------------------------------+
135
/* +--Fin du code ----------------------------------------------------------------------------------------+
135
*
136
*
-
 
137
* $Log: not supported by cvs2svn $
-
 
138
* Revision 1.9  2004/10/27 11:43:32  jpm
-
 
139
* Correction bogues diff mise à jour / installation.
136
* $Log: not supported by cvs2svn $
140
*
137
* Revision 1.8  2004/10/25 10:22:48  jpm
141
* Revision 1.8  2004/10/25 10:22:48  jpm
138
* Correction de quelques bogues, ajouts d'explications pour l'utilisateur et modification des styles CSS.
142
* Correction de quelques bogues, ajouts d'explications pour l'utilisateur et modification des styles CSS.
139
*
143
*
140
* Revision 1.7  2004/10/22 17:23:04  jpm
144
* Revision 1.7  2004/10/22 17:23:04  jpm