summaryrefslogtreecommitdiff
path: root/tos.php
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-12-10 18:23:30 +0500
committerilotterytea <iltsu@alright.party>2025-12-10 18:23:30 +0500
commitf7506dd67c1e376eb41c7b5c6e05d8a6fefa96ee (patch)
tree7d8da74f4c2ad2e86edcc9f0b7f28b412950b749 /tos.php
parent0891b1fb605a0244a3f034ebdd528b4b57fa35f2 (diff)
feat: terms of service page
Diffstat (limited to 'tos.php')
-rw-r--r--tos.php44
1 files changed, 44 insertions, 0 deletions
diff --git a/tos.php b/tos.php
new file mode 100644
index 0000000..d410555
--- /dev/null
+++ b/tos.php
@@ -0,0 +1,44 @@
+<?php
+include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/config.php";
+include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/partials.php";
+include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/accounts.php";
+
+authorize_user();
+
+$contents = "";
+
+$path = "{$_SERVER['DOCUMENT_ROOT']}/static/txt/TOS.txt";
+
+$contents = "<p>No rules!</p>";
+$last_updated = "Never";
+
+if (is_file($path)) {
+ $contents = file_get_contents($path);
+ $last_updated = date("F d, Y", filemtime($path));
+}
+?>
+
+<html>
+
+<head>
+ <title>Terms of Service - <?= CONFIG['instance']['name'] ?></title>
+ <link rel="shortcut icon" href="/static/favicon.ico" type="image/x-icon">
+ <link rel="stylesheet" href="/static/style.css">
+</head>
+
+<body>
+ <div class="container">
+ <div class="wrapper">
+ <?php html_navigation_bar() ?>
+ <div class="content row">
+ <div class="sidebar" style="min-width: 300px;"></div>
+ <div class="content">
+ <h1>Terms of Service (Last updated: <?= $last_updated ?>)</h1>
+ <?= $contents ?>
+ </div>
+ </div>
+ </div>
+ </div>
+</body>
+
+</html> \ No newline at end of file