From: David Polakovic
Date: Fri, 1 Sep 2023 17:01:58 +0000 (+0200)
Subject: new dir structure, added .htaccess
X-Git-Url: https://git.dpolakovic.space/?a=commitdiff_plain;h=0cba44fb8b6fecbf974c8e15c76a18f915b2ad04;p=my-website
new dir structure, added .htaccess
---
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/Blogs/blog-template.html b/Blogs/blog-template.html
deleted file mode 100644
index ef91796..0000000
--- a/Blogs/blog-template.html
+++ /dev/null
@@ -1,71 +0,0 @@
-
-
-
-
-
-
- TITLE
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Title
- date
-
-
-
-
-
-
- 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.
-
-
-
-
-
-
-
-
-
-
diff --git a/Minor-pages/gpg.html b/Minor-pages/gpg.html
deleted file mode 100644
index efa22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OCK-----
-
-
-
- <<back
-
-
diff --git a/Minor-pages/rnd.html b/Minor-pages/rnd.html
deleted file mode 100755
index 8d94bd1..0000000
--- a/Minor-pages/rnd.html
+++ /dev/null
@@ -1,27 +0,0 @@
-my favorite junk food is fish sticks.
-my favorite book might just be the Name of the rose.
-my favorite dinosaur is pterodactyl.
-my favorite drink is White russian (and yes, it happened after I've seen Big Lebowsky).
-my favorite color is yellow.
-I still write "www" in address bar.
-I unironically liked The Phantom Menace.
-I am fascinated by honebadgers.
-I have one tomcat.
-when I need to focus I tend to listen to stoner rock.
-I enjoy to play basketball, even when I'am not really good at it.
-my favorite part of physics is thermodynamics.
-I enjoy hacking board games.
-I willingly play healers in D&D.
-I prefer Star Trek TNG over the Original Series.
-I bn gbo pg dszquphsbgz ;-) .
-I still use shortcuts on desktop.
-I use pencils more often than pens.
-I still use floppy disks for my backups.
-I don't drink coffe, but sometimes I drink mate tea.
-I love the smell of tobacco, but I hate the cigarette smoke.
-I use everything except bookmarks for bookmarking.
-I think way too much about time travel.
-I own ~200g of meteorites.
-I never sit on swivel chairs.
-I hate caraway.
-I don't use Arch btw.
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 @@
+ BLOG TITLE DATE
text text text
diff --git a/blogs/blog-template.html b/blogs/blog-template.html
new file mode 100755
index 0000000..6c391af
--- /dev/null
+++ b/blogs/blog-template.html
@@ -0,0 +1,62 @@
+
+
+
+
+
+
+ Y2K38 bug
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Y2K38 bug
+ 00.00.0000 - text text text
+
+
+
+
+
+
+ Here comes the blog...
+
+
+
+
+
+ * notes under line
+
+
+
+
+
+
+
+
+
diff --git a/blogs/pics/bug.jpg b/blogs/pics/bug.jpg
new file mode 100755
index 0000000..09b3bc0
Binary files /dev/null and b/blogs/pics/bug.jpg differ
diff --git a/gpg.html b/gpg.html
new file mode 100755
index 0000000..efa22a7
--- /dev/null
+++ b/gpg.html
@@ -0,0 +1,72 @@
+
+
+
+
+
+
+ fetch my key
+
+
+
+
+
+
+
+-----BEGIN PGP PUBLIC KEY BLOCK-----
+
+mQINBGOtl/cBEACyfjPIxsvHBKxa3zK5PqoMLYCkXiZo5Kx2eL34zFjmfNqeqi/7
+0vU9faqQwq9WtdbxqwberB3xclUPwgtF+YDnxfC2jmNGQyNP3YDTCrKsen2QE/1t
+1HiiuY1yBRfRXfnXGoV6WfW/6hgeSsvqang/ADsmwCClhne4YFWCbrDNmuwVNZOl
+D2BOQVUSIVa3xabrc8CH2ifiqeEtXzUSio60c9Sn4pSbmdXSZV1ixWKzJAr9mklY
+yysi6yD/Fr5JsjGLmVZxae9KBZKr1zA4PbcSrWLZ+LCe0b+K+hts3HMjE6lAMa+c
+82bXv2D3Q1OHJ34oB0zthXByXiA+Kxa1QnygYDNy6ZXaweq5B8lt4PzrR7/Wv19E
+UaisEahGrNOKXzH2+nWa2i6oYErEXm5wQkyNHnRQ7kaoFhPRfEnuzN0P78iFtmxt
+tr9c0t5OoGicb1Ec8JsDKaRp80CifO8M92HyXBSB771yjgsGgP/My/wiJgXMNt0l
++ps47Zt7TA0IHrTnTHvbDa9yJIroGU3Ni11PNMoHNokN+gLnBK3cOcK9paG7uExL
+aBq/DRNf91t7BhKIjux1IVVxjoy24fmCKIbZD1He/SJRogLfs6TIC4UxTmWVJk4U
+RWV6bJBDwOteZGsLcURdO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ND8TKVDvzL7ebP6kDBHff+PUIYC8igTTIy+gn7lajpzFWbiagVtTBIv
+gXJDfON9IHUZAoe18USJxoIumnX0G9PT5I3MRwEmbqHs1zJnRp3K0ohnxpziJq1Q
+ChR4yro3nlOYdlVEeACTmILQgi2AucCkE3sAQIxZELt7vmL8ihAOqJtCcqyj8CRE
+4a+tC0ztqBwP9oR5xBU33hgprGX9rxtd5l27klol5T1C/U2IzHUR8KdLz98E4vC4
+Z6gZlA==
+=wj2h
+-----END PGP PUBLIC KEY BLOCK-----
+
+
+
+ <<back
+
+
diff --git a/index.php b/index.php
index 863ac80..d7555c0 100755
--- a/index.php
+++ b/index.php
@@ -43,7 +43,7 @@
David
and
email at dpolakovic dot space
- (my public GPG)
+ (my public GPG)
diff --git a/rnd.html b/rnd.html
new file mode 100755
index 0000000..33307f6
--- /dev/null
+++ b/rnd.html
@@ -0,0 +1,21 @@
+my favorite junk food is fish sticks.
+my favorite dinosaur is pterodactyl.
+my favorite drink is White russian (and yes, it happened after I've seen Big Lebowsky).
+my favorite color is yellow.
+I still write "www" in address bar.
+I unironically liked The Phantom Menace.
+I have one tomcat.
+I enjoy hacking board games.
+I willingly play healers in D&D.
+I prefer Star Trek TNG over the Original Series.
+I bn gbo pg dszquphsbgz ;-) .
+I still use shortcuts on desktop.
+I prefer pencils over pens.
+I still use floppy disks for backups.
+I don't drink coffe, but sometimes I drink mate tea.
+I use everything except bookmarks for bookmarking.
+I think way too much about time travel.
+I own ~200g of meteorites.
+I never sit on swivel chairs.
+I don't use Arch btw (I use Trisquel!).
+my favorite ice cream flavor is vanilla.
diff --git a/test.html b/test.html
old mode 100644
new mode 100755