4 |
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: pap_verification.fonct.php,v 1.1 2004-06-15 15:14:52 jpm Exp $
|
|
|
23 |
/**
|
|
|
24 |
* Bibliothèque de fonctions de vérification.
|
|
|
25 |
*
|
|
|
26 |
* Liste de fonctions utilisé dans le cadre de la vérification de Papyrus.
|
|
|
27 |
*
|
|
|
28 |
*@package Papyrus
|
|
|
29 |
*@subpackage Fonctions
|
|
|
30 |
//Auteur original :
|
|
|
31 |
*@author Laurent COUDOUNEAU <lc@gsite.org>
|
|
|
32 |
//Autres auteurs :
|
|
|
33 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
|
|
34 |
*@copyright Tela-Botanica 2000-2004
|
|
|
35 |
*@version $Revision: 1.1 $ $Date: 2004-06-15 15:14:52 $
|
|
|
36 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
37 |
*/
|
|
|
38 |
|
|
|
39 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
40 |
// | LISTE de FONCTIONS |
|
|
|
41 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
42 |
|
|
|
43 |
/**Fonction GEN_envoyerMessageErreur() - Envoie un message d'erreur et arrête le programme.
|
|
|
44 |
*
|
|
|
45 |
* Cette fonction renvoie un message d'erreur, dont les caractères spéciaux sont
|
|
|
46 |
* transformés en entités HTML, et termine l'execution du programme.
|
|
|
47 |
*
|
|
|
48 |
* @param string un message d'erreur.
|
|
|
49 |
* @return void arrête du programme avec envoie du message via la fonction exit().
|
|
|
50 |
*/
|
|
|
51 |
function GEN_envoyerMessageErreur($message)
|
|
|
52 |
{
|
|
|
53 |
exit('<strong>'.htmlentities($message).'</strong>');
|
|
|
54 |
}
|
|
|
55 |
|
|
|
56 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
|
|
57 |
*
|
|
|
58 |
* $Log: not supported by cvs2svn $
|
|
|
59 |
* Revision 1.1 2004/04/08 13:23:55 jpm
|
|
|
60 |
* Ajout de la bibliothèque de fonction à utiliser dans le cadre de la gestion des erreurs.
|
|
|
61 |
*
|
|
|
62 |
*
|
|
|
63 |
* +-- Fin du code ----------------------------------------------------------------------------------------+
|
|
|
64 |
*/
|
|
|
65 |
?>
|