Blame | Last modification | View Log | RSS feed
<?php/*vim: set expandtab tabstop=4 shiftwidth=4: */// +------------------------------------------------------------------------------------------------------+// | PHP version 4.1 |// +------------------------------------------------------------------------------------------------------+// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org) |// +------------------------------------------------------------------------------------------------------+// | This library is free software; you can redistribute it and/or |// | modify it under the terms of the GNU Lesser General Public |// | License as published by the Free Software Foundation; either |// | version 2.1 of the License, or (at your option) any later version. |// | |// | This library is distributed in the hope that it will be useful, |// | but WITHOUT ANY WARRANTY; without even the implied warranty of |// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |// | Lesser General Public License for more details. |// | |// | You should have received a copy of the GNU Lesser General Public |// | License along with this library; if not, write to the Free Software |// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |// +------------------------------------------------------------------------------------------------------+// CVS : $Id: instal_verification.inc.php,v 1.1 2004-10-19 15:59:18 jpm Exp $/*** Application Installateur de Papyrus.** Ce fichier vérifie que les paramêtre saisis par l'utiliateur à la première étape sont correct...**@package Installateur//Auteur original :*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>//Autres auteurs :*@author Aucun*@copyright Tela-Botanica 2000-2004*@version $Revision: 1.1 $ $Date: 2004-10-19 15:59:18 $// +------------------------------------------------------------------------------------------------------+**/// +------------------------------------------------------------------------------------------------------+// | ENTÊTE du PROGRAMME |// +------------------------------------------------------------------------------------------------------+// Initialisation des variables$message_erreur = '';// +------------------------------------------------------------------------------------------------------+// | CORPS du PROGRAMME |// +------------------------------------------------------------------------------------------------------+// Nous vérifions que l'utilisateur à bien saisie les infos dans les champs du formulaireif(empty($_POST['bdd']['ADMIN_PRENOM'])) {$message_erreur .= '<p class="erreur">Le champ "Prénom" ne doit pas être vide!</p>'."\n";}if(empty($_POST['bdd']['ADMIN_NOM'])) {$message_erreur .= '<p class="erreur">Le champ "Nom" ne doit pas être vide!</p>'."\n";}if(empty($_POST['bdd']['ADMIN_LOGIN'])) {$message_erreur .= '<p class="erreur">Le champ "Login" ne doit pas être vide!</p>'."\n";}if(empty($_POST['bdd']['ADMIN_MAIL'])) {$message_erreur .= '<p class="erreur">Le champ "Courriel" ne doit pas être vide!</p>'."\n";}if(empty($_POST['bdd']['ADMIN_MDP_01'])) {$message_erreur .= '<p class="erreur">Le champ "Mot de passe" ne doit pas être vide!</p>'."\n";}if($_POST['bdd']['ADMIN_MDP_01'] != $_POST['bdd']['ADMIN_MDP_02']) {$message_erreur .= '<p class="erreur">Le deux mots de passes saisis pour le compte administrateur sont différents!</p>'."\n";}// +------------------------------------------------------------------------------------------------------+// | PIED du PROGRAMME |// +------------------------------------------------------------------------------------------------------+// Nous réaffichons le formulaire s'il existe des erreurs ou nous passons à la suiteif (!empty($message_erreur)) {include_once GEN_CHEMIN_APPLICATION.'installateur/instal_defaut.inc.php';} else {include_once GEN_CHEMIN_APPLICATION.'installateur/instal_base_de_donnees.inc.php';}/* +--Fin du code ----------------------------------------------------------------------------------------+** $Log: not supported by cvs2svn $** +-- Fin du code ----------------------------------------------------------------------------------------+*/?>