Subversion Repositories Applications.gtt

Rev

Go to most recent revision | Blame | Last modification | View Log | RSS feed

<?php

// +----------------------------------------------------------------------------+
// | $RCSfile: BOG_debogage.inc.php,v $
// +----------------------------------------------------------------------------+
// | Copyright (c) 2003 Tela Botanica                                           |
// +----------------------------------------------------------------------------+
// +----------------------------------------------------------------------------+
//
// IDENTITE : $Id: BOG_debogage.inc.php,v 1.1 2005/02/22 12:07:13 jpm Exp $
// FICHIER  : $RCSfile: BOG_debogage.inc.php,v $
// AUTEUR   : $Author: jpm $
// VERSION  : $Revision: 1.1 $
// DATE     : $Date: 2005/02/22 12:07:13 $
//
// +----------------------------------------------------------------------------+

/**
* $RCSfile: BOG_debogage.inc.php,v $ - Fichier contenant des fonctions de d?bogage.
*
*Ce fichier contient toutes les fonctions de d?bogage.
*
*@package bibliotheque
//Auteur original :
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
//Autres auteurs :
*@author        
*@copyright     Copyright (C) 2003 Tela-Botanica
*@version       $Date: 2005/02/22 12:07:13 $
*/
// +----------------------------------------------------------------------------+

//Fonction pour le d?bogage
function BOG_afficherErreurSql ($nom_fichier_courant, $numero_ligne_courante, $message_erreur, $requete = '', $autre = '') 
{
    $retour_erreur = "\n";
    $retour_erreur .= '<H3 style="text-align:  center; color:  red; font-weight:  600;" > ERREUR SQL </H3><br />'."\n";
    
    $retour_erreur .= '<span style="color:  red; font-weight:  600" > Fichier : </span> ';
    $retour_erreur .= '<span style="color:  black; font-weight:  normal;" > '.$nom_fichier_courant.'</span><br />'."\n";
    
    $retour_erreur .= '<span style="color:  red; font-weight:  600" > Ligne n? : </span> ';
    $retour_erreur .= '<span style="color:  black; font-weight:  normal;" > '.$numero_ligne_courante.'</span><br />'."\n";
    
    $retour_erreur .= '<span style="color:  red; font-weight:  600" > Message erreur : </span> ';
    $retour_erreur .= '<span style="color:  black; font-weight:  normal;" > '.$message_erreur.'</span><br />'."\n";
    
    if ($requete != '') {
        $retour_erreur .= '<span style="color:  red; font-weight:  600" > Requete : </span> ';
        $retour_erreur .= '<span style="color:  black; font-weight:  normal;" > '.$requete.' </span><br />'."\n";
    }
    
    if ($autre != '') {
        $retour_erreur .= '<span style="color:  red; font-weight:  600" > Autres infos : </span> ';
        $retour_erreur .= '<span style="color:  black; font-weight:  normal;" > '.$autre.' </span><br />'."\n";
    }
    return $retour_erreur;
}
?>