diff --git a/.gitignore b/.gitignore index 57a5462..85aa567 100755 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,6 @@ databases/* src/* public/message/static/src/video/* public/blog/md/post/* -public/blog/md/image/* \ No newline at end of file +public/blog/md/image/* +public/blog/md0/post/* +public/blog/md0/image/* \ No newline at end of file diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/public/1index.php b/public/1index.php new file mode 100755 index 0000000..6736b26 --- /dev/null +++ b/public/1index.php @@ -0,0 +1,20 @@ + 're_blog.php', + '/blog/md/post/s/' => '../src/views/posts.php', +]; + +// 根据 URL 找到对应的文件 +if (array_key_exists($path, $routes)) { + require $routes[$path]; +} else { + // 如果找不到对应的 URL,返回 404 错误 + http_response_code(404); + require '../src/views/error/404.html'; +} \ No newline at end of file diff --git a/public/blog/fake_page.php b/public/blog/fake_page.php old mode 100644 new mode 100755 diff --git a/public/blog/md/114514.md b/public/blog/md0/114514.md similarity index 100% rename from public/blog/md/114514.md rename to public/blog/md0/114514.md diff --git a/public/blog/md/MD.php b/public/blog/md0/MD.php similarity index 100% rename from public/blog/md/MD.php rename to public/blog/md0/MD.php diff --git a/public/blog/md/index.php b/public/blog/md0/index.php similarity index 100% rename from public/blog/md/index.php rename to public/blog/md0/index.php diff --git a/public/blog/md/src/php-markdown/MD.php b/public/blog/md0/src/php-markdown/MD.php similarity index 100% rename from public/blog/md/src/php-markdown/MD.php rename to public/blog/md0/src/php-markdown/MD.php diff --git a/public/blog/md/src/php-markdown/demo/index.php b/public/blog/md0/src/php-markdown/demo/index.php similarity index 100% rename from public/blog/md/src/php-markdown/demo/index.php rename to public/blog/md0/src/php-markdown/demo/index.php diff --git a/public/blog/md/src/php-markdown/demo/test.md b/public/blog/md0/src/php-markdown/demo/test.md similarity index 100% rename from public/blog/md/src/php-markdown/demo/test.md rename to public/blog/md0/src/php-markdown/demo/test.md diff --git a/public/blog/md/src/php-markdown/index.html b/public/blog/md0/src/php-markdown/index.html similarity index 100% rename from public/blog/md/src/php-markdown/index.html rename to public/blog/md0/src/php-markdown/index.html diff --git a/public/index.php b/public/index.php new file mode 100755 index 0000000..b989018 --- /dev/null +++ b/public/index.php @@ -0,0 +1,27 @@ +