-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathsent.php
More file actions
64 lines (53 loc) · 1.47 KB
/
sent.php
File metadata and controls
64 lines (53 loc) · 1.47 KB
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
<?php
include("login.php");
include("coinhandler.php");
if (!isset($_SESSION['username'])){header("Location: home.php");}
?>
<!doctype html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="stylesheet2.css">
<meta charset="utf-8">
<title>BitWallet -The Online Bitcoin Wallet</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
{
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>');
}
?>
</div>
<div id="main">
<h3>Withdrawal success</h3>
<p>The coins have successfully been withdrawn from your account. Note: it may take up to several hours for the transaction to appear in the blockchain.</p>
</div>
</div>
<div id="footer"><p>BitWallet 2015</p></div>
</body>
</html>