redray
2008-12-01 436ed820192d05299a639b45ade96f3916bb51f2
server/lib/app.inc.php
@@ -1,6 +1,7 @@
<?php
/*
Copyright (c) 2006, Till Brehm, projektfarm Gmbh
Copyright (c) 2007, Till Brehm, projektfarm Gmbh
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
@@ -87,7 +88,7 @@
                if($priority >= $conf["log_priority"]) {
                        //if (is_writable($conf["log_file"])) {
                            if (!$fp = fopen ($conf["log_file"], "a")) {
                                die("Unable to open Logfile.");
                                die("Unable to open logfile.");
                            }
                     switch ($priority) {
                        case 0:
@@ -104,7 +105,7 @@
                            if (!fwrite($fp, date("d.m.Y-H:i")." - ".$priority_txt." - ". $msg."\r\n")) {
                                die("Unable to write to logfile.");
                            }
                     echo date("d.m.Y-H:i")." - ".$priority_txt." - ". $msg."<br>";
                     echo date("d.m.Y-H:i")." - ".$priority_txt." - ". $msg."\n";
                            fclose($fp);
                        //} else {