Big work : a new module is added and the document is really improved
it is done with doxygen
This commit is contained in:
parent
ad87cf324f
commit
9703e28ac1
499 changed files with 48688 additions and 25513 deletions
|
|
@ -22,21 +22,20 @@
|
|||
// Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
|
||||
//include_once ("postgres.php");
|
||||
include_once("constant.php");
|
||||
/*! \file
|
||||
* \brief Debug procedure
|
||||
*/
|
||||
/*!\brief print debug
|
||||
*\param $file file name
|
||||
*\param what line
|
||||
*\param debugging msg
|
||||
*/
|
||||
|
||||
function echo_debug ($file,$line="",$msg="") {
|
||||
if ( DEBUG=='true' ) {
|
||||
$password=phpcompta_password;
|
||||
$l_Db="dbname=log user='phpcompta' password='$password' host=127.0.0.1";
|
||||
$cn=pg_connect($l_Db);
|
||||
$file=FormatString($file);
|
||||
$line=FormatString($line);
|
||||
|
||||
$msg='domaine :'.domaine.' '.FormatString(var_export($msg,true));
|
||||
|
||||
$sql= "insert into log (lg_file,lg_line,lg_msg) ".
|
||||
"values ('$file','$line','$msg');";
|
||||
pg_set_client_encoding($cn,'latin1');
|
||||
pg_exec($cn,$sql);
|
||||
$f=fopen ("/tmp/phpcompta.log","a+");
|
||||
fwrite($f,"$file $line $msg\n");
|
||||
fclose ($f);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue