WIP AddressDB + api

This commit is contained in:
Frank Schubert
2022-08-25 16:59:54 +02:00
parent 4b39d5a158
commit 36b41b4e5a
23 changed files with 1373 additions and 34 deletions
+13 -4
View File
@@ -1,6 +1,7 @@
<?php
spl_autoload_register("mfAutoload", true);
spl_autoload_register("mfBaseApicontroller::loadApiClass");
require_once BASEDIR.'/vendor/autoload.php';
//require_once PEARDIR.'/PEAR2/Autoload.php';
@@ -50,13 +51,21 @@ function mfAutoload($name) {
function mfAutoload_loadLib($name) {
if(preg_match('/^mf.+/',$name)) {
$filename=LIBDIR."/mvcfronk/$name/$name.php";
if(preg_match('/^(.*)Controller$/',$name,$m)) {
if(preg_match('/^(.*)Apicontroller$/',$name,$m)) {
$filename=LIBDIR."/mvcfronk/".$m[1]."/$name.php";
}
if(file_exists($filename)) {
if(file_exists($filename)) {
require_once($filename);
}
} elseif(preg_match('/^([^_]+)_(.+)$/',$name,$m)) {
} else {
if(preg_match('/^(.*)Controller$/',$name,$m)) {
$filename=LIBDIR."/mvcfronk/".$m[1]."/$name.php";
}
if(file_exists($filename)) {
require_once($filename);
}
}
} elseif(preg_match('/^([^_]+)_(.+)$/',$name,$m)) {
$filename=LIBDIR."/".$m[1]."/".$m[2].".php";
} else {
$filename=LIBDIR."/$name/$name.php";