moved lib/classes to htdocs/libse

This commit is contained in:
following
2013-07-20 12:07:55 +02:00
parent e819a3a345
commit b3ec39eba8
29 changed files with 18 additions and 17 deletions

View File

@ -17,14 +17,11 @@ function __autoload($class_name)
if (!preg_match('/^[\w]{1,}$/', $class_name))
return;
$class_name2 = $class_name;
$class_name = str_replace('_', '/', $class_name);
$file = $opt['rootpath'] . '../lib/classes/' . $class_name . '.php';
$file2 = $opt['rootpath'] . 'lib2/' . $class_name2 . '.class.php';
$file3 = $opt['rootpath'] . 'lib2/logic/' . $class_name2 . '.class.php';
if (file_exists($file))
require_once($file);
$file1 = $opt['rootpath'] . 'lib2/' . $class_name . '.class.php';
$file2 = $opt['rootpath'] . 'lib2/logic/' . $class_name . '.class.php';
$file3 = $opt['rootpath'] . 'libse/' . str_replace('_', '/', $class_name) . '.php';
if (file_exists($file1))
require_once($file1);
elseif (file_exists($file2))
require_once($file2);
elseif (file_exists($file3))