From eafcf42df95baa2e2faa6525183f13769e8bfd76 Mon Sep 17 00:00:00 2001 From: Natasha Moongrave Date: Sun, 22 Mar 2026 22:49:43 +0100 Subject: Moved the guestbook and its code from ./guestbook to src/Pages/guestbook --- guestbook/guestbook.php | 102 ------------------------------------------------ 1 file changed, 102 deletions(-) delete mode 100644 guestbook/guestbook.php (limited to 'guestbook/guestbook.php') diff --git a/guestbook/guestbook.php b/guestbook/guestbook.php deleted file mode 100644 index 3e70b83..0000000 --- a/guestbook/guestbook.php +++ /dev/null @@ -1,102 +0,0 @@ - time(), - "name" => substr($name, 0, 50), - "message" => substr($message, 0, 500), - "timestamp" => date("c") - ]; - - // Add new entry at the beginning - array_unshift($data, $entry); - - // Save back to JSON file - if (file_put_contents($dataFile, json_encode($data, JSON_PRETTY_PRINT)) === false) { - echo "

Error: Could not save guestbook entry. Check file permissions.

"; - } - - // Redirect to avoid form resubmission - header("Location: guestbook"); - exit; - } -} - -// Entries to display -$entries = $data; -?> - - - - -Guestbook - - - - - -
-

256phi Guestbook

- -
- - - - - - - -
- -
- - -
-

- - — - | - -
- - -
-

© 256phi | 2026 | Home

-
- - - -- cgit v1.2.3