X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=index.php;h=5c4b909b5057fe201b23b09978d73c0a785222dd;hb=a5291ff36193869a65db4cbf30acf1febe29b15d;hp=1e09d32ae1a2993beaad7aec0547a3829fe1e366;hpb=62de37d8c446969f97b08544af97f557b7efac9a;p=mdref%2Fmdref diff --git a/index.php b/index.php index 1e09d32..5c4b909 100644 --- a/index.php +++ b/index.php @@ -91,9 +91,9 @@ function urlpath($dir, $file) { function ls($dir) { $dir = rtrim(is_dir($dir) ? $dir : dirname($dir) ."/". basename($dir, ".md"), "/"); printf("
%s
%s
%s
%s
%s
%s
", dirname($file), basename($file, ".md")); } } -function index($pn) { - ?> - "text/css", "js"=>"application/javascript"]; $r = new http\Env\Request; $u = new http\Url($r->getRequestUrl()); $s = new http\Env\Response; -$p = ".". $u->path; +$b = dirname($_SERVER["SCRIPT_NAME"]); +$p = ".". substr($u->path, strlen($b)); switch($p) { case "./index.php": @@ -246,11 +196,9 @@ ob_start($s);Sorry, I could not find
%s/%s
.