From b62ba9a6b7a17dd85ea2f8dd20ccc08187c0de62 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Wed, 10 Dec 2025 18:27:01 +0500 Subject: feat: privacy policy page --- index.php | 1 + privacy.php | 42 ++++++++++++++++++++++++++++++++++++++++++ static/txt/PRIVACY.txt | 1 + tos.php | 2 -- 4 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 privacy.php create mode 100644 static/txt/PRIVACY.txt diff --git a/index.php b/index.php index b412cb4..a4733e4 100644 --- a/index.php +++ b/index.php @@ -90,6 +90,7 @@ authorize_user(); ?> - Terms of Service + - Privacy Policy

diff --git a/privacy.php b/privacy.php new file mode 100644 index 0000000..16ce6ae --- /dev/null +++ b/privacy.php @@ -0,0 +1,42 @@ +No privacy policy set!

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

Privacy Policy (Last updated: )

+ +
+
+
+
+ + + \ No newline at end of file diff --git a/static/txt/PRIVACY.txt b/static/txt/PRIVACY.txt new file mode 100644 index 0000000..e200c20 --- /dev/null +++ b/static/txt/PRIVACY.txt @@ -0,0 +1 @@ +Please edit /static/txt/PRIVACY.txt \ No newline at end of file diff --git a/tos.php b/tos.php index d410555..08c1769 100644 --- a/tos.php +++ b/tos.php @@ -5,8 +5,6 @@ include_once "{$_SERVER['DOCUMENT_ROOT']}/lib/accounts.php"; authorize_user(); -$contents = ""; - $path = "{$_SERVER['DOCUMENT_ROOT']}/static/txt/TOS.txt"; $contents = "

No rules!

"; -- cgit v1.2.3