From 551fe367342f4c3d4c859f58054c6076b3fe4d69 Mon Sep 17 00:00:00 2001 From: Jonas Kohl Date: Fri, 19 Jul 2024 16:30:46 +0200 Subject: Wrap after 80 cols --- expand.php | 12 ++++++++---- src/includes/under-construction.php | 3 ++- src/pages/about.php | 20 +++++++++++++++++--- src/template.php | 27 +++++++++++++++++++++------ 4 files changed, 48 insertions(+), 14 deletions(-) diff --git a/expand.php b/expand.php index 41d4dc7..fb83625 100644 --- a/expand.php +++ b/expand.php @@ -4,10 +4,14 @@ define("SRCDIR", realpath(__DIR__ . "/src/")); $__page = file_get_contents("php://stdin"); $title = ""; -$__page = preg_replace_callback(';(.*?);i', function(array $matches) use(&$title): string { - $title = $matches[1]; - return ""; -}, $__page); +$__page = preg_replace_callback( + ';(.*?);i', + function(array $matches) use(&$title): string { + $title = $matches[1]; + return ""; + }, + $__page +); $page = SRCDIR . "/pages/" . bin2hex(random_bytes(8)) . ".tmp"; file_put_contents($page, $__page); unset($__page); diff --git a/src/includes/under-construction.php b/src/includes/under-construction.php index 0ab79de..418d364 100644 --- a/src/includes/under-construction.php +++ b/src/includes/under-construction.php @@ -1,4 +1,5 @@ - @@ -27,10 +30,19 @@
+ +
Under construction
This page is still under construction!
diff --git a/src/pages/about.php b/src/pages/about.php index b9f8b22..3103ebb 100644 --- a/src/pages/about.php +++ b/src/pages/about.php @@ -2,7 +2,10 @@ format("%y"); +$age = date_diff( + new DateTimeImmutable(), + new DateTimeImmutable(BIRTHDATE) +)->format("%y"); ?> @@ -13,5 +16,16 @@ $age = date_diff(new DateTimeImmutable(), new DateTimeImmutable(BIRTHDATE))->for

Hello, I'm Jonas Kohl aka hozyro!

-

I'm -year-old student and software engineer. I use they/them, she/her and he/him pronouns.

-

I love retro computing, especially the early to mid-2000s (yes, that's considered retro now, get over it), as you can tell by this website (which btw should work just fine in IE 6 if you manage to bypass the SSL errors somehow – I tested it in IE 6, IE 7 and Mozilla 1.1.)

+

+I'm -year-old student and software engineer. I use +they/them, she/her and he/him +pronouns. +

+

+I love retro computing, especially the early to mid-2000s (yes, that's +considered retro now, get over it), as you can tell by this website +(which btw should work just fine in IE 6 if you manage to bypass the SSL errors +somehow – I tested it in IE 6, IE 7 and Mozilla 1.1). This website is also +available solely via HTTP over at +http://hozyro.jkohl.link/! +

diff --git a/src/template.php b/src/template.php index 8612a51..5c94a36 100644 --- a/src/template.php +++ b/src/template.php @@ -19,7 +19,10 @@
- hozyro's site + hozyro's site
- - - - + + + + @@ -43,7 +55,10 @@ - Made by Jonas Kohl aka hozyro. This website is open-source. + Made by Jonas Kohl aka hozyro. This website is + + open-source + . -- cgit v1.2.3