Subversion Repositories Applications.gtt

Rev

Rev 2 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 jpm 1
<?php
2
 
3
// +----------------------------------------------------------------------------+
4
// | $RCSfile: BOG_debogage.inc.php,v $
5
// +----------------------------------------------------------------------------+
6
// | Copyright (c) 2003 Tela Botanica                                           |
7
// +----------------------------------------------------------------------------+
8
// +----------------------------------------------------------------------------+
9
//
10
// IDENTITE : $Id: BOG_debogage.inc.php,v 1.1 2005/02/22 12:07:13 jpm Exp $
11
// FICHIER  : $RCSfile: BOG_debogage.inc.php,v $
12
// AUTEUR   : $Author: jpm $
13
// VERSION  : $Revision: 1.1 $
14
// DATE     : $Date: 2005/02/22 12:07:13 $
15
//
16
// +----------------------------------------------------------------------------+
17
 
18
/**
19
* $RCSfile: BOG_debogage.inc.php,v $ - Fichier contenant des fonctions de d?bogage.
20
*
21
*Ce fichier contient toutes les fonctions de d?bogage.
22
*
23
*@package bibliotheque
24
//Auteur original :
25
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
26
//Autres auteurs :
27
*@author
28
*@copyright     Copyright (C) 2003 Tela-Botanica
29
*@version       $Date: 2005/02/22 12:07:13 $
30
*/
31
// +----------------------------------------------------------------------------+
32
 
33
//Fonction pour le d?bogage
34
function BOG_afficherErreurSql ($nom_fichier_courant, $numero_ligne_courante, $message_erreur, $requete = '', $autre = '')
35
{
36
    $retour_erreur = "\n";
37
    $retour_erreur .= '<H3 style="text-align:  center; color:  red; font-weight:  600;" > ERREUR SQL </H3><br />'."\n";
38
 
39
    $retour_erreur .= '<span style="color:  red; font-weight:  600" > Fichier : </span> ';
40
    $retour_erreur .= '<span style="color:  black; font-weight:  normal;" > '.$nom_fichier_courant.'</span><br />'."\n";
41
 
8 jpm 42
    $retour_erreur .= '<span style="color:  red; font-weight:  600" > Ligne n° : </span> ';
2 jpm 43
    $retour_erreur .= '<span style="color:  black; font-weight:  normal;" > '.$numero_ligne_courante.'</span><br />'."\n";
44
 
45
    $retour_erreur .= '<span style="color:  red; font-weight:  600" > Message erreur : </span> ';
46
    $retour_erreur .= '<span style="color:  black; font-weight:  normal;" > '.$message_erreur.'</span><br />'."\n";
47
 
48
    if ($requete != '') {
49
        $retour_erreur .= '<span style="color:  red; font-weight:  600" > Requete : </span> ';
50
        $retour_erreur .= '<span style="color:  black; font-weight:  normal;" > '.$requete.' </span><br />'."\n";
51
    }
52
 
53
    if ($autre != '') {
54
        $retour_erreur .= '<span style="color:  red; font-weight:  600" > Autres infos : </span> ';
55
        $retour_erreur .= '<span style="color:  black; font-weight:  normal;" > '.$autre.' </span><br />'."\n";
56
    }
57
    return $retour_erreur;
58
}
59
?>