From 100ba92888a202611cd996f3f9ecfd55f1905503 Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Tue, 13 Feb 2024 22:57:28 +0100 Subject: [PATCH] init app --- .htaccess | 4 +++ index.php | 92 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 96 insertions(+) create mode 100644 .htaccess create mode 100644 index.php diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..53cac3b --- /dev/null +++ b/.htaccess @@ -0,0 +1,4 @@ + +RewriteEngine on +RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L] + \ No newline at end of file diff --git a/index.php b/index.php new file mode 100644 index 0000000..03c26b4 --- /dev/null +++ b/index.php @@ -0,0 +1,92 @@ +Access denied.

'; + exit; + } +?> + + + + + bnn + + + + +
View list New note | bbn
+
+ +
+ + +
+
+
+ +
+ + '; + } + else + { + if ($dh = opendir($dir)) { + while (($file = readdir($dh)) !== false) { + if (str_ends_with($file, '.md')) + { + echo '
' . $file .'
'; + } + } + closedir($dh); + } + } + + ?> + +