From f7506dd67c1e376eb41c7b5c6e05d8a6fefa96ee Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Wed, 10 Dec 2025 18:23:30 +0500 Subject: feat: terms of service page --- emotes/upload.php | 5 ++--- index.php | 2 ++ rules.php | 50 -------------------------------------------------- static/txt/RULES | 2 -- static/txt/TOS.txt | 1 + tos.php | 44 ++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 49 insertions(+), 55 deletions(-) delete mode 100644 rules.php delete mode 100644 static/txt/RULES create mode 100644 static/txt/TOS.txt create mode 100644 tos.php diff --git a/emotes/upload.php b/emotes/upload.php index 58836d6..3c43b48 100644 --- a/emotes/upload.php +++ b/emotes/upload.php @@ -136,9 +136,8 @@ if ($_SERVER['REQUEST_METHOD'] != "POST") {
- +
diff --git a/index.php b/index.php index 6bc0503..b412cb4 100644 --- a/index.php +++ b/index.php @@ -88,6 +88,8 @@ authorize_user(); echo ')'; } ?> + + - Terms of Service

diff --git a/rules.php b/rules.php deleted file mode 100644 index 84e2b25..0000000 --- a/rules.php +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - The Rules of <?= CONFIG['instance']['name'] ?> - - - - - -
-
- -
- -
-

The Rules of

-
    - $line"; - } - if (empty($contents)) { - echo "No rules!"; - } - ?> -
-
-
-
-
- - - \ No newline at end of file diff --git a/static/txt/RULES b/static/txt/RULES deleted file mode 100644 index 0ec5b9e..0000000 --- a/static/txt/RULES +++ /dev/null @@ -1,2 +0,0 @@ -Hey, admin! Write your rules in /static/txt/RULES file. -If you see this, VI VON \ No newline at end of file diff --git a/static/txt/TOS.txt b/static/txt/TOS.txt new file mode 100644 index 0000000..2bd0e7a --- /dev/null +++ b/static/txt/TOS.txt @@ -0,0 +1 @@ +Please edit /static/txt/TOS.txt \ No newline at end of file diff --git a/tos.php b/tos.php new file mode 100644 index 0000000..d410555 --- /dev/null +++ b/tos.php @@ -0,0 +1,44 @@ +No rules!

"; +$last_updated = "Never"; + +if (is_file($path)) { + $contents = file_get_contents($path); + $last_updated = date("F d, Y", filemtime($path)); +} +?> + + + + + Terms of Service - <?= CONFIG['instance']['name'] ?> + + + + + +
+
+ +
+ +
+

Terms of Service (Last updated: )

+ +
+
+
+
+ + + \ No newline at end of file -- cgit v1.2.3