change the adm. menu
This commit is contained in:
parent
b9fe34f0d8
commit
fbe06a8003
7 changed files with 67 additions and 91 deletions
|
|
@ -24,16 +24,18 @@
|
|||
include_once("constant.php");
|
||||
|
||||
function echo_debug ($file,$line="",$msg="") {
|
||||
$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=FormatString($msg);
|
||||
|
||||
$sql= "insert into log (lg_file,lg_line,lg_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=FormatString($msg);
|
||||
|
||||
$sql= "insert into log (lg_file,lg_line,lg_msg) ".
|
||||
"values ('$file','$line','$msg');";
|
||||
pg_exec($cn,$sql);
|
||||
pg_exec($cn,$sql);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue