forked from dexX7/mastercoin-faucet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
google.php
79 lines (60 loc) · 2.87 KB
/
google.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
75
76
77
78
79
<?php
include("header.php");
include("inc/state_google.php");
?>
<!-- Google callback -->
<?php if($result == "STATE_VALID") { ?>
<div class="alert alert-success">
<strong>Well done!</strong> Welcome back from <strong>Google</strong>, <?php echo $name; ?>.
</div>
<span class="description">
<p>You are <strong>qualified</strong> for this reward. :)</p>
</span>
<br />
<p>Please enter your <strong>Mastercoin address</strong> and click <strong>submit</strong> to claim your bounty:</p>
<form class="navbar-form navbar-left" role="form" action="/claim" method="post">
<div class="form-group">
<input name="address" type="text" class="form-control" placeholder="Your address" style="width: 400px;"
autofocus required>
</div>
<input name="formid" type="hidden" value="<?php echo $formid; ?>">
<button type="submit" class="btn btn-success">Submit</button>
</form>
<br /><br /><br /><br /><br />
<p>Or <a href="/"><strong>go back</strong></a> to the frontpage.</p>
<?php } else if($result == "STATE_ALREADY_CLAIMED") { ?>
<div class="alert alert-warning">
<strong>Hmm...!</strong> You already claimed this reward.
</div>
<span class="description">
<p>It looks like you already have claimed your reward on <strong><?php echo $txtimestamp; ?></strong>.</p>
<p>You can lookup the transaction and all further details on:</p>
</span>
<ul>
<li><a href="http://mastercoin-explorer.com/transactions/<?php echo $txid; ?>" target="_blank">
<strong>mastercoin-explorer.com</strong></a></li>
<li><a href="https://masterchest.info/lookuptx.aspx?txid=<?php echo $txid; ?>" target="_blank">
<strong>masterchest.info</strong></a></li>
</ul>
<p>If you are certain that you never claimed this reward, please contact us via <a href="mailto:[email protected]">
<strong>email</strong></a>.</p>
<br /><br /><br />
<p><a href="/"><strong>Go back</strong></a> to the frontpage.</p>
<?php } else { ?>
<div class="alert alert-danger">
<strong>Oh noes!</strong> There seems to be a problem.. :(
</div>
<span class="description">
<p>There are several reasons why you might see this.</p>
<p>For example you declined the authorisation or your session is no longer valid, because you refreshed
this website.</p>
<p>You can <a href="/google-intro"><strong>click here</strong></a> to start the authentication via
<strong>Google</strong> again.</p>
<p>If you think there shouldn't be an error, please contact us via <a href="mailto:[email protected]">
<strong>email</strong></a>.</p>
</span>
<br /><br /><br />
<p>Or <a href="/"><strong>go back</strong></a> to the frontpage.</p>
<?php } ?>
<!-- /Google callback -->
<?php include("footer.php"); ?>