From 0cba44fb8b6fecbf974c8e15c76a18f915b2ad04 Mon Sep 17 00:00:00 2001
From: David Polakovic
Date: Fri, 1 Sep 2023 19:01:58 +0200
Subject: [PATCH] new dir structure, added .htaccess
---
.htaccess | 14 +++++------
Blogs/blog-list.html | 1 -
blog.php | 6 ++---
blogs/blog-list.html | 1 +
{Blogs => blogs}/blog-template.html | 35 +++++++++++-----------------
blogs/pics/bug.jpg | Bin 0 -> 143764 bytes
Minor-pages/gpg.html => gpg.html | 0
index.php | 4 ++--
Minor-pages/rnd.html => rnd.html | 14 ++++-------
test.html | 0
10 files changed, 30 insertions(+), 45 deletions(-)
delete mode 100644 Blogs/blog-list.html
mode change 100644 => 100755 blog.php
create mode 100755 blogs/blog-list.html
rename {Blogs => blogs}/blog-template.html (73%)
mode change 100644 => 100755
create mode 100755 blogs/pics/bug.jpg
rename Minor-pages/gpg.html => gpg.html (100%)
mode change 100644 => 100755
rename Minor-pages/rnd.html => rnd.html (61%)
mode change 100644 => 100755 test.html
diff --git a/.htaccess b/.htaccess
index c7b2bf7..b705e0b 100644
--- a/.htaccess
+++ b/.htaccess
@@ -6,11 +6,11 @@ RewriteRule ^ /%1 [NE,L,R]
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*)/?$ /$1.php [L]
- RewriteEngine on
- #redirect /file.html to /file
- RewriteCond %{THE_REQUEST} \s/([^.]+)\.html [NC]
- RewriteRule ^ /%1 [NE,L,R]
- # now we will internally map /file to/ file.html
- RewriteCond %{REQUEST_FILENAME}.html -f
- RewriteRule ^(.*)/?$ /$1.html [L]
+RewriteEngine on
+#redirect /file.html to /file
+RewriteCond %{THE_REQUEST} \s/([^.]+)\.html [NC]
+RewriteRule ^ /%1 [NE,L,R]
+# now we will internally map /file to/ file.html
+RewriteCond %{REQUEST_FILENAME}.html -f
+RewriteRule ^(.*)/?$ /$1.html [L]
diff --git a/Blogs/blog-list.html b/Blogs/blog-list.html
deleted file mode 100644
index 520aa74..0000000
--- a/Blogs/blog-list.html
+++ /dev/null
@@ -1 +0,0 @@
-There is nothing here. Yet.
diff --git a/blog.php b/blog.php
old mode 100644
new mode 100755
index 673682e..49345b1
--- a/blog.php
+++ b/blog.php
@@ -104,15 +104,15 @@
//echo "
Current value of key: $key
";
if ($sort == "new")
{
- printFile("./Blogs/blog-list.html");
+ printFile("./blogs/blog-list.html");
}
if ($sort == "old")
{
- printFileReversed("./Blogs/blog-list.html");
+ printFileReversed("./blogs/blog-list.html");
}
if ($sort == "edit")
{
- printFileEdited("./Blogs/blog-list.html");
+ printFileEdited("./blogs/blog-list.html");
}
?>
diff --git a/blogs/blog-list.html b/blogs/blog-list.html
new file mode 100755
index 0000000..0ba85c5
--- /dev/null
+++ b/blogs/blog-list.html
@@ -0,0 +1 @@
+
-
Title
- date
+ Y2K38 bug
+ 00.00.0000 - text text text
-
+
- So here comes the blog...
- This is how you do links in text [1]
-
-
-
- Notes:
-
- blah blah blah
-
-
-
-
-
- Hey... If you found any mistake, broken link or something that is
- just dead wrong, write me an email please. Thank you.
-
-
+ Here comes the blog...
+
+
+
+
+ * notes under line
+
+
@@ -65,7 +56,7 @@
- content of this web is licensed under