Subversion Repositories Applications.papyrus

Rev

Rev 79 | Rev 87 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 79 Rev 80
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
// +------------------------------------------------------------------------------------------------------+
8
// | Copyright (c) 2002, Hendrik Mans <hendrik@mans.de>                                                   |
8
// | Copyright (c) 2002, Hendrik Mans <hendrik@mans.de>                                                   |
9
// | Copyright 2002, 2003 David DELON                                                                     |
9
// | Copyright 2002, 2003 David DELON                                                                     |
10
// | Copyright 2002 Patrick PAUL                                                                          |
10
// | Copyright 2002 Patrick PAUL                                                                          |
11
// | All rights reserved.                                                                                 |
11
// | All rights reserved.                                                                                 |
12
// | Redistribution and use in source and binary forms, with or without                                   |
12
// | Redistribution and use in source and binary forms, with or without                                   |
13
// | modification, are permitted provided that the following conditions                                   |
13
// | modification, are permitted provided that the following conditions                                   |
14
// | are met:                                                                                             |
14
// | are met:                                                                                             |
15
// | 1. Redistributions of source code must retain the above copyright                                    |
15
// | 1. Redistributions of source code must retain the above copyright                                    |
16
// | notice, this list of conditions and the following disclaimer.                                        |
16
// | notice, this list of conditions and the following disclaimer.                                        |
17
// | 2. Redistributions in binary form must reproduce the above copyright                                 |
17
// | 2. Redistributions in binary form must reproduce the above copyright                                 |
18
// | notice, this list of conditions and the following disclaimer in the                                  |
18
// | notice, this list of conditions and the following disclaimer in the                                  |
19
// | documentation and/or other materials provided with the distribution.                                 |
19
// | documentation and/or other materials provided with the distribution.                                 |
20
// | 3. The name of the author may not be used to endorse or promote products                             |
20
// | 3. The name of the author may not be used to endorse or promote products                             |
21
// | derived from this software without specific prior written permission.                                |
21
// | derived from this software without specific prior written permission.                                |
22
// |                                                                                                      |
22
// |                                                                                                      |
23
// | THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR                                 |
23
// | THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR                                 |
24
// | IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES                            |
24
// | IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES                            |
25
// | OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.                              |
25
// | OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.                              |
26
// | IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,                                     |
26
// | IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,                                     |
27
// | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT                             |
27
// | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT                             |
28
// | NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,                            |
28
// | NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,                            |
29
// | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY                                |
29
// | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY                                |
30
// | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT                                  |
30
// | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT                                  |
31
// | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF                             |
31
// | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF                             |
32
// | THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.                                    |
32
// | THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.                                    |
33
// +------------------------------------------------------------------------------------------------------+
33
// +------------------------------------------------------------------------------------------------------+
34
// CVS : $Id: instal_preference.inc.php,v 1.3 2004-10-19 16:47:28 jpm Exp $
34
// CVS : $Id: instal_preference.inc.php,v 1.4 2004-10-19 17:01:12 jpm Exp $
35
/**
35
/**
36
* Page d'initialisation de l'installation de Papyrus.
36
* Page d'initialisation de l'installation de Papyrus.
37
*
37
*
38
* Contenu de la page par défaut de l'installation de Papyrus.
38
* Contenu de la page par défaut de l'installation de Papyrus.
39
*
39
*
40
*@package Installateur
40
*@package Installateur
41
//Auteur original :
41
//Auteur original :
42
*@author        Hendrik MANS <hendrik@mans.de>
42
*@author        Hendrik MANS <hendrik@mans.de>
43
//Autres auteurs :
43
//Autres auteurs :
44
*@author        David DELON
44
*@author        David DELON
45
*@author        Patrick PAUL
45
*@author        Patrick PAUL
46
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
46
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
47
*@copyright     Tela-Botanica 2000-2004
47
*@copyright     Tela-Botanica 2000-2004
48
*@version       $Revision: 1.3 $ $Date: 2004-10-19 16:47:28 $
48
*@version       $Revision: 1.4 $ $Date: 2004-10-19 17:01:12 $
49
// +------------------------------------------------------------------------------------------------------+
49
// +------------------------------------------------------------------------------------------------------+
50
**/
50
**/
51
 
51
 
52
// +------------------------------------------------------------------------------------------------------+
52
// +------------------------------------------------------------------------------------------------------+
53
// |                                            ENTÊTE du PROGRAMME                                       |
53
// |                                            ENTÊTE du PROGRAMME                                       |
54
// +------------------------------------------------------------------------------------------------------+
54
// +------------------------------------------------------------------------------------------------------+
55
$conf = array('PAP_BDD_SERVEUR' => '', 'PAP_BDD_NOM' => '', 'PAP_BDD_UTILISATEUR' => '', 'PAP_BDD_MOT_DE_PASSE' => '', 
55
$conf = array('PAP_BDD_SERVEUR' => '', 'PAP_BDD_NOM' => '', 'PAP_BDD_UTILISATEUR' => '', 'PAP_BDD_MOT_DE_PASSE' => '', 
56
                'PAP_FTP_SERVEUR' => '', 'PAP_FTP_PORT' => '', 'PAP_FTP_UTILISATEUR' => '', 'PAP_FTP_MOT_DE_PASSE' => '',
56
                'PAP_FTP_SERVEUR' => '', 'PAP_FTP_PORT' => '', 'PAP_FTP_UTILISATEUR' => '', 'PAP_FTP_MOT_DE_PASSE' => '',
57
                'PAP_FTP_RACINE' => '', 'PAP_CHEMIN_RACINE' => '', 'PAP_URL_REECRITURE' => '');
57
                'PAP_FTP_RACINE' => '', 'PAP_CHEMIN_RACINE' => '', 'PAP_URL_REECRITURE' => '');
58
foreach ($conf as $c => $v) {
58
foreach ($conf as $c => $v) {
59
    if (!empty($_POST['config'][$c])) {
59
    if (!empty($_POST['config'][$c])) {
60
        $config[$c] = $_POST['config'][$c];
60
        $config[$c] = $_POST['config'][$c];
61
    } else if (defined($c)) {
61
    } else if (defined($c)) {
62
        $config[$c] = constant($c);
62
        $config[$c] = constant($c);
63
    } else {
63
    } else {
64
        $config[$c] = '';
64
        $config[$c] = '';
65
    }
65
    }
66
}
66
}
67
$bd = array(  'ADMIN_PRENOM' => '', 'ADMIN_NOM' => '', 'ADMIN_LOGIN' => '', 'ADMIN_MAIL' => '', 'ADMIN_MDP_01' => '', 
67
$bd = array(  'ADMIN_PRENOM' => '', 'ADMIN_NOM' => '', 'ADMIN_LOGIN' => '', 'ADMIN_MAIL' => '', 'ADMIN_MDP_01' => '', 
68
                'ADMIN_MDP_02' => '', 'ADMIN_I18N' => '');
68
                'ADMIN_MDP_02' => '', 'ADMIN_I18N' => '');
69
foreach ($bd as $c => $v) {
69
foreach ($bd as $c => $v) {
70
    if (!empty($_POST['bdd'][$c])) {
70
    if (!empty($_POST['bdd'][$c])) {
71
        $bdd[$c] = $_POST['bdd'][$c];
71
        $bdd[$c] = $_POST['bdd'][$c];
72
    } else if (defined($c)) {
72
    } else if (defined($c)) {
73
        $bdd[$c] = constant($c);
73
        $bdd[$c] = constant($c);
74
    } else {
74
    } else {
75
        $bdd[$c] = '';
75
        $bdd[$c] = '';
76
    }
76
    }
77
}
77
}
78
// +------------------------------------------------------------------------------------------------------+
78
// +------------------------------------------------------------------------------------------------------+
79
// |                                          CORPS du PROGRAMME                                          |
79
// |                                          CORPS du PROGRAMME                                          |
80
// +------------------------------------------------------------------------------------------------------+
80
// +------------------------------------------------------------------------------------------------------+
81
$sortie .= '    <h1>Installation de Papyrus</h1>'."\n";
81
$sortie .= '    <h1>Installation de Papyrus</h1>'."\n";
82
 
82
 
83
if (isset($message_erreur)) {
83
if (isset($message_erreur)) {
84
    $sortie .= '<div class="erreur">'.$message_erreur.'</div>'."\n";
84
    $sortie .= '<div class="erreur">'.$message_erreur.'</div>'."\n";
85
}
85
}
86
if (defined('PAP_VERSION')) {
86
if (defined('PAP_VERSION')) {
87
    $sortie .=  '<p>Votre syst&egrave;me Papyrus existant a &eacute;t&eacute; reconnu comme &eacute;tant la version '.
87
    $sortie .=  '<p>Votre syst&egrave;me Papyrus existant a &eacute;t&eacute; reconnu comme &eacute;tant la version '.
88
                INSTAL_VERSION_ANCIENNE.'.<br />'.
88
                INSTAL_VERSION_ANCIENNE.'.<br />'.
89
                'Vous &ecirc;tes sur le point de <b>mettre &agrave; jour</b> Papyrus pour la version '.
89
                'Vous &ecirc;tes sur le point de <b>mettre &agrave; jour</b> Papyrus pour la version '.
90
                INSTAL_VERSION_NOUVELLE.'.<br />'.
90
                INSTAL_VERSION_NOUVELLE.'.<br />'.
91
                'Veuillez revoir vos informations de configuration ci-dessous.</p>'."\n";
91
                'Veuillez revoir vos informations de configuration ci-dessous.</p>'."\n";
92
} else {
92
} else {
93
    $sortie .=  '<p>Vous &ecirc;tes sur le point d\'installer Papyrus '.INSTAL_VERSION_NOUVELLE.'.<br />'.
93
    $sortie .=  '<p>Vous &ecirc;tes sur le point d\'installer Papyrus '.INSTAL_VERSION_NOUVELLE.'.<br />'.
94
                'Veuillez configurer votre Papyrus en utilisant le formulaire suivant.</p>'."\n";
94
                'Veuillez configurer votre Papyrus en utilisant le formulaire suivant.</p>'."\n";
95
}
95
}
96
$sortie .= '    <form action="'.donnerUrlCourante().'?installation=verif" method="post">';
96
$sortie .= '    <form action="'.donnerUrlCourante().'?installation=verif" method="post">';
97
$sortie .= '      <ul>'."\n";
97
$sortie .= '      <ul>'."\n";
98
$sortie .=  '<li>NOTE: Ce programme d\'installation va essayer de modifier les options de configurations dans le '.
98
$sortie .=  '<li>NOTE: Ce programme d\'installation va essayer de modifier les options de configurations dans le '.
99
            'fichier <tt>pap_config.inc.php</tt>, situ&eacute; dans le r&eacute;pertoire <tt>configuration</tt> du réportoire '.
99
            'fichier <tt>pap_config.inc.php</tt>, situ&eacute; dans le r&eacute;pertoire <tt>configuration</tt> du réportoire '.
100
            '<tt>papyrus</tt>. Pour que cela fonctionne, veuillez vous assurez que votre serveur a les droits d\'acc&egrave;s '.
100
            '<tt>papyrus</tt>. Pour que cela fonctionne, veuillez vous assurez que votre serveur a les droits d\'acc&egrave;s '.
101
            'en &eacute;criture pour ce fichier. Si pour une raison quelconque vous ne pouvez pas faire &ccedil;a vous '.
101
            'en &eacute;criture pour ce fichier. Si pour une raison quelconque vous ne pouvez pas faire &ccedil;a vous '.
102
            'devrez modifier ce fichier manuellement (ce programme d\'installation vous dira comment).</li>'."\n";
102
            'devrez modifier ce fichier manuellement (ce programme d\'installation vous dira comment).</li>'."\n";
103
$sortie .=  '<li><h2>Configuration de la base de donn&eacute;es</h2></li>'."\n";
103
$sortie .=  '<li><h2>Configuration de la base de donn&eacute;es</h2></li>'."\n";
104
$sortie .=  '<li>La machine sur laquelle se trouve votre serveur MySQL. En g&eacute;n&eacute;ral c\'est "localhost" (ie, la m&ecirc;me machine que celle o&ugrave; se trouve les pages de Papyrus.).</li>'."\n";
104
$sortie .=  '<li>La machine sur laquelle se trouve votre serveur MySQL. En g&eacute;n&eacute;ral c\'est "localhost" (ie, la m&ecirc;me machine que celle o&ugrave; se trouve les pages de Papyrus.).</li>'."\n";
105
$sortie .=  '<li></li>'."\n";
-
 
106
$sortie .=  '<li>'."\n".
105
$sortie .=  '<li>'."\n".
107
            '<label for="mysql_serveur">Nom du serveur MySQL :</label>'.
106
            '<label for="mysql_serveur">Nom du serveur MySQL :</label>'.
108
            '<input id="mysql_serveur" type="text" size="30" name="config[PAP_BDD_SERVEUR]" value="'.$config['PAP_BDD_SERVEUR'].'" />'.
107
            '<input id="mysql_serveur" type="text" size="30" name="config[PAP_BDD_SERVEUR]" value="'.$config['PAP_BDD_SERVEUR'].'" />'.
109
            '</li>'."\n";
108
            '</li>'."\n";
110
$sortie .=  '<li>La base de donn&eacute;es MySQL &agrave; utiliser pour Papyrus. Cette base de donn&eacute;es doit d&eacute;j&agrave; '.
109
$sortie .=  '<li>La base de donn&eacute;es MySQL &agrave; utiliser pour Papyrus. Cette base de donn&eacute;es doit d&eacute;j&agrave; '.
111
            'exister avant de pouvoir continuer.</li>'."\n";
110
            'exister avant de pouvoir continuer.</li>'."\n";
112
$sortie .=  '<li>'."\n".
111
$sortie .=  '<li>'."\n".
113
            '<label for="mysql_database">Base de donn&eacute;es MySQL :</label>'.
112
            '<label for="mysql_database">Base de donn&eacute;es MySQL :</label>'.
114
            '<input id="mysql_database" type="text" size="30" name="config[PAP_BDD_NOM]" value="'.$config['PAP_BDD_NOM'].'" />'.
113
            '<input id="mysql_database" type="text" size="30" name="config[PAP_BDD_NOM]" value="'.$config['PAP_BDD_NOM'].'" />'.
115
            '</li>'."\n";
114
            '</li>'."\n";
116
$sortie .=  '<li>Nom et mot de passe de l\'utilisateur MySQL qui sera utilis&eacute; pour se connecter &agrave; votre base de donn&eacute;es.</li>'."\n";
115
$sortie .=  '<li>Nom et mot de passe de l\'utilisateur MySQL qui sera utilis&eacute; pour se connecter &agrave; votre base de donn&eacute;es.</li>'."\n";
117
$sortie .=  '<li>'."\n".
116
$sortie .=  '<li>'."\n".
118
            '<label for="mysql_user">Non de l\'utilisateur MySQL :</label>'.
117
            '<label for="mysql_user">Non de l\'utilisateur MySQL :</label>'.
119
            '<input id="mysql_user" type="text" size="30" name="config[PAP_BDD_UTILISATEUR]" value="'.$config['PAP_BDD_UTILISATEUR'].'" />'.
118
            '<input id="mysql_user" type="text" size="30" name="config[PAP_BDD_UTILISATEUR]" value="'.$config['PAP_BDD_UTILISATEUR'].'" />'.
120
            '</li>'."\n";
119
            '</li>'."\n";
121
$sortie .=  '<li>'."\n".
120
$sortie .=  '<li>'."\n".
122
            '<label for="mysql_password">Mot de passe MySQL :</label>'.
121
            '<label for="mysql_password">Mot de passe MySQL :</label>'.
123
            '<input id="mysql_password" type="password" size="30" name="config[PAP_BDD_MOT_DE_PASSE]" value="'.$config['PAP_BDD_MOT_DE_PASSE'].'" />'.
122
            '<input id="mysql_password" type="password" size="30" name="config[PAP_BDD_MOT_DE_PASSE]" value="'.$config['PAP_BDD_MOT_DE_PASSE'].'" />'.
124
            '</li>'."\n";
123
            '</li>'."\n";
125
$sortie .=  '<li><h2>Configuration du FTP et des chemins d\'accès</h2></li>'."\n";
124
$sortie .=  '<li><h2>Configuration du FTP et des chemins d\'accès</h2></li>'."\n";
126
$sortie .=  '<li>'."\n".
125
$sortie .=  '<li>'."\n".
127
            '<label for="ftp_serveur">Nom du serveur FTP :</label>'.
126
            '<label for="ftp_serveur">Nom du serveur FTP :</label>'.
128
            '<input id="ftp_serveur" type="text" size="30" name="config[PAP_FTP_SERVEUR]" value="'.$config['PAP_FTP_SERVEUR'].'" />'.
127
            '<input id="ftp_serveur" type="text" size="30" name="config[PAP_FTP_SERVEUR]" value="'.$config['PAP_FTP_SERVEUR'].'" />'.
129
            '</li>'."\n";
128
            '</li>'."\n";
130
$sortie .=  '<li>'."\n".
129
$sortie .=  '<li>'."\n".
131
            '<label for="ftp_port">N° du port d\'accès au serveur FTP :</label>'.
130
            '<label for="ftp_port">N° du port d\'accès au serveur FTP :</label>'.
132
            '<input id="ftp_port" type="text" size="20" name="config[PAP_FTP_PORT]" value="'.$config['PAP_FTP_PORT'].'" />'.
131
            '<input id="ftp_port" type="text" size="20" name="config[PAP_FTP_PORT]" value="'.$config['PAP_FTP_PORT'].'" />'.
133
            '</li>'."\n";
132
            '</li>'."\n";
134
$sortie .=  '<li>'."\n".
133
$sortie .=  '<li>'."\n".
135
            '<label for="ftp_utilisateur">Nom d\'utilisateur pour le serveur FTP :</label>'.
134
            '<label for="ftp_utilisateur">Nom d\'utilisateur pour le serveur FTP :</label>'.
136
            '<input id="ftp_utilisateur" type="text" size="20" name="config[PAP_FTP_UTILISATEUR]" value="'.$config['PAP_FTP_UTILISATEUR'].'" />'.
135
            '<input id="ftp_utilisateur" type="text" size="20" name="config[PAP_FTP_UTILISATEUR]" value="'.$config['PAP_FTP_UTILISATEUR'].'" />'.
137
            '</li>'."\n";
136
            '</li>'."\n";
138
$sortie .=  '<li>'."\n".
137
$sortie .=  '<li>'."\n".
139
            '<label for="ftp_mot_de_passe">Mot de passe de l\'utilisateur pour le serveur FTP :</label>'.
138
            '<label for="ftp_mot_de_passe">Mot de passe de l\'utilisateur pour le serveur FTP :</label>'.
140
            '<input id="ftp_mot_de_passe" type="password" size="20" name="config[PAP_FTP_MOT_DE_PASSE]" value="'.$config['PAP_FTP_MOT_DE_PASSE'].'" />'.
139
            '<input id="ftp_mot_de_passe" type="password" size="20" name="config[PAP_FTP_MOT_DE_PASSE]" value="'.$config['PAP_FTP_MOT_DE_PASSE'].'" />'.
141
            '</li>'."\n";
140
            '</li>'."\n";
142
$sortie .=  '<li><h2>Chemin d\'accès au fichier <tt>papyrus.php</tt> : </h2></li>'."\n";
141
$sortie .=  '<li><h2>Chemin d\'accès au fichier <tt>papyrus.php</tt> : </h2></li>'."\n";
143
$sortie .=  '<li>Lorsque vous vous connecter par FTP sur le serveur où vous avez déposé les fichiers de Papyrus, le '.
142
$sortie .=  '<li>Lorsque vous vous connecter par FTP sur le serveur où vous avez déposé les fichiers de Papyrus, le '.
144
            'dossier le plus haut auquel vous pouvez accéder dans l\'arborescence est la racine. Il vous faut donc '.
143
            'dossier le plus haut auquel vous pouvez accéder dans l\'arborescence est la racine. Il vous faut donc '.
145
            'indiquez dans le champ ci-dessous le chemin depuis cette racine jusqu\'au dossier contenant le fichier '.
144
            'indiquez dans le champ ci-dessous le chemin depuis cette racine jusqu\'au dossier contenant le fichier '.
146
            '<tt>papyrus.php</tt>. Exemple : <i>www/</i><br /> Notes : Le chemin doit commmencer directement par le nom'.
145
            '<tt>papyrus.php</tt>. Exemple : <i>www/</i><br /> Notes : Le chemin doit commmencer directement par le nom'.
147
            ' du premier dossier et se terminer par un slash (/) ou un anti-slash (\\) suivant le système d\''.
146
            ' du premier dossier et se terminer par un slash (/) ou un anti-slash (\\) suivant le système d\''.
148
            'exploitation de votre serveur.</li>'."\n";
147
            'exploitation de votre serveur.</li>'."\n";
149
$sortie .=  '<li>'."\n".
148
$sortie .=  '<li>'."\n".
150
            '<label for="ftp_racine">Racine dépôt FTP :</label>'.
149
            '<label for="ftp_racine">Racine dépôt FTP :</label>'.
151
            '<input id="ftp_racine" type="text" size="60" name="config[PAP_FTP_RACINE]" value="'.$config['PAP_FTP_RACINE'].'" />'.
150
            '<input id="ftp_racine" type="text" size="60" name="config[PAP_FTP_RACINE]" value="'.$config['PAP_FTP_RACINE'].'" />'.
152
            '</li>'."\n";
151
            '</li>'."\n";
153
$sortie .=  '<li>Lorsque vous vous connecter par FTP sur le serveur, il existe un dossier racine spécifique où vous déposez '.
152
$sortie .=  '<li>Lorsque vous vous connecter par FTP sur le serveur, il existe un dossier racine spécifique où vous déposez '.
154
            'les fichiers html qui seront ensuite accessible depuis une adresse web. Si ce dossier racine est le '.
153
            'les fichiers html qui seront ensuite accessible depuis une adresse web. Si ce dossier racine est le '.
155
            'dossier dans lequel vous avez déposez les fichiers de Papyrus alors laissez le champ ci-dessous vide. Si '.
154
            'dossier dans lequel vous avez déposez les fichiers de Papyrus alors laissez le champ ci-dessous vide. Si '.
156
            'par contre, Papyrus est dans une sous-dossier de ce dossier indiquez son chemin. Exemple : <i>mon_papyrus/</i><br />'.
155
            'par contre, Papyrus est dans une sous-dossier de ce dossier indiquez son chemin. Exemple : <i>mon_papyrus/</i><br />'.
157
            'Notes : Le chemin doit commmencer directement par le nom du sous-dossier et se terminer par un slash '.
156
            'Notes : Le chemin doit commmencer directement par le nom du sous-dossier et se terminer par un slash '.
158
            '(/) ou un anti-slash (\\) suivant le système d\'exploitation de votre serveur.</li>'."\n";
157
            '(/) ou un anti-slash (\\) suivant le système d\'exploitation de votre serveur.</li>'."\n";
159
$sortie .=  '<li>'."\n".
158
$sortie .=  '<li>'."\n".
160
            '<label for="web_racine">Racine dépôt web :</label>'.
159
            '<label for="web_racine">Racine dépôt web :</label>'.
161
            '<input id="web_racine" type="text" size="60" name="config[PAP_CHEMIN_RACINE]" value="'.$config['PAP_CHEMIN_RACINE'].'" />'.
160
            '<input id="web_racine" type="text" size="60" name="config[PAP_CHEMIN_RACINE]" value="'.$config['PAP_CHEMIN_RACINE'].'" />'.
162
            '</li>'."\n";
161
            '</li>'."\n";
163
$sortie .=  '<li><h2>Configuration d\'un administrateur de Papyrus</h2></li>'."\n";
162
$sortie .=  '<li><h2>Configuration d\'un administrateur de Papyrus</h2></li>'."\n";
164
$sortie .=  '<li>Tous les champs ci-dessous sont obligatoires.</li>'."\n";
163
$sortie .=  '<li>Tous les champs ci-dessous sont obligatoires.</li>'."\n";
165
$sortie .=  '<li>'."\n".
164
$sortie .=  '<li>'."\n".
166
            '<label for="admin_prenom">Prénom :</label>'.
165
            '<label for="admin_prenom">Prénom :</label>'.
167
            '<input id="admin_prenom" type="text" size="30" name="bdd[ADMIN_PRENOM]" value="'.$bdd['ADMIN_PRENOM'].'" />'.
166
            '<input id="admin_prenom" type="text" size="30" name="bdd[ADMIN_PRENOM]" value="'.$bdd['ADMIN_PRENOM'].'" />'.
168
            '</li>'."\n";
167
            '</li>'."\n";
169
$sortie .=  '<li>'."\n".
168
$sortie .=  '<li>'."\n".
170
            '<label for="admin_nom">Nom :</label>'.
169
            '<label for="admin_nom">Nom :</label>'.
171
            '<input id="admin_nom" type="text" size="30" name="bdd[ADMIN_NOM]" value="'.$bdd['ADMIN_NOM'].'" />'.
170
            '<input id="admin_nom" type="text" size="30" name="bdd[ADMIN_NOM]" value="'.$bdd['ADMIN_NOM'].'" />'.
172
            '</li>'."\n";
171
            '</li>'."\n";
173
$sortie .=  '<li>'."\n".
172
$sortie .=  '<li>'."\n".
174
            '<label for="admin_login">Login :</label>'.
173
            '<label for="admin_login">Login :</label>'.
175
            '<input id="admin_login" type="text" size="30" name="bdd[ADMIN_LOGIN]" value="'.$bdd['ADMIN_LOGIN'].'" />'.
174
            '<input id="admin_login" type="text" size="30" name="bdd[ADMIN_LOGIN]" value="'.$bdd['ADMIN_LOGIN'].'" />'.
176
            '</li>'."\n";
175
            '</li>'."\n";
177
$sortie .=  '<li>'."\n".
176
$sortie .=  '<li>'."\n".
178
            '<label for="admin_mail">Courriel :</label>'.
177
            '<label for="admin_mail">Courriel :</label>'.
179
            '<input id="admin_mail" type="text" size="30" name="bdd[ADMIN_MAIL]" value="'.$bdd['ADMIN_MAIL'].'" />'.
178
            '<input id="admin_mail" type="text" size="30" name="bdd[ADMIN_MAIL]" value="'.$bdd['ADMIN_MAIL'].'" />'.
180
            '</li>'."\n";
179
            '</li>'."\n";
181
$sortie .=  '<li>'."\n".
180
$sortie .=  '<li>'."\n".
182
            '<label for="admin_mdp_01">Mot de passe :</label>'.
181
            '<label for="admin_mdp_01">Mot de passe :</label>'.
183
            '<input id="admin_mdp_01" type="password" size="10" name="bdd[ADMIN_MDP_01]" value="'.$bdd['ADMIN_MDP_01'].'" />'.
182
            '<input id="admin_mdp_01" type="password" size="10" name="bdd[ADMIN_MDP_01]" value="'.$bdd['ADMIN_MDP_01'].'" />'.
184
            '</li>'."\n";
183
            '</li>'."\n";
185
$sortie .=  '<li>'."\n".
184
$sortie .=  '<li>'."\n".
186
            '<label for="admin_mdp_02">Taper à nouveau votre mot de passe :</label>'.
185
            '<label for="admin_mdp_02">Taper à nouveau votre mot de passe :</label>'.
187
            '<input id="admin_mdp_02" type="password" size="10" name="bdd[ADMIN_MDP_02]" value="'.$bdd['ADMIN_MDP_02'].'" />'.
186
            '<input id="admin_mdp_02" type="password" size="10" name="bdd[ADMIN_MDP_02]" value="'.$bdd['ADMIN_MDP_02'].'" />'.
188
            '</li>'."\n";
187
            '</li>'."\n";
189
$sortie .=  '<li>'."\n".
188
$sortie .=  '<li>'."\n".
190
            '<label for="admin_i18n">Langue :</label>'.
189
            '<label for="admin_i18n">Langue :</label>'.
191
            '<select id="admin_i18n" name="bdd[ADMIN_I18N]">'.
190
            '<select id="admin_i18n" name="bdd[ADMIN_I18N]">'.
192
                '<option value="fr-FR" selected="selected">français</option>'.
191
                '<option value="fr-FR" selected="selected">français</option>'.
193
            '</select>'.
192
            '</select>'.
194
            '</li>'."\n";
193
            '</li>'."\n";
195
$sortie .=  '<li><h2>Configuration de la ré-écriture d\'URL</h2></li>'."\n";
194
$sortie .=  '<li><h2>Configuration de la ré-écriture d\'URL</h2></li>'."\n";
196
$sortie .=  '<li>Le mode "redirection automatique" doit &ecirc;tre s&eacute;lectionn&eacute; uniquement si vous utilisez WikiNi avec la redirection d\'URL (si vous ne savez pas ce qu\'est la redirection d\'URL n\'activez pas cette option).</li>'."\n";
195
$sortie .=  '<li>Le mode "redirection automatique" doit &ecirc;tre s&eacute;lectionn&eacute; uniquement si vous utilisez WikiNi avec la redirection d\'URL (si vous ne savez pas ce qu\'est la redirection d\'URL n\'activez pas cette option).</li>'."\n";
197
$sortie .=  '<li>'."\n".
196
$sortie .=  '<li>'."\n".
198
            '<label for="rewrite_mode">Mode "redirection" :</label>'.
197
            '<label for="rewrite_mode">Mode "redirection" :</label>'.
199
            '<input id="rewrite_mode" type="checkbox" name="config[PAP_URL_REECRITURE]" value="'.$config['PAP_URL_REECRITURE'].'" />'.
198
            '<input id="rewrite_mode" type="checkbox" name="config[PAP_URL_REECRITURE]" value="'.$config['PAP_URL_REECRITURE'].'" />'.
200
            'Activation'.
199
            'Activation'.
201
            '<input type="hidden" name="config[PAP_URL_REECRITURE]" value="0" />'.
200
            '<input type="hidden" name="config[PAP_URL_REECRITURE]" value="0" />'.
202
            '</li>'."\n";
201
            '</li>'."\n";
203
$sortie .=  '<li>'."\n".
202
$sortie .=  '<li>'."\n".
204
            '<input type="submit" value="Continuer" />'.
203
            '<input type="submit" value="Continuer" />'.
205
            '</li>'."\n";
204
            '</li>'."\n";
206
$sortie .= '      </ul>'."\n";
205
$sortie .= '      </ul>'."\n";
207
$sortie .= '    </form>';
206
$sortie .= '    </form>';
208
 
207
 
209
// +------------------------------------------------------------------------------------------------------+
208
// +------------------------------------------------------------------------------------------------------+
210
// |                                            PIED du PROGRAMME                                         |
209
// |                                            PIED du PROGRAMME                                         |
211
// +------------------------------------------------------------------------------------------------------+
210
// +------------------------------------------------------------------------------------------------------+
212
 
211
 
213
 
212
 
214
/* +--Fin du code ----------------------------------------------------------------------------------------+
213
/* +--Fin du code ----------------------------------------------------------------------------------------+
215
*
214
*
216
* $Log: not supported by cvs2svn $
215
* $Log: not supported by cvs2svn $
-
 
216
* Revision 1.3  2004/10/19 16:47:28  jpm
-
 
217
* Transformation en fonction de l'appel de l'application.
-
 
218
*
217
* Revision 1.2  2004/10/19 15:59:18  jpm
219
* Revision 1.2  2004/10/19 15:59:18  jpm
218
* Ajout de la gestion des valeurs propre à Papyrus à insérer dans la base de données.
220
* Ajout de la gestion des valeurs propre à Papyrus à insérer dans la base de données.
219
* Ajout des constantes FTP.
221
* Ajout des constantes FTP.
220
*
222
*
221
* Revision 1.1  2004/10/15 18:28:59  jpm
223
* Revision 1.1  2004/10/15 18:28:59  jpm
222
* Début appli installateur de Papyrus.
224
* Début appli installateur de Papyrus.
223
*
225
*
224
*
226
*
225
* +-- Fin du code ----------------------------------------------------------------------------------------+
227
* +-- Fin du code ----------------------------------------------------------------------------------------+
226
*/
228
*/
227
?>
229
?>