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
+6 -6
View File
@@ -3417,7 +3417,7 @@ INSERT INTO `sys_trans_ref` (`trans_id`, `resource_name`, `line`) VALUES ('552',
INSERT INTO `sys_trans_ref` (`trans_id`, `resource_name`, `line`) VALUES ('552', './templates2/ocstyle/mydescription.tpl', '48');
INSERT INTO `sys_trans_ref` (`trans_id`, `resource_name`, `line`) VALUES ('552', './templates2/ocstyle/mydetails.tpl', '90');
INSERT INTO `sys_trans_ref` (`trans_id`, `resource_name`, `line`) VALUES ('552', './templates2/ocstyle/myprofile.tpl', '188');
INSERT INTO `sys_trans_ref` (`trans_id`, `resource_name`, `line`) VALUES ('553', '../lib/classes/ChildWp/EditPresenter.php', '19');
INSERT INTO `sys_trans_ref` (`trans_id`, `resource_name`, `line`) VALUES ('553', './libse/ChildWp/EditPresenter.php', '19');
INSERT INTO `sys_trans_ref` (`trans_id`, `resource_name`, `line`) VALUES ('553', './lang/de/ocstyle/editcache.inc.php', '18');
INSERT INTO `sys_trans_ref` (`trans_id`, `resource_name`, `line`) VALUES ('553', './lang/de/ocstyle/editdesc.inc.php', '29');
INSERT INTO `sys_trans_ref` (`trans_id`, `resource_name`, `line`) VALUES ('553', './lang/de/ocstyle/editlog.inc.php', '18');
@@ -3468,7 +3468,7 @@ INSERT INTO `sys_trans_ref` (`trans_id`, `resource_name`, `line`) VALUES ('576',
INSERT INTO `sys_trans_ref` (`trans_id`, `resource_name`, `line`) VALUES ('576', './templates2/ocstyle/res_logentry_logitem.tpl', '50');
INSERT INTO `sys_trans_ref` (`trans_id`, `resource_name`, `line`) VALUES ('576', './templates2/ocstyle/res_logentry_logitem.tpl', '84');
INSERT INTO `sys_trans_ref` (`trans_id`, `resource_name`, `line`) VALUES ('576', './templates2/ocstyle/viewcache.tpl', '100');
INSERT INTO `sys_trans_ref` (`trans_id`, `resource_name`, `line`) VALUES ('577', '../lib/classes/ChildWp/DeletePresenter.php', '19');
INSERT INTO `sys_trans_ref` (`trans_id`, `resource_name`, `line`) VALUES ('577', './libse/ChildWp/DeletePresenter.php', '19');
INSERT INTO `sys_trans_ref` (`trans_id`, `resource_name`, `line`) VALUES ('577', './lang/de/ocstyle/editcache.inc.php', '19');
INSERT INTO `sys_trans_ref` (`trans_id`, `resource_name`, `line`) VALUES ('577', './lang/de/ocstyle/editcache.inc.php', '37');
INSERT INTO `sys_trans_ref` (`trans_id`, `resource_name`, `line`) VALUES ('577', './lang/de/ocstyle/editcache.inc.php', '42');
@@ -4574,10 +4574,10 @@ INSERT INTO `sys_trans_ref` (`trans_id`, `resource_name`, `line`) VALUES ('1776'
INSERT INTO `sys_trans_ref` (`trans_id`, `resource_name`, `line`) VALUES ('1777', './templates2/ocstyle/childwp.tpl', '24');
INSERT INTO `sys_trans_ref` (`trans_id`, `resource_name`, `line`) VALUES ('1778', './templates2/ocstyle/childwp.tpl', '40');
INSERT INTO `sys_trans_ref` (`trans_id`, `resource_name`, `line`) VALUES ('1779', './templates2/ocstyle/map2.tpl', '2133');
INSERT INTO `sys_trans_ref` (`trans_id`, `resource_name`, `line`) VALUES ('1780', '../lib/classes/ChildWp/AddPresenter.php', '13');
INSERT INTO `sys_trans_ref` (`trans_id`, `resource_name`, `line`) VALUES ('1781', '../lib/classes/ChildWp/AddPresenter.php', '19');
INSERT INTO `sys_trans_ref` (`trans_id`, `resource_name`, `line`) VALUES ('1782', '../lib/classes/ChildWp/DeletePresenter.php', '13');
INSERT INTO `sys_trans_ref` (`trans_id`, `resource_name`, `line`) VALUES ('1783', '../lib/classes/ChildWp/EditPresenter.php', '13');
INSERT INTO `sys_trans_ref` (`trans_id`, `resource_name`, `line`) VALUES ('1780', './libse/ChildWp/AddPresenter.php', '13');
INSERT INTO `sys_trans_ref` (`trans_id`, `resource_name`, `line`) VALUES ('1781', './libse/ChildWp/AddPresenter.php', '19');
INSERT INTO `sys_trans_ref` (`trans_id`, `resource_name`, `line`) VALUES ('1782', './libse/ChildWp/DeletePresenter.php', '13');
INSERT INTO `sys_trans_ref` (`trans_id`, `resource_name`, `line`) VALUES ('1783', './libse/ChildWp/EditPresenter.php', '13');
INSERT INTO `sys_trans_ref` (`trans_id`, `resource_name`, `line`) VALUES ('1788', 'table:coordinates_type;field=name', '0');
INSERT INTO `sys_trans_ref` (`trans_id`, `resource_name`, `line`) VALUES ('1789', 'table:coordinates_type;field=name', '0');
INSERT INTO `sys_trans_ref` (`trans_id`, `resource_name`, `line`) VALUES ('1790', './lang/de/ocstyle/editcache.tpl.php', '299');
+1 -1
View File
@@ -28,7 +28,7 @@ function __autoload($class_name)
$class_name = str_replace('_', '/', $class_name);
$file = $opt['rootpath'] . '../lib/classes/' . $class_name . '.php';
$file = $opt['rootpath'] . 'libse/classes/' . $class_name . '.php';
if (file_exists($file))
require_once($file);
}
+5 -8
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))
+4
View File
@@ -0,0 +1,4 @@
<FilesMatch ".*">
Order deny,allow
Deny from all
</FilesMatch>
+2 -2
View File
@@ -20,8 +20,8 @@
$msDirlist[] = './templates2/mail';
$msDirlist[] = './templates2/ocstyle';
// directory ../lib/classes needs to be added recursive
addClassesDirecotriesToDirlist('../lib/classes');
// directory libse needs to be added recursive
addClassesDirecotriesToDirlist('libse');
require('./lib2/web.inc.php');
require_once('./lib2/translate.class.php');