| @@ 43-49 (lines=7) @@ | ||
| 40 | print " ($level) "; |
|
| 41 | print_r($t); |
|
| 42 | $output = ob_get_clean(); |
|
| 43 | if (Config::$PATHS['logdir']) { |
|
| 44 | $f = fopen(Config::$PATHS['logdir'] . "/debug.log", "a"); |
|
| 45 | fwrite($f, $output); |
|
| 46 | fclose($f); |
|
| 47 | } else { |
|
| 48 | print $output; |
|
| 49 | } |
|
| 50 | } |
|
| 51 | } |
|
| 52 | ||
| @@ 239-245 (lines=7) @@ | ||
| 236 | print " ($category) "; |
|
| 237 | print_r(" ".$user.": ".$message."\n"); |
|
| 238 | $output = ob_get_clean(); |
|
| 239 | if (Config::$PATHS['logdir']) { |
|
| 240 | $f = fopen(Config::$PATHS['logdir'] . "/audit-activity.log", "a"); |
|
| 241 | fwrite($f, $output); |
|
| 242 | fclose($f); |
|
| 243 | } else { |
|
| 244 | print $output; |
|
| 245 | } |
|
| 246 | ||
| 247 | return TRUE; |
|
| 248 | default: |
|
| @@ 267-273 (lines=7) @@ | ||
| 264 | printf("%-015s",microtime(TRUE)); |
|
| 265 | print(" ".$logtext."\n"); |
|
| 266 | $output = ob_get_clean(); |
|
| 267 | if (Config::$PATHS['logdir']) { |
|
| 268 | $f = fopen(Config::$PATHS['logdir'] . "/audit-SQL.log", "a"); |
|
| 269 | fwrite($f, $output); |
|
| 270 | fclose($f); |
|
| 271 | } else { |
|
| 272 | print $output; |
|
| 273 | } |
|
| 274 | } |
|
| 275 | ||
| 276 | /** |
|