tbrehm
2011-09-07 c719dc0b1dd696e0cd6b51f09ee13c8263375f7c
server/lib/app.inc.php
@@ -75,7 +75,7 @@
      if(is_array($cl)) {
         foreach($cl as $classname) {
            if(!@is_object($this->$classname)) {
               if(is_file($conf['classpath'].'/'.$classname.'.inc.php') && !is_link($conf['classpath'].'/'.$classname.'.inc.php')) {
               if(is_file($conf['classpath'].'/'.$classname.'.inc.php') && (DEVSYSTEM ||  !is_link($conf['classpath'].'/'.$classname.'.inc.php'))) {
                  include_once($conf['classpath'].'/'.$classname.'.inc.php');
                  $this->$classname = new $classname;
               }
@@ -91,7 +91,7 @@
      $cl = explode(',',$classes);
      if(is_array($cl)) {
         foreach($cl as $classname) {
            if(is_file($conf['classpath'].'/'.$classname.'.inc.php') && !is_link($conf['classpath'].'/'.$classname.'.inc.php')) {
            if(is_file($conf['classpath'].'/'.$classname.'.inc.php') && (DEVSYSTEM || !is_link($conf['classpath'].'/'.$classname.'.inc.php'))) {
               include_once($conf['classpath'].'/'.$classname.'.inc.php');
            } else {
               die('Unable to load: '.$conf['classpath'].'/'.$classname.'.inc.php');
@@ -127,10 +127,10 @@
                        break;
                  }
                     
                            if (!fwrite($fp, date('d.m.Y-H:i').' - '.$priority_txt.' - '. $msg."\r\n")) {
                            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."\n";
            echo @date('d.m.Y-H:i').' - '.$priority_txt.' - '. $msg."\n";
            fclose($fp);
               // Log to database