-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
42 lines (42 loc) · 1.55 KB
/
index.php
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
require_once "util/session.php";
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Budgeting system</title>
<?php require_once "component/head.php"; ?>
<link rel="manifest" href="manifest.json">
</head>
<body>
<?php require_once "component/header.php"; ?>
<?php if (isset($_SESSION["user_id"])) { ?>
<?php require_once "util/require_login.php"; ?>
<p class="msg msg--info">
<b>Welcome, <?php echo htmlspecialchars($CURRENT_USER->username) ?></b>
</p>
<?php } else { ?>
<p class="msg msg--info">
<strong>
You are not logged in. Log in to use the full functionality of this app.
</strong>
</p>
<?php } ?>
<p>Here you can track your spending and earnings (under Transactions), and see statistics (under Stats)</p>
<p>Click on the menu to get started</p>
<p>Or, use these shortcuts:</p>
<ul>
<li><a href="transactions.php" class="btn btn-sm btn-a">Transactions</a></li>
<li><a href="stats.php" class="btn btn-sm btn-a">Stats</a></li>
<li><a href="edit_transaction.php?new" class="btn btn-sm btn-b">Add transaction</a></li>
</ul>
<p>
On Chrome for Android, you can click the three dots in the top right corner,
and then "Add to homescreen" to add an icon to your homescreen that will open this app.
On Android 7.1 and higher, you can long-press the icon to see a list of shortcuts directly from your homescreen.
</p>
</body>
</html>