58ec5fe565cec71e20192088a1b0592fbc4b6099
6 use mdref\ExceptionHandler
;
11 define("ROOT", dirname(__DIR__
));
12 define("REFS", getenv("REFPATH") ?
: implode(PATH_SEPARATOR
, glob(ROOT
."/refs/*")));
14 ini_set("open_basedir", ROOT
.PATH_SEPARATOR
.REFS
);
16 spl_autoload_register(function($c) {
17 if (!strncmp($c, "mdref\\", 6)) {
18 return require ROOT
. "/" . strtr($c, "\\", "/") . ".php";
24 $reference = new Reference(explode(PATH_SEPARATOR
, REFS
));
25 $action = new Action($reference, new Request
, new Response
, new BaseUrl
);