diff --git a/api.php b/api.php new file mode 100644 index 0000000..c49604a --- /dev/null +++ b/api.php @@ -0,0 +1,37 @@ + +{ + "posts": [ + + ] +} diff --git a/beta-icon.png b/beta-icon.png new file mode 100644 index 0000000..7d61508 Binary files /dev/null and b/beta-icon.png differ diff --git a/creds.php b/creds.php new file mode 100644 index 0000000..8ecdac6 --- /dev/null +++ b/creds.php @@ -0,0 +1,9 @@ + diff --git a/css/style.css b/css/style.css new file mode 100644 index 0000000..7fc6a07 --- /dev/null +++ b/css/style.css @@ -0,0 +1,53 @@ +body { + background-color: #D0D0D0; + font-family: monospace; +} +table, th, td { + border: 1px solid #000000; + background-color: #EEEEEE; + font-size: 10pt; + margin: auto; +} +.logotable { + border: 0px; + background-color: #D0D0D0; +} +.center { + margin: auto; +} +.text-center { + text-align: center !important; +} +.navbar { + border: 1px solid #000000; + background-color: #EEEEEE; + padding: 3px; +} +a { + text-decoration: none; +} + +span#id { + color: #2c49c9 !important; +} +span#name{ + color: #1c8757; +} +span#date { + color: #727272; +} +span#message { + color: #000000; + white-space: pre-line; + text-overflow: ellipsis; + overflow-wrap: break-word; + max-width: 100%; +} +div#message { + background-color: #EEEEEE; + border: 1px solid #000000; + padding: 5px; + width: fit-content; + max-width: 100%; + display: block; +} diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000..8aa2349 Binary files /dev/null and b/favicon.ico differ diff --git a/icon.png b/icon.png new file mode 100644 index 0000000..7b17008 Binary files /dev/null and b/icon.png differ diff --git a/index.php b/index.php new file mode 100644 index 0000000..548ec79 --- /dev/null +++ b/index.php @@ -0,0 +1,45 @@ + +
+ + + + + + + + + + + + + +
username + 30 char limit +
message + +
action + +
+
+
+
+"; + echo "".$res['PostID']." "; + if(empty($res['Username'])) { + echo "Anonymous "; + } else { + echo "".$res['Username']." "; + } + echo "".$res['Time']."
"; + echo "".$res['Message'].""; + echo "

"; +} +?> + + diff --git a/messages.txt b/messages.txt new file mode 100644 index 0000000..896175d --- /dev/null +++ b/messages.txt @@ -0,0 +1,7 @@ +Hello! +If you are reading this message, it means you are using an outdated rautafarmi client. +As of 2022-09-07, rautafarmi has stopped using the old messages.txt method for retrieving messages. +An alternative will be released soon. To continue using the original rautafarmi, set your instance to +https://donut.gq/old-rautafarmi. + +--jornmann, donut.gq and rautafarmi sysop diff --git a/post.php b/post.php new file mode 100644 index 0000000..af48fbd --- /dev/null +++ b/post.php @@ -0,0 +1,22 @@ +query("INSERT INTO posts (username, message, ip) VALUES('" . $username . "', '" . $message . "', '" . $_SERVER["HTTP_X_FORWARDED_FOR"] . "')"); + + echo "

success

"; + + header("Location: index.php"); +} +echo "

done

"; + + +?> diff --git a/privacy-policy.php b/privacy-policy.php new file mode 100644 index 0000000..e47e838 --- /dev/null +++ b/privacy-policy.php @@ -0,0 +1,7 @@ + +

privacy policy

+

this page only exists because the law wants it to.

+

the only data we collect about you is your IP address.

+

your IP address is only used for banning you in case you do something bad.

+

if you want your data removed, you must send us the data you want removed. since this is an anonymous messageboard, we need your whole IP address for us to be able to remove it which kind of defeats the point, otherwise we can't confirm your identity.

+ diff --git a/schema.sql b/schema.sql new file mode 100644 index 0000000..386048a --- /dev/null +++ b/schema.sql @@ -0,0 +1,7 @@ +CREATE TABLE IF NOT EXISTS posts ( + PostID INT NOT NULL AUTO_INCREMENT primary key, + Username VARCHAR(30), + IP VARCHAR(100) NOT NULL, + Time TIMESTAMP, + Message VARCHAR(1000) +); diff --git a/templates/footer.php b/templates/footer.php new file mode 100644 index 0000000..7bd0e82 --- /dev/null +++ b/templates/footer.php @@ -0,0 +1,9 @@ + +
+
+

made with love, php, blood, sweat, and tears. lots of tears.

+

+

(c) donut.gq and contributors 2022

+
+ + diff --git a/templates/header.php b/templates/header.php new file mode 100644 index 0000000..6f3c79e --- /dev/null +++ b/templates/header.php @@ -0,0 +1,27 @@ + + + + rautafarmi Beta + + + + + + +
+
+ + + + + + +
beta rautafarmi logo

 rautafarmi Beta!

+
+