-
Notifications
You must be signed in to change notification settings - Fork 8
/
wallet.php
58 lines (57 loc) · 2.1 KB
/
wallet.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php include 'app/includes/header.php';?>
<?php
/* We first check if the user is logged in, before we show him tha page.
* Users who are not logged in are redirected back to the login page.
*/
if (!User::isLoggedIn()) {
Redirect::phpRedirect("start");
}
/* Check if the user has made a logout request. */
if (isset($_GET['logout'])) {
User::logOutUser();
}
?>
<div class="top-container">
<div class="row">
<div class="large-10 large-centered columns">
<img src="content/img/bow-small.png" class="logo"/>
<span class="user-logout">
Welcome
<span data-tooltip aria-haspopup="true" class="has-tip" title="Last login at <?php echo $_SESSION['user']['lastLogin'] . ' from ' . $_SESSION['user']['lastIP']; ?>">
<?php echo $_SESSION['user']['username'];?>
</span>
<a class="logout" href="wallet?logout">Log out <i class="fa fa-sign-out"></i></a>
</span>
</div>
</div>
</div>
<div class="main-content">
<div class="row">
<div class="large-10 large-centered columns">
<dl class="tabs" data-tab>
<dd class="active"><a href="#dashboard"><i class="fa fa-tachometer"></i> Dashboard</a></dd>
<dd><a href="#sendreceive"><i class="fa fa-paper-plane"></i> Send & Receive</a></dd>
<dd><a href="#accounts"><i class="fa fa-btc"></i> Addresses</a></dd>
<dd><a href="#transactions"><i class="fa fa-history"></i> Transactions</a></dd>
<dd><a href="#profile"><i class="fa fa-user"></i> Profile</a></dd>
</dl>
<div class="tabs-content">
<div class="content active" id="dashboard">
<?php include 'app/includes/dashboard.php'; ?>
</div>
<div class="content" id="accounts">
<?php include 'app/includes/addresses.php'; ?>
</div>
<div class="content" id="transactions">
<?php include 'app/includes/transactions.php'; ?>
</div>
<div class="content" id="profile">
<?php include 'app/includes/profile.php'; ?>
</div>
<div class="content" id="sendreceive">
<?php include 'app/includes/sendreceive.php'; ?>
</div>
</div>
</div>
</div>
</div>