Logging konfigurierbar
bernd

bernd commited on 2007-10-30 13:47:47
Zeige 2 geänderte Dateien mit 5 Einfügungen und 0 Löschungen.


git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@734 87cf0b9e-d624-0410-a070-f6ee81989793
... ...
@@ -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']}'";
36 40