commit cccebbc780e8deb3eeb7ebd02bda4c0d339af12f Author: Grizzly Date: Sun Mar 20 10:26:55 2022 +0100 Initial commit diff --git a/blog/.config b/blog/.config new file mode 100755 index 0000000..57ea3dc --- /dev/null +++ b/blog/.config @@ -0,0 +1,2 @@ +global_title="my tildelog" +global_description="a blog about tildes" diff --git a/blog/index.html b/blog/index.html new file mode 100755 index 0000000..0f8d213 --- /dev/null +++ b/blog/index.html @@ -0,0 +1,4 @@ + +
cd
to your
~/public_html/blog/
folder and run
bb post
+ + diff --git a/botany.bak.php b/botany.bak.php new file mode 100644 index 0000000..5c5e384 --- /dev/null +++ b/botany.bak.php @@ -0,0 +1,68 @@ + + +
+
">
+
+ plant:
+ score:
+ age:
+ generation:
+ water: + + +
+
+
+
+
+ + diff --git a/botany.php b/botany.php new file mode 100644 index 0000000..7c74cd6 --- /dev/null +++ b/botany.php @@ -0,0 +1,120 @@ + + +
+
">
+
+ plant:
+ score:
+ age:
+ generation:
+ water: + + +
+
+
+
+
+ + + + diff --git a/browser/get.php b/browser/get.php new file mode 100644 index 0000000..8e2b004 --- /dev/null +++ b/browser/get.php @@ -0,0 +1,32 @@ +prepare("SELECT * FROM `websites` ORDER BY RANDOM() LIMIT 1;"); + $stmt->execute(); + $row = $stmt->fetch(); + + die(header("Location: https://tilde.team/~grizzly/browser/?member=" . $row['login_name'])); +} else { + $stmt = $db->prepare("SELECT * FROM `websites` WHERE login_name = :login_name;"); + $stmt->execute(array(':login_name' => $member)); + $row = $stmt->fetch(); + + $stmt = $db->prepare("SELECT login_name FROM `websites` WHERE id > :id;"); + $stmt->execute(array(':id' => $row['id'])); + $next = $stmt->fetch(); + + $stmt = $db->prepare("SELECT login_name FROM `websites` WHERE id < :id;"); + $stmt->execute(array(':id' => $row['id'])); + $prev = $stmt->fetch(); +} + +$current = $row["login_name"]; +$next = $next["login_name"] ? $next["login_name"] : null; +$prev = $prev["login_name"] ? $prev["login_name"] : null; + +?> diff --git a/browser/index.php b/browser/index.php new file mode 100644 index 0000000..ca072e6 --- /dev/null +++ b/browser/index.php @@ -0,0 +1,88 @@ + + + + + + + Members websites on tilde.team + + +
+
+ +
+
+
+ you are viewing + + site +
+
+ + + [previous] + + [random] + + [next] + +
+
user list cache is updated once a day
+
+
+ + + + diff --git a/cgi-bin/ip.sh b/cgi-bin/ip.sh new file mode 100755 index 0000000..7fd4c91 --- /dev/null +++ b/cgi-bin/ip.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +echo "Content-type: text/plain" +echo "" + +echo $REMOTE_ADDR +exit 0 + diff --git a/comments/index.php b/comments/index.php new file mode 100755 index 0000000..1a1c9a0 --- /dev/null +++ b/comments/index.php @@ -0,0 +1,41 @@ + 240) { die(header("Location: " . $pageUrl . "/?error=max_240_characters")); } + + $query = "INSERT INTO `comments` (login_name, post_time, comment) VALUES(:login_name, :post_time, :comment)"; + $stmt = $db->prepare($query); + $stmt->bindParam(':login_name', $login_name); + $stmt->bindParam(':post_time', $time); + $stmt->bindParam(':comment', $comment); + $stmt->execute(); + $db = null; + + header("Location: " . $pageUrl . "/?success=posted"); +} +?> diff --git a/favicon.svg b/favicon.svg new file mode 100644 index 0000000..ea3e5c7 --- /dev/null +++ b/favicon.svg @@ -0,0 +1 @@ + diff --git a/index.php b/index.php new file mode 100644 index 0000000..9f8b0a0 --- /dev/null +++ b/index.php @@ -0,0 +1,400 @@ + + + + + + + + Grizzly’s Space + + +
+
+ ~team + Security does not exist, no system is save + <- back to tilde.team +
+
+
+
+
+

Hi, I'm Grizzly!

+ Have a great day! :) + +
+
+   _________________
+  < Hello, everyone >
+   -----------------
+    \
+     \
+         ___
+       {~._.~}
+        ( Y )
+       ()~*~()
+       (_)-(_)
+  
+
+

botany: my plant

+ +
+
+ +
+ +
+
+ +
+
+ prepare("SELECT * FROM `comments` ORDER BY id DESC;"); + $query->execute(); + + while($fetch = $query->fetch()) { + + ?> + +
+
+ + +
+
+
+ + + +
+
+ Posted, thanks for comment!'; } ?> + Not valid auth key'; }?> + Fill all inputs'; }?> + Maximum 240 characters'; }?> + Auth file not readable'; }?> + +
Leave a message :)
+ +
+ + + + +
+ +
+
+ + How to post comment + + + Only tilde.team members can post comments here, if you are a tilde.team member, please add to your home directory a file with a random string which will be your auth key. +
+touch ~/.auth_key.grizzly;
+echo "password"\
+> ~/.auth_key.grizzly
+
+
+
+
+
+
+
+ +
+ + + diff --git a/index_v1.php b/index_v1.php new file mode 100644 index 0000000..0274348 --- /dev/null +++ b/index_v1.php @@ -0,0 +1,164 @@ + + + + + + + + Grizzly’s Space + + +
+
+ ~team + Security does not exist, no system is save + <- back to tilde.team +
+
+
+

Hi, I'm Grizzly!

+ Have a great day! :) + +
+
+   _________________
+  < Hello, everyone >
+   -----------------
+    \
+     \
+         ___
+       {~._.~}
+        ( Y )
+       ()~*~()
+       (_)-(_)
+  
+
+

botany: my plant

+ +
+
+ +
+

mail/xmpp: grizzly /at/ this domain

+

+ grizzly.tilde.team | + tilde.team/~grizzly +

+

+ gemini://grizzly.flounder.online/ +

+
+
+
+ +
+ + + diff --git a/twtxt.txt b/twtxt.txt new file mode 100644 index 0000000..81374ee --- /dev/null +++ b/twtxt.txt @@ -0,0 +1,14 @@ +# _ _ +# __ _ _ __(_)_______| |_ _ +# / _` | '__| |_ /_ / | | | | +# | (_| | | | |/ / / /| | |_| | +# \__, |_| |_/___/___|_|\__, | +# |___/ |___/ +# +# nick = grizzly +# email: grizzly@ttm.sh +# +# web: https://grizzly.ttm.sh/ +# gemini: gemini://tilde.team/~grizzly + +2022-03-17T17:39:04+01:00 Hey, this is my first twtxt! :)