Commit 06b7fa91 authored by jwarnier's avatar jwarnier
Browse files

- fix indentation

- replace double-quotes with single-quotes whenever appropriate
parent 5f027cd0
......@@ -68,14 +68,15 @@ class app {
}
function uses($classes) {
global $conf;
$cl = explode(',',$classes);
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')) {
include_once($conf['classpath'] . '/'.$classname.'.inc.php');
if(is_file($conf['classpath'].'/'.$classname.'.inc.php') && !is_link($conf['classpath'].'/'.$classname.'.inc.php')) {
include_once($conf['classpath'].'/'.$classname.'.inc.php');
$this->$classname = new $classname;
}
}
......@@ -86,13 +87,14 @@ class app {
function load($classes) {
global $conf;
$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')) {
include_once($conf['classpath'] . '/'.$classname.'.inc.php');
if(is_file($conf['classpath'].'/'.$classname.'.inc.php') && !is_link($conf['classpath'].'/'.$classname.'.inc.php')) {
include_once($conf['classpath'].'/'.$classname.'.inc.php');
} else {
die('Unable to load: '.$conf['classpath'] . '/'.$classname.'.inc.php');
die('Unable to load: '.$conf['classpath'].'/'.$classname.'.inc.php');
}
}
}
......@@ -149,8 +151,6 @@ class app {
$sql = "INSERT INTO sys_log (server_id,datalog_id,loglevel,tstamp,message) VALUES ('$server_id',0,'$loglevel','$tstamp','$message')";
$this->dbmaster->query($sql);
}
}
//} else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment