X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=index.php;h=53c652913cae1b0804bbac55e7dd177fb257acfa;hb=c814ac9fbd7245879173e1abf0c30c9a9d186b78;hp=1e09d32ae1a2993beaad7aec0547a3829fe1e366;hpb=8783408f37f66e1d76a9a5267c01fff69386b316;p=mdref%2Fmdref diff --git a/index.php b/index.php index 1e09d32..53c6529 100644 --- a/index.php +++ b/index.php @@ -189,7 +189,7 @@ function ml($file) { } } -function md($file) { +function md($file, $res) { $file = rtrim($file, "/"); if (is_file($file) || is_file($file .= ".md")) { $pi = pathinfo($file); @@ -209,17 +209,12 @@ function md($file) { break; } } else { - http\Env::setResponseCode(404); + $res->setResponseCode(404); printf("

Not Found

\n"); printf("

Sorry, I could not find %s/%s.

", dirname($file), basename($file, ".md")); } } -function index($pn) { - ?> - "text/css", "js"=>"application/javascript"]; $r = new http\Env\Request; @@ -267,7 +262,7 @@ ob_start($s); ob_end_flush(); ?> - +