Subversion Repositories Applications.papyrus

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
76 jpm 1
<?php
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */
3
// +------------------------------------------------------------------------------------------------------+
4
// | PHP version 4.1                                                                                      |
5
// +------------------------------------------------------------------------------------------------------+
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
7
// +------------------------------------------------------------------------------------------------------+
8
// | This library is free software; you can redistribute it and/or                                        |
9
// | modify it under the terms of the GNU Lesser General Public                                           |
10
// | License as published by the Free Software Foundation; either                                         |
11
// | version 2.1 of the License, or (at your option) any later version.                                   |
12
// |                                                                                                      |
13
// | This library is distributed in the hope that it will be useful,                                      |
14
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
15
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
16
// | Lesser General Public License for more details.                                                      |
17
// |                                                                                                      |
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                                  |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
21
// +------------------------------------------------------------------------------------------------------+
22
// CVS : $Id: instal_verification.inc.php,v 1.1 2004-10-19 15:59:18 jpm Exp $
23
/**
24
* Application Installateur de Papyrus.
25
*
26
* Ce fichier vérifie que les paramêtre saisis par l'utiliateur à la première étape sont correct...
27
*
28
*@package Installateur
29
//Auteur original :
30
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
31
//Autres auteurs :
32
*@author        Aucun
33
*@copyright     Tela-Botanica 2000-2004
34
*@version       $Revision: 1.1 $ $Date: 2004-10-19 15:59:18 $
35
// +------------------------------------------------------------------------------------------------------+
36
**/
37
 
38
// +------------------------------------------------------------------------------------------------------+
39
// |                                            ENTÊTE du PROGRAMME                                       |
40
// +------------------------------------------------------------------------------------------------------+
41
// Initialisation des variables
42
$message_erreur = '';
43
 
44
// +------------------------------------------------------------------------------------------------------+
45
// |                                          CORPS du PROGRAMME                                          |
46
// +------------------------------------------------------------------------------------------------------+
47
// Nous vérifions que l'utilisateur à bien saisie les infos dans les champs du formulaire
48
if(empty($_POST['bdd']['ADMIN_PRENOM'])) {
49
    $message_erreur .= '<p class="erreur">Le champ "Prénom" ne doit pas être vide!</p>'."\n";
50
}
51
if(empty($_POST['bdd']['ADMIN_NOM'])) {
52
    $message_erreur .= '<p class="erreur">Le champ "Nom" ne doit pas être vide!</p>'."\n";
53
}
54
if(empty($_POST['bdd']['ADMIN_LOGIN'])) {
55
    $message_erreur .= '<p class="erreur">Le champ "Login" ne doit pas être vide!</p>'."\n";
56
}
57
if(empty($_POST['bdd']['ADMIN_MAIL'])) {
58
    $message_erreur .= '<p class="erreur">Le champ "Courriel" ne doit pas être vide!</p>'."\n";
59
}
60
if(empty($_POST['bdd']['ADMIN_MDP_01'])) {
61
    $message_erreur .= '<p class="erreur">Le champ "Mot de passe" ne doit pas être vide!</p>'."\n";
62
}
63
if($_POST['bdd']['ADMIN_MDP_01'] != $_POST['bdd']['ADMIN_MDP_02']) {
64
    $message_erreur .= '<p class="erreur">Le deux mots de passes saisis pour le compte administrateur sont différents!</p>'."\n";
65
}
66
 
67
// +------------------------------------------------------------------------------------------------------+
68
// |                                            PIED du PROGRAMME                                         |
69
// +------------------------------------------------------------------------------------------------------+
70
// Nous réaffichons le formulaire s'il existe des erreurs ou nous passons à la suite
71
if (!empty($message_erreur)) {
72
    include_once GEN_CHEMIN_APPLICATION.'installateur/instal_defaut.inc.php';
73
} else {
74
    include_once GEN_CHEMIN_APPLICATION.'installateur/instal_base_de_donnees.inc.php';
75
}
76
 
77
/* +--Fin du code ----------------------------------------------------------------------------------------+
78
*
79
* $Log: not supported by cvs2svn $
80
*
81
* +-- Fin du code ----------------------------------------------------------------------------------------+
82
*/
83
?>