Line 29... |
Line 29... |
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.7 2004-10-25 10:22:48 jpm Exp $
|
34 |
// CVS : $Id: instal_preference.inc.php,v 1.8 2004-10-27 11:43:32 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 |
*
|
Line 43... |
Line 43... |
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.7 $ $Date: 2004-10-25 10:22:48 $
|
48 |
*@version $Revision: 1.8 $ $Date: 2004-10-27 11:43:32 $
|
49 |
// +------------------------------------------------------------------------------------------------------+
|
49 |
// +------------------------------------------------------------------------------------------------------+
|
50 |
**/
|
50 |
**/
|
Line 51... |
Line 51... |
51 |
|
51 |
|
52 |
// +------------------------------------------------------------------------------------------------------+
|
52 |
// +------------------------------------------------------------------------------------------------------+
|
Line 87... |
Line 87... |
87 |
'<tt>papyrus</tt>. Pour que cela fonctionne, veuillez vous assurez que votre serveur a les droits d\'accès '.
|
87 |
'<tt>papyrus</tt>. Pour que cela fonctionne, veuillez vous assurez que votre serveur a les droits d\'accès '.
|
88 |
'en écriture pour ce fichier. Si pour une raison quelconque vous ne pouvez pas faire ça vous '.
|
88 |
'en écriture pour ce fichier. Si pour une raison quelconque vous ne pouvez pas faire ça vous '.
|
89 |
'devrez modifier ce fichier manuellement (ce programme d\'installation vous dira comment).</p>'."\n";
|
89 |
'devrez modifier ce fichier manuellement (ce programme d\'installation vous dira comment).</p>'."\n";
|
Line 90... |
Line 90... |
90 |
|
90 |
|
91 |
// Nous vérifions si nous sommes en phase de test du formulaire de config des préférences
|
91 |
// Nous vérifions si nous sommes en phase de test du formulaire de config des préférences
|
92 |
if ($_GET['installation'] == 'verif_pref') {
|
92 |
if ($_GET['installation'] == 'verif_pref' ) {
|
93 |
$sortie_verif = '';
|
93 |
$sortie_verif = '';
|
- |
|
94 |
$sortie_verif .= testerPresenceExtension();
|
- |
|
95 |
// En mise à jour, nous n'affichons pas les champs pour saisir un administrateur
|
94 |
$sortie_verif .= testerPresenceExtension();
|
96 |
if (!defined(INSTAL_VERSION_NOUVELLE_NOM)) {
|
95 |
// Nous vérifions que l'utilisateur à bien saisie les infos dans les champs du formulaire
|
97 |
// Nous vérifions que l'utilisateur à bien saisie les infos dans les champs du formulaire
|
96 |
if(empty($_POST['pref']['ADMIN_PRENOM'])) {
|
98 |
if(empty($_POST['pref']['ADMIN_PRENOM'])) {
|
97 |
$sortie_verif .= '<p class="erreur">Le champ "Prénom" ne doit pas être vide!</p>'."\n";
|
99 |
$sortie_verif .= '<p class="erreur">Le champ "Prénom" ne doit pas être vide!</p>'."\n";
|
98 |
}
|
100 |
}
|
99 |
if(empty($_POST['pref']['ADMIN_NOM'])) {
|
101 |
if(empty($_POST['pref']['ADMIN_NOM'])) {
|
100 |
$sortie_verif .= '<p class="erreur">Le champ "Nom" ne doit pas être vide!</p>'."\n";
|
102 |
$sortie_verif .= '<p class="erreur">Le champ "Nom" ne doit pas être vide!</p>'."\n";
|
101 |
}
|
103 |
}
|
102 |
if(empty($_POST['pref']['ADMIN_LOGIN'])) {
|
104 |
if(empty($_POST['pref']['ADMIN_LOGIN'])) {
|
103 |
$sortie_verif .= '<p class="erreur">Le champ "Login" ne doit pas être vide!</p>'."\n";
|
105 |
$sortie_verif .= '<p class="erreur">Le champ "Login" ne doit pas être vide!</p>'."\n";
|
104 |
}
|
106 |
}
|
105 |
if(empty($_POST['pref']['ADMIN_MAIL'])) {
|
107 |
if(empty($_POST['pref']['ADMIN_MAIL'])) {
|
106 |
$sortie_verif .= '<p class="erreur">Le champ "Courriel" ne doit pas être vide!</p>'."\n";
|
108 |
$sortie_verif .= '<p class="erreur">Le champ "Courriel" ne doit pas être vide!</p>'."\n";
|
107 |
}
|
109 |
}
|
108 |
if(empty($_POST['pref']['ADMIN_MDP_01'])) {
|
110 |
if(empty($_POST['pref']['ADMIN_MDP_01'])) {
|
109 |
$sortie_verif .= '<p class="erreur">Le champ "Mot de passe" ne doit pas être vide!</p>'."\n";
|
111 |
$sortie_verif .= '<p class="erreur">Le champ "Mot de passe" ne doit pas être vide!</p>'."\n";
|
110 |
}
|
112 |
}
|
111 |
if($_POST['pref']['ADMIN_MDP_01'] != $_POST['pref']['ADMIN_MDP_02']) {
|
113 |
if($_POST['pref']['ADMIN_MDP_01'] != $_POST['pref']['ADMIN_MDP_02']) {
|
- |
|
114 |
$sortie_verif .= '<p class="erreur">Le deux mots de passes saisis pour le compte administrateur sont différents!</p>'."\n";
|
112 |
$sortie_verif .= '<p class="erreur">Le deux mots de passes saisis pour le compte administrateur sont différents!</p>'."\n";
|
115 |
}
|
113 |
}
|
116 |
}
|
Line 114... |
Line 117... |
114 |
}
|
117 |
}
|
115 |
|
118 |
|
Line 150... |
Line 153... |
150 |
$disabled = ' disabled="disabled" ';
|
153 |
$disabled = ' disabled="disabled" ';
|
151 |
}
|
154 |
}
|
152 |
$sortie_form = '';
|
155 |
$sortie_form = '';
|
153 |
$sortie_form .= ' <form action="'.donnerUrlCourante().'?installation=verif_pref" method="post">';
|
156 |
$sortie_form .= ' <form action="'.donnerUrlCourante().'?installation=verif_pref" method="post">';
|
154 |
$sortie_form .= ' <ul>'."\n";
|
157 |
$sortie_form .= ' <ul>'."\n";
|
- |
|
158 |
// En mise à jour, nous n'affichons pas les champs pour saisir un administrateur
|
- |
|
159 |
if (!defined(INSTAL_VERSION_NOUVELLE_NOM)) {
|
155 |
$sortie_form .= '<li><h2>Configuration d\'un administrateur de Papyrus</h2></li>'."\n";
|
160 |
$sortie_form .= '<li><h2>Configuration d\'un administrateur de Papyrus</h2></li>'."\n";
|
156 |
$sortie_form .= '<li>Tous les champs ci-dessous sont obligatoires.</li>'."\n";
|
161 |
$sortie_form .= '<li>Tous les champs ci-dessous sont obligatoires.</li>'."\n";
|
157 |
$sortie_form .= '<li>'."\n".
|
162 |
$sortie_form .= '<li>'."\n".
|
158 |
'<label for="admin_prenom">Prénom :</label>'.
|
163 |
'<label for="admin_prenom">Prénom :</label>'.
|
159 |
'<input id="admin_prenom"'.$disabled.'type="text" size="30" name="pref[ADMIN_PRENOM]" value="'.$pref['ADMIN_PRENOM'].'" />'.
|
164 |
'<input id="admin_prenom"'.$disabled.'type="text" size="30" name="pref[ADMIN_PRENOM]" value="'.$pref['ADMIN_PRENOM'].'" />'.
|
160 |
'</li>'."\n";
|
165 |
'</li>'."\n";
|
161 |
$sortie_form .= '<li>'."\n".
|
166 |
$sortie_form .= '<li>'."\n".
|
162 |
'<label for="admin_nom">Nom :</label>'.
|
167 |
'<label for="admin_nom">Nom :</label>'.
|
163 |
'<input id="admin_nom"'.$disabled.'type="text" size="30" name="pref[ADMIN_NOM]" value="'.$pref['ADMIN_NOM'].'" />'.
|
168 |
'<input id="admin_nom"'.$disabled.'type="text" size="30" name="pref[ADMIN_NOM]" value="'.$pref['ADMIN_NOM'].'" />'.
|
164 |
'</li>'."\n";
|
169 |
'</li>'."\n";
|
165 |
$sortie_form .= '<li>'."\n".
|
170 |
$sortie_form .= '<li>'."\n".
|
166 |
'<label for="admin_login">Login :</label>'.
|
171 |
'<label for="admin_login">Login :</label>'.
|
167 |
'<input id="admin_login"'.$disabled.'type="text" size="30" name="pref[ADMIN_LOGIN]" value="'.$pref['ADMIN_LOGIN'].'" />'.
|
172 |
'<input id="admin_login"'.$disabled.'type="text" size="30" name="pref[ADMIN_LOGIN]" value="'.$pref['ADMIN_LOGIN'].'" />'.
|
168 |
'</li>'."\n";
|
173 |
'</li>'."\n";
|
169 |
$sortie_form .= '<li>'."\n".
|
174 |
$sortie_form .= '<li>'."\n".
|
170 |
'<label for="admin_mail">Courriel :</label>'.
|
175 |
'<label for="admin_mail">Courriel :</label>'.
|
171 |
'<input id="admin_mail"'.$disabled.'type="text" size="30" name="pref[ADMIN_MAIL]" value="'.$pref['ADMIN_MAIL'].'" />'.
|
176 |
'<input id="admin_mail"'.$disabled.'type="text" size="30" name="pref[ADMIN_MAIL]" value="'.$pref['ADMIN_MAIL'].'" />'.
|
172 |
'</li>'."\n";
|
177 |
'</li>'."\n";
|
173 |
$sortie_form .= '<li>'."\n".
|
178 |
$sortie_form .= '<li>'."\n".
|
174 |
'<label for="admin_mdp_01">Mot de passe :</label>'.
|
179 |
'<label for="admin_mdp_01">Mot de passe :</label>'.
|
175 |
'<input id="admin_mdp_01"'.$disabled.'type="password" size="10" name="pref[ADMIN_MDP_01]" value="'.$pref['ADMIN_MDP_01'].'" />'.
|
180 |
'<input id="admin_mdp_01"'.$disabled.'type="password" size="10" name="pref[ADMIN_MDP_01]" value="'.$pref['ADMIN_MDP_01'].'" />'.
|
176 |
'</li>'."\n";
|
181 |
'</li>'."\n";
|
177 |
$sortie_form .= '<li>'."\n".
|
182 |
$sortie_form .= '<li>'."\n".
|
178 |
'<label for="admin_mdp_02">Taper à nouveau votre mot de passe :</label>'.
|
183 |
'<label for="admin_mdp_02">Taper à nouveau votre mot de passe :</label>'.
|
179 |
'<input id="admin_mdp_02"'.$disabled.'type="password" size="10" name="pref[ADMIN_MDP_02]" value="'.$pref['ADMIN_MDP_02'].'" />'.
|
184 |
'<input id="admin_mdp_02"'.$disabled.'type="password" size="10" name="pref[ADMIN_MDP_02]" value="'.$pref['ADMIN_MDP_02'].'" />'.
|
180 |
'</li>'."\n";
|
185 |
'</li>'."\n";
|
181 |
$sortie_form .= '<li>'."\n".
|
186 |
$sortie_form .= '<li>'."\n".
|
182 |
'<label for="admin_i18n">Langue :</label>'.
|
187 |
'<label for="admin_i18n">Langue :</label>'.
|
183 |
'<select id="admin_i18n"'.$disabled.'name="pref[ADMIN_I18N]">'.
|
188 |
'<select id="admin_i18n"'.$disabled.'name="pref[ADMIN_I18N]">'.
|
184 |
'<option value="fr-FR" selected="selected">français</option>'.
|
189 |
'<option value="fr-FR" selected="selected">français</option>'.
|
185 |
'</select>'.
|
190 |
'</select>'.
|
186 |
'</li>'."\n";
|
191 |
'</li>'."\n";
|
- |
|
192 |
}
|
187 |
$sortie_form .= '<li><h2>Configuration de l\'URL</h2></li>'."\n";
|
193 |
$sortie_form .= '<li><h2>Configuration de l\'URL</h2></li>'."\n";
|
188 |
$sortie_form .= '<li>L\'URL courante dans la barre d\'adresse de votre navigateur devrait correspondre à la valeur '.
|
194 |
$sortie_form .= '<li>L\'URL courante dans la barre d\'adresse de votre navigateur devrait correspondre à la valeur '.
|
189 |
'présente dans le champ ci-dessous. Si ce n\'est pas le cas, veuillez corriger la valeur ci-dessous.'."\n";
|
195 |
'présente dans le champ ci-dessous. Si ce n\'est pas le cas, veuillez corriger la valeur ci-dessous.'."\n";
|
190 |
$sortie_form .= '<li>'."\n".
|
196 |
$sortie_form .= '<li>'."\n".
|
191 |
'<label for="url_courante">URL courante :</label>'.
|
197 |
'<label for="url_courante">URL courante :</label>'.
|
Line 233... |
Line 239... |
233 |
|
239 |
|
234 |
|
240 |
|
235 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
241 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
- |
|
242 |
*
|
- |
|
243 |
* $Log: not supported by cvs2svn $
|
- |
|
244 |
* Revision 1.7 2004/10/25 10:22:48 jpm
|
236 |
*
|
245 |
* Correction de quelques bogues, ajouts d'explications pour l'utilisateur et modification des styles CSS.
|
237 |
* $Log: not supported by cvs2svn $
|
246 |
*
|
238 |
* Revision 1.6 2004/10/22 17:23:04 jpm
|
247 |
* Revision 1.6 2004/10/22 17:23:04 jpm
|
239 |
* Simplification del'installation de Papyrus.
|
248 |
* Simplification del'installation de Papyrus.
|
240 |
*
|
249 |
*
|