Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
c8d7ed9a
Commit
c8d7ed9a
authored
Jun 18, 2006
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Amélioration des logs
parent
ced19de5
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
htdocs/html.form.class.php
+4
-2
4 additions, 2 deletions
htdocs/html.form.class.php
htdocs/lib/functions.inc.php
+15
-9
15 additions, 9 deletions
htdocs/lib/functions.inc.php
htdocs/translate.class.php
+1
-1
1 addition, 1 deletion
htdocs/translate.class.php
with
20 additions
and
12 deletions
htdocs/html.form.class.php
+
4
−
2
View file @
c8d7ed9a
...
@@ -962,7 +962,8 @@ class Form
...
@@ -962,7 +962,8 @@ class Form
if
(
sizeof
(
$this
->
cache_conditions_paiements_code
))
return
0
;
// Cache déja chargé
if
(
sizeof
(
$this
->
cache_conditions_paiements_code
))
return
0
;
// Cache déja chargé
dolibarr_syslog
(
'html.form.class.php::load_cache_conditions_paiements'
);
//dolibarr_syslog('html.form.class.php::load_cache_conditions_paiements',LOG_DEBUG);
$sql
=
"SELECT rowid, code, libelle"
;
$sql
=
"SELECT rowid, code, libelle"
;
$sql
.
=
" FROM "
.
MAIN_DB_PREFIX
.
"cond_reglement"
;
$sql
.
=
" FROM "
.
MAIN_DB_PREFIX
.
"cond_reglement"
;
$sql
.
=
" WHERE active=1"
;
$sql
.
=
" WHERE active=1"
;
...
@@ -1000,7 +1001,8 @@ class Form
...
@@ -1000,7 +1001,8 @@ class Form
if
(
sizeof
(
$this
->
cache_types_paiements_code
))
return
0
;
// Cache déja chargé
if
(
sizeof
(
$this
->
cache_types_paiements_code
))
return
0
;
// Cache déja chargé
dolibarr_syslog
(
'html.form.class.php::load_cache_types_paiements'
);
//dolibarr_syslog('html.form.class.php::load_cache_types_paiements',LOG_DEBUG);
$sql
=
"SELECT id, code, libelle, type"
;
$sql
=
"SELECT id, code, libelle, type"
;
$sql
.
=
" FROM "
.
MAIN_DB_PREFIX
.
"c_paiement"
;
$sql
.
=
" FROM "
.
MAIN_DB_PREFIX
.
"c_paiement"
;
$sql
.
=
" WHERE active > 0"
;
$sql
.
=
" WHERE active > 0"
;
...
...
This diff is collapsed.
Click to expand it.
htdocs/lib/functions.inc.php
+
15
−
9
View file @
c8d7ed9a
...
@@ -161,13 +161,19 @@ function sanitize_string($str)
...
@@ -161,13 +161,19 @@ function sanitize_string($str)
fautes de protection mmoire. Pour rsoudre, utiliser le loggage fichier,
fautes de protection mmoire. Pour rsoudre, utiliser le loggage fichier,
au lieu du loggage syslog (configuration du module).
au lieu du loggage syslog (configuration du module).
Si SYSLOG_FILE_NO_ERROR dfini, on ne gre pas erreur ecriture log
Si SYSLOG_FILE_NO_ERROR dfini, on ne gre pas erreur ecriture log
\remarks On windows LOG_ERROR=4, LOG_WARNING=5, LOG_NOTICE=LOG_DEBUG=6
*/
*/
function
dolibarr_syslog
(
$message
,
$level
=
LOG_
ERR
)
function
dolibarr_syslog
(
$message
,
$level
=
LOG_
INFO
)
{
{
global
$conf
,
$user
,
$langs
;
global
$conf
,
$user
,
$langs
;
if
(
$conf
->
syslog
->
enabled
)
if
(
$conf
->
syslog
->
enabled
)
{
{
// Change this to LOg_DEBUG to see all messages on *nix
$level_maximum
=
LOG_INFO
;
if
(
$level
>
$level_maximum
)
return
;
// Ajout user a la log
// Ajout user a la log
$login
=
'???'
;
$login
=
'???'
;
if
(
is_object
(
$user
)
&&
$user
->
id
)
$login
=
$user
->
login
;
if
(
is_object
(
$user
)
&&
$user
->
id
)
$login
=
$user
->
login
;
...
...
This diff is collapsed.
Click to expand it.
htdocs/translate.class.php
+
1
−
1
View file @
c8d7ed9a
...
@@ -120,7 +120,7 @@ class Translate {
...
@@ -120,7 +120,7 @@ class Translate {
*/
*/
function
setPhpLang
()
function
setPhpLang
()
{
{
dolibarr_syslog
(
"Translate::set_php_lang: "
.
$this
->
defaultlang
);
//
dolibarr_syslog("Translate::set_php_lang: ".$this->defaultlang
,LOG_DEBUG
);
$code_lang_tiret
=
ereg_replace
(
'_'
,
'-'
,
$this
->
defaultlang
);
$code_lang_tiret
=
ereg_replace
(
'_'
,
'-'
,
$this
->
defaultlang
);
setlocale
(
LC_ALL
,
$this
->
defaultlang
);
// Compenser pb de locale avec windows
setlocale
(
LC_ALL
,
$this
->
defaultlang
);
// Compenser pb de locale avec windows
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment