-
Notifications
You must be signed in to change notification settings - Fork 21
/
home.php
74 lines (57 loc) · 1.71 KB
/
home.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?php
include("login.php");
if (isset($_SESSION['username'])){
include("coinhandler.php");}
?>
<!doctype html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="stylesheet2.css">
<meta charset="utf-8">
<title>BitWallet - the Online Bitcoin Wallet Service</title>
</head>
<body>
<div id="headBar"><p class="logoFont">BitWallet</p></div>
<div id="userInfo"><?php
if (isset($_SESSION['username']))
{
echo('<p>Welcome, <b>'.$_SESSION['username'].'</b>! Your current balance is: '.$balance.' BTC</p>');
}
else
{
echo('<p>User not logged in.</p>');
}
?>
</div>
<div id="container">
<div id="nav">
<?php
if (isset($_SESSION['username']))
{
echo('
- <a href="deposit.php">Deposit</a><br>
- <a href="withdraw.php">Withdraw</a><br>
- <a href="accountsettings.php">Account Settings</a><br>
- <a href="logout.php">Log out</a>');
}
else
//display login form
{
echo('<p>Log in:</p><form action="login.php" method="post">
<p>Username:</p> <input name="username" type="text" />
<p>Password:</p> <input name="password" type="password" />
<input type="submit" value="Go" /></form>
</p><a href="registrationform.php">Register</a></p>');
}
?>
</div>
<div id="main">
<p>Welcome to BitWallet, an online bitcoin wallet service!</p>
<h5>How it works</h5>
<p>Simply put, BitWallet allows you to store your bitcoins online, so that you can access them from anywhere from one location!</p>
<p>Interested? <a href="registrationform.php">Register</a> here!</p>
</div>
</div>
<div id="footer"><p>BitWallet 2015</p></div>
</body>
</html>