blob: 16ce6ae1d185a3f601228308942dbf023550439a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
<?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();
$path = "{$_SERVER['DOCUMENT_ROOT']}/static/txt/PRIVACY.txt";
$contents = "<p>No privacy policy set!</p>";
$last_updated = "Never";
if (is_file($path)) {
$contents = file_get_contents($path);
$last_updated = date("F d, Y", filemtime($path));
}
?>
<html>
<head>
<title>Privacy Policy - <?= 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>Privacy Policy (Last updated: <?= $last_updated ?>)</h1>
<?= $contents ?>
</div>
</div>
</div>
</div>
</body>
</html>
|