Browse code

Logging konfigurierbar

git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@734 87cf0b9e-d624-0410-a070-f6ee81989793

bernd authored on30/10/2007 13:47:47
Showing2 changed files
... ...
@@ -14,6 +14,7 @@ $config['use_cracklib'] = true;
14 14
 $config['cracklib_dict'] = 'inc/cracklib_dict';
15 15
 
16 16
 $config['enable_debug'] = true;
17
+$config['logging'] = true;
17 18
 
18 19
 
19 20
 $config['mime_type'] = 'application/xhtml+xml';
... ...
@@ -30,6 +30,10 @@ function maybe_null($value)
30 30
 
31 31
 function logger($scriptname, $scope, $message)
32 32
 {
33
+  global $config;
34
+  if ($config['logging'] == false)
35
+    return;
36
+
33 37
   $user = 'NULL';
34 38
   if ($_SESSION['role'] & ROLE_SYSTEMUSER)
35 39
     $user = "'{$_SESSION['userinfo']['username']}'";