summaryrefslogtreecommitdiff
path: root/rules.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 /rules.php
parent0891b1fb605a0244a3f034ebdd528b4b57fa35f2 (diff)
feat: terms of service page
Diffstat (limited to 'rules.php')
-rw-r--r--rules.php50
1 files changed, 0 insertions, 50 deletions
diff --git a/rules.php b/rules.php
deleted file mode 100644
index 84e2b25..0000000
--- a/rules.php
+++ /dev/null
@@ -1,50 +0,0 @@
-<?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 = sprintf("%s/%s/txt/RULES", $_SERVER["DOCUMENT_ROOT"], INSTANCE_STATIC_FOLDER);
-
-if (is_file($path)) {
- $contents = file_get_contents($path);
- $contents = explode("\n", $contents);
-}
-?>
-
-<html>
-
-<head>
- <title>The Rules of <?= 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>The Rules of <?= CONFIG['instance']['name'] ?></h1>
- <ol>
- <?php
- foreach ($contents as $line) {
- echo "<li>$line</li>";
- }
- if (empty($contents)) {
- echo "<i>No rules!</i>";
- }
- ?>
- </ol>
- </div>
- </div>
- </div>
- </div>
-</body>
-
-</html> \ No newline at end of file