summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortinfoil-hat.net <mail@tinfoil-hat.net>2023-05-07 06:49:41 +0200
committertinfoil-hat.net <mail@tinfoil-hat.net>2023-05-07 06:49:41 +0200
commit29194888a3a3a94c165c7c09f5078c7c0995f7ce (patch)
treee57375f3e10f473867d3647c71b3c69471e12787
parent59be8b166653027f79516a4755370c0054216edd (diff)
downloadtinfoil-hat.net-29194888a3a3a94c165c7c09f5078c7c0995f7ce.tar.gz
tinfoil-hat.net-29194888a3a3a94c165c7c09f5078c7c0995f7ce.tar.bz2
tinfoil-hat.net-29194888a3a3a94c165c7c09f5078c7c0995f7ce.zip
removed Guestbook
-rw-r--r--categories/gitweb.html1
-rw-r--r--categories/linklists.html1
-rw-r--r--categories/unixporn-dungeon.html1
-rw-r--r--categories/webring.html1
-rw-r--r--guestbook/entries.txt0
-rw-r--r--guestbook/guestbook.html107
-rw-r--r--guestbook/guestbook.php121
-rw-r--r--index.html1
8 files changed, 0 insertions, 233 deletions
diff --git a/categories/gitweb.html b/categories/gitweb.html
index 5184485..d3a4f2c 100644
--- a/categories/gitweb.html
+++ b/categories/gitweb.html
@@ -15,7 +15,6 @@
<br>
<div class="floatdiv"><a title="to Startpage" href="../index.html" style="color:#fff;border:0px">Start</a></div>
<div class="floatdiv"><a title="Unixporn" href="unixporn-dungeon.html" style="color:#fff;border:0px">Unixporn</a></div>
- <div class="floatdiv"><a title="Webring" href="webring.html" style="color:#fff;border:0px">Webring</a></div>
<div class="floatdiv"><a title="Git Projects" href="gitweb.html" style="color:#fff;border:0px">Git Projects</a></div>
<div class="floatdiv"><a title="Linklists" href="linklists.html" style="color:#fff;border:0px">Linklists</a></div>
diff --git a/categories/linklists.html b/categories/linklists.html
index 220a396..82df2b5 100644
--- a/categories/linklists.html
+++ b/categories/linklists.html
@@ -17,7 +17,6 @@
<div class="floatdiv"><a title="Unixporn" href="unixporn-dungeon.html" style="color:#fff;border:0px">Unixporn</a></div>
<div class="floatdiv"><a title="Webring" href="webring.html" style="color:#fff;border:0px">Webring</a></div>
<div class="floatdiv"><a title="Git Projects" href="gitweb.html" style="color:#fff;border:0px">Git Projects</a></div>
- <div class="floatdiv"><a title="Guestbook" href="../guestbook/guestbook.html" style="color:#fff;border:0px">Guestbook</a></div>
<div class="floatdiv"><a title="Linklists" href="linklists.html" style="color:#fff;border:0px">Linklists</a></div>
<div style="padding:4px 7px 4px 7px;background-color:#000;clear:both">
diff --git a/categories/unixporn-dungeon.html b/categories/unixporn-dungeon.html
index cc2778d..ebb0192 100644
--- a/categories/unixporn-dungeon.html
+++ b/categories/unixporn-dungeon.html
@@ -17,7 +17,6 @@
<div class="floatdiv"><a title="Unixporn" href="unixporn-dungeon.html" style="color:#fff;border:0px">Unixporn</a></div>
<div class="floatdiv"><a title="Webring" href="webring.html" style="color:#fff;border:0px">Webring</a></div>
<div class="floatdiv"><a title="Git Projects" href="gitweb.html" style="color:#fff;border:0px">Git Projects</a></div>
- <div class="floatdiv"><a title="Guestbook" href="../guestbook/guestbook.html" style="color:#fff;border:0px">Guestbook</a></div>
<div class="floatdiv"><a title="Linklists" href="linklists.html" style="color:#fff;border:0px">Linklists</a></div>
<div style="padding:4px 7px 4px 7px;background-color:#000;clear:both">
diff --git a/categories/webring.html b/categories/webring.html
index 69294ff..41c93d0 100644
--- a/categories/webring.html
+++ b/categories/webring.html
@@ -17,7 +17,6 @@
<div class="floatdiv"><a title="Unixporn" href="unixporn-dungeon.html" style="color:#fff;border:0px">Unixporn</a></div>
<div class="floatdiv"><a title="Webring" href="webring.html" style="color:#fff;border:0px">Webring</a></div>
<div class="floatdiv"><a title="Git Projects" href="gitweb.html" style="color:#fff;border:0px">Git Projects</a></div>
- <div class="floatdiv"><a title="Guestbook" href="../guestbook/guestbook.html" style="color:#fff;border:0px">Guestbook</a></div>
<div class="floatdiv"><a title="Linklists" href="linklists.html" style="color:#fff;border:0px">Linklists</a></div>
<div style="padding:4px 7px 4px 7px;background-color:#000;clear:both">
diff --git a/guestbook/entries.txt b/guestbook/entries.txt
deleted file mode 100644
index e69de29..0000000
--- a/guestbook/entries.txt
+++ /dev/null
diff --git a/guestbook/guestbook.html b/guestbook/guestbook.html
deleted file mode 100644
index 4bb7664..0000000
--- a/guestbook/guestbook.html
+++ /dev/null
@@ -1,107 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <link rel=stylesheet type="text/css" href="../css/style.css">
- <meta NAME="language" CONTENT="en">
- <meta name="keywords" content=" Linux, Opensource, IT, Computer-Science, Unix [★]">
- <meta name="description" content="Personal Site from tinfoil-hat: Linux, Opensource, Sysadmin, Unix [★]">
- <title>tinfoil-hat.net - A secure home for every tinfoil-hat.</title>
- <title>Guestbook</title>
- <style>
- body {
- background-color: black;
- color: white;
- font-family: Arial, sans-serif;
- font-size: 16px;
- }
- form {
- display: flex;
- flex-direction: column;
- margin-bottom: 20px;
- }
- label {
- margin-bottom: 10px;
- }
- input, textarea {
- font-family: Arial, sans-serif;
- font-size: 16px;
- padding: 5px;
- margin-bottom: 10px;
- border-radius: 3px;
- border: none;
- }
- textarea {
- height: 100px;
- }
- input[type="submit"] {
- background-color: white;
- color: black;
- font-weight: bold;
- border-radius: 3px;
- border: none;
- padding: 10px;
- cursor: pointer;
- }
- .entry {
- margin-bottom: 20px;
- }
- .entry h3 {
- font-size: 18px;
- margin-bottom: 10px;
- }
- .entry p {
- font-size: 16px;
- margin-bottom: 10px;
- }
- .entry a {
- color: red;
- margin-left: 10px;
- }
- </style>
-</head>
-<body>
- <div style="border:2px solid #555;border-top-left-radius:10px;border-top-right-radius:10px;border-bottom-left-radius:5px;border-bottom-right-radius:5px;background-color:#000;box-shadow:3px 3px 5px rgba(0,0,0,0.5)">
- <div style="text-shadow:1px 0px 0px #444;letter-spacing:0.28px;border-top-left-radius:10px;border-top-right-radius:10px;color:#fff;background-color:#111;padding:3px 6px 3px 6px;border-bottom:1px solid #555">
- <b>:: Tinfoil-hat.net - A secure home for every tinfoil-hat</b>
- <br>
- <div class="floatdiv"><a title="to Startpage" href="../index.html" style="color:#fff;border:0px">Start</a></div>
- <div class="floatdiv"><a title="Unixporn" href="unixporn-dungeon.html" style="color:#fff;border:0px">Unixporn</a></div>
- <div class="floatdiv"><a title="Webring" href="webring.html" style="color:#fff;border:0px">Webring</a></div>
- <div class="floatdiv"><a title="Git Projects" href="gitweb.html" style="color:#fff;border:0px">Git Projects</a></div>
- <div class="floatdiv"><a title="Linklists" href="linklists.html" style="color:#fff;border:0px">Linklists</a></div>
-
- <div style="padding:4px 7px 4px 7px;background-color:#000;clear:both">
- <div style="text-align: center">
- <!-- Beginning Content -->
-
-
- <br><br>
-
- <h1>Welcome to my website</h1>
- <p>Check out my guestbook:</p>
- <iframe src="./guestbook.php" width="100%" height="650"></iframe>
-
- </div>
-</div>
-
-
-</div>
-
-<!-- End Content -->
-
-
-
-<!-- Footer -->
-<div style="font-size:14.2px;background-color:#00004d;border-bottom-left-radius:5px;border-bottom-right-radius:5px;color:#fff;padding:3px 6px 3px 6px;border-top:1px solid #555">
-<div style="text-align: center">
- <!-- Footer Content -->
- GPG-Fingerprint: <a href="https://keys.openpgp.org/vks/v1/by-fingerprint/1C02266E4882C2A7279EB012C0090D40CFE34966">1C02 266E 4882 C2A7 279E B012 C009 0D40 CFE3 4966</a> ·
- Mail:&nbsp;<span title="Do you have any questions or complains? E-Mail me!"><a href="mailto:mail@tinfoil-hat.net">mail@tinfoil-hat.net</a> ·
- <a href="https://stats.tinfoil-hat.net" target=“_blank”>Site Statistics</a></span>
-</div>
-<!-- End Footer -->
-
-</body>
-</html>
-
diff --git a/guestbook/guestbook.php b/guestbook/guestbook.php
deleted file mode 100644
index 4f96a04..0000000
--- a/guestbook/guestbook.php
+++ /dev/null
@@ -1,121 +0,0 @@
-<?php
-// Function to sanitize user input
-function sanitize_input($data) {
- $data = trim($data);
- $data = stripslashes($data);
- $data = htmlspecialchars($data);
- return $data;
-}
-
-// Check if form has been submitted
-if ($_SERVER["REQUEST_METHOD"] == "POST") {
- // Get form data
- $name = sanitize_input($_POST["name"]);
- $message = sanitize_input($_POST["message"]);
-
- // Validate form data
- $errors = [];
- if (empty($name)) {
- $errors[] = "Name is required";
- }
- if (empty($message)) {
- $errors[] = "Message is required";
- }
-
- // If no errors, add entry to guestbook
- if (empty($errors)) {
- $entry = $name . "|" . $message . "\n";
- file_put_contents("entries.txt", $entry, FILE_APPEND | LOCK_EX);
- }
-}
-
-// Display guestbook entries
-$entries = file("entries.txt");
-?>
-
-<!DOCTYPE html>
-<html>
- <head>
- <title>Guestbook</title>
- <style>
- body {
- background-color: black;
- color: white;
- font-family: Arial, sans-serif;
- font-size: 16px;
- }
- form {
- display: flex;
- flex-direction: column;
- margin-bottom: 20px;
- }
- label {
- margin-bottom: 10px;
- }
- input, textarea {
- font-family: Arial, sans-serif;
- font-size: 16px;
- padding: 5px;
- margin-bottom: 10px;
- border-radius: 3px;
- border: none;
- }
- textarea {
- height: 100px;
- }
- input[type="submit"] {
- background-color: white;
- color: black;
- font-weight: bold;
- border-radius: 3px;
- border: none;
- padding: 10px;
- cursor: pointer;
- }
- .entry {
- margin-bottom: 20px;
- }
- .entry h3 {
- font-size: 18px;
- margin-bottom: 10px;
- }
- .entry p {
- font-size: 16px;
- margin-bottom: 10px;
- }
- .entry a {
- color: red;
- margin-left: 10px;
- }
- </style>
- </head>
- <body>
- <h1>Guestbook</h1>
- <?php
- // If there are errors, display them
- if (!empty($errors)) {
- echo "<ul>";
- foreach ($errors as $error) {
- echo "<li>" . $error . "</li>";
- }
- echo "</ul>";
- }
- ?>
- <form method="post">
- <label for="name">Name:</label>
- <input type="text" id="name" name="name">
- <label for="message">Message:</label>
- <textarea id="message" name="message"></textarea>
- <input type="submit" value="Submit">
-</form>
-<h2>Entries:</h2>
-<?php
-foreach ($entries as $entry) {
- list($name, $message) = explode("|", $entry);
- echo "<div class='entry'>";
- echo "<h3>" . htmlspecialchars($name) . "</h3>";
- echo "<p>" . htmlspecialchars($message) . "</p>";
- echo "</div>";
-}
-?>
-
diff --git a/index.html b/index.html
index 11057e7..3a26377 100644
--- a/index.html
+++ b/index.html
@@ -18,7 +18,6 @@
<div class="floatdiv"><a title="Unixporn" href="categories/unixporn-dungeon.html" style="color:#fff;border:0px">Unixporn</a></div>
<div class="floatdiv"><a title="Webring" href="categories/webring.html" style="color:#fff;border:0px">Webring</a></div>
<div class="floatdiv"><a title="Git Projects" href="categories/gitweb.html" style="color:#fff;border:0px">Git Projects</a></div>
- <div class="floatdiv"><a title="Guestbook" href="guestbook/guestbook.html" style="color:#fff;border:0px">Guestbook</a></div>
<div class="floatdiv"><a title="Linklists" href="categories/linklists.html" style="color:#fff;border:0px">Linklists</a></div>
<div style="padding:4px 7px 4px 7px;background-color:#000;clear:both">