From deae8cd9b4f5dd47f50a2f2852e67c1dce5ee872 Mon Sep 17 00:00:00 2001
From: David Polakovic
Date: Wed, 26 Apr 2023 20:41:11 +0200
Subject: [PATCH] created sorting of blogs (redirected everything to blog.PHP)
---
Blogs/blog-list.html | 3 ++
Blogs/blog-template.html | 2 +-
Pictures/gnu40.png | Bin 0 -> 13485 bytes
ad.html | 11 +++--
blog.html | 5 ++-
blog.php | 93 ++++++++++++++++++++++++++++-----------
index.html | 7 ++-
7 files changed, 88 insertions(+), 33 deletions(-)
create mode 100644 Blogs/blog-list.html
create mode 100644 Pictures/gnu40.png
diff --git a/Blogs/blog-list.html b/Blogs/blog-list.html
new file mode 100644
index 0000000..327651e
--- /dev/null
+++ b/Blogs/blog-list.html
@@ -0,0 +1,3 @@
+Does it work? Hope it does...
+and what about now?
+and this, this is Edited
diff --git a/Blogs/blog-template.html b/Blogs/blog-template.html
index fb885d6..df0a789 100644
--- a/Blogs/blog-template.html
+++ b/Blogs/blog-template.html
@@ -24,7 +24,7 @@
diff --git a/Pictures/gnu40.png b/Pictures/gnu40.png
new file mode 100644
index 0000000000000000000000000000000000000000..2147bfde3a57bd3bb2a66da174063f31cb7e39bd
GIT binary patch
literal 13485
zcmeIYWl&t*5;i)xyF>8cHn_XH6Ew&$xHGuB1%fBITS9^pToT+}gF|pjaJ`ef@3FdH
z)vZ%?zkg?@_RQYBx}VkktnRM8XHATTnmh(7DJlQ}z))0>(Sm*(K@SRKMChkGHT)z)}2&R7aqbM_Gzv-ty(
znKM61AXlDo#ylNUd?-40(+^^*?@#^D6xZSpgX-n%1{KXa4`&PwGg7XyX<4|XI~VQgi5Jrgy#79S`!g>CJ5juM|6Uy=C$Fs<)V5z%>HmDC+<3%o
ze{J8Wb@LrJ2*vH`>9&79=Zm=YPUKS*L)qOe+rxveu~;Yf9o^lXkoBzl{0Ot}P`FSK
z;blY5J=wKpuHxIz2^BkKXJB;AleNAzC0+H}#@t)|IsA*bP7SC$UD+>6J3w+%}Ofh~s9t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BY+5r@K$G%V(LUAggK^6Ijefs?N3IkgK{=qhnC>$P=q9oGVX9;9(gPvj|@K
zU7wUd^Pnu(H@2lk2o)7IT80K41H*N*2j%KyMOj`xYU&5{j_bz=NlK8XhX)iQo4wXCIw#JA0sr*}G4Y
zN-1RpmBnr&+q2R+F>VGDQfp>6(nqJmE1O4j$%OK2(UbTmxxl5c@Ir>KlLp?DNX=Ki
zQ>idzi3ul?GdvTR&rFn(>oYuk@nG~yYTL;c&*&qm(U(wYpO&N
z*?@Sd`>vF%%`eD={^0s8yr{d2UQZiHO7w|F)^Qh&cHcXn+QN70{Da)0#m-_#y-qAd
zhAHOVu(xUwD(0vNT20F43+>nosVk1;qacRhPB>jS?+!v#;}PhC4M0&=P3E(dS?K=*
Dzy<6-
literal 0
HcmV?d00001
diff --git a/ad.html b/ad.html
index 4802f37..64216a2 100644
--- a/ad.html
+++ b/ad.html
@@ -25,7 +25,7 @@
About
- Blog
+ Blog
Classified ad
Git server
@@ -41,12 +41,17 @@
- Here I write some stuff.
+ I will buy board game Le Havre in any of these languages: EN, DE, CZE.
+
+
+ I am looking for Motorola F3 also known as Motofone. I will buy both
+ GSM variants, US and EU, as well as batteries for them.
- Here I write some stuff.
+ I offer for sale original Nintendo NES classic edition with two controllers,
+ signed by Masayuki Uemura - console only, without box.
diff --git a/blog.html b/blog.html
index 7164aac..f111924 100644
--- a/blog.html
+++ b/blog.html
@@ -27,7 +27,7 @@
-
+ WHOOOPS! Nothing's here. You better check
+ blog.PHP
diff --git a/blog.php b/blog.php
index 911c769..cc34915 100644
--- a/blog.php
+++ b/blog.php
@@ -27,7 +27,7 @@
About
- Blog
+ Blog
Classified ad
Git server
@@ -43,37 +43,80 @@
After eating and breathing, expressing opinions on the internet is the
most important humand need. Here are some of mine that occupied my mind
- for more than few seconds.
+ for more than few seconds.
+ ';
+ }
+ }
+
+ // function to print file line by line in reverse order
+ function printFileReversed($filename)
+ {
+ $lines = file($filename);
+ $reversedLines = array_reverse($lines);
+ foreach ($reversedLines as $line)
+ {
+ echo $line . ' ';
+ }
+ }
+
+ // function to print file line by line which has "Edit" in them
+ function printFileEdited($filename)
+ {
+ $file = fopen($filename, "r");
+
+ while (($line = fgets($file)) !== false) {
+ if (strpos($line, 'Edited') !== false)
+ {
+ echo $line . ' ';
+ }
+ }
+ fclose($file);
+ }
+ ?>
- Sorty by date:
- new first
- old first
- edited first
-
+ Sort:
+ New first
+ Old first
+ Edited only
-
- -->
-
+
-
-
+ Current value of key: $key ";
+ if ($sort == "new")
+ {
+ printFile("./Blogs/blog-list.html");
+ }
+ if ($sort == "old")
+ {
+ printFileReversed("./Blogs/blog-list.html");
+ }
+ if ($sort == "edit")
+ {
+ printFileEdited("./Blogs/blog-list.html");
+ }
+ ?>
-
+