From 5f97596d275792a7fdea23f132d83e121b931d35 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Sat, 29 Apr 2006 04:22:27 -0400
Subject: [PATCH] updatded server part
---
server/lib/app.inc.php | 25 ++++++++++++++-----------
1 files changed, 14 insertions(+), 11 deletions(-)
diff --git a/server/lib/app.inc.php b/server/lib/app.inc.php
index 49da384..1394b1e 100644
--- a/server/lib/app.inc.php
+++ b/server/lib/app.inc.php
@@ -41,18 +41,19 @@
}
function uses($classes) {
- global $conf;
+ global $conf;
- $cl = explode(',',$classes);
- if(is_array($cl)) {
- foreach($cl as $classname) {
- if(!is_object($this->$classname)) {
- include_once($conf['classpath'] . "/".$classname.".inc.php");
- $this->$classname = new $classname;
- }
- }
- }
-
+ $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");
+ $this->$classname = new $classname;
+ }
+ }
+ }
+ }
}
function load($files) {
@@ -61,7 +62,9 @@
$fl = explode(',',$files);
if(is_array($fl)) {
foreach($fl as $file) {
+ if(is_file($conf['classpath'] . "/".$classname.".inc.php") && !is_link($conf['classpath'] . "/".$classname.".inc.php")) {
include_once($conf['classpath'] . "/".$file.".inc.php");
+ }
}
}
--
Gitblit v1.9.1