forked from dexX7/mastercoin-faucet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgithub-intro.php
47 lines (35 loc) · 2.01 KB
/
github-intro.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
<?php include("header.php"); ?>
<!-- GitHub intro -->
<?php
require_once("inc/config.php");
require_once("inc/security.php");
require_once("inc/GitHubConnector.php");
$uid = generateUid();
registerReferrer("github");
registerUid($uid);
$connector = new GitHubConnector($gitClientId, $gitClientSecret, $gitRedirectUrl);
$url = $connector->getAuthUrl($uid);
?>
<span class="description">
<p>Great, you chose <strong>GitHub</strong> as authentication method. You can earn <strong>$0.5 worth of
Mastercoin</strong> with this method, but you need either at least <strong>three public repositories</strong>
and your account must be <strong>older than August 1, 2013</strong> or you are stared on one of the
<a href="http://wiki.mastercoin.org/index.php/FAQ#Is_Mastercoin_open_source.3F"><strong>Mastercoin GitHub
repositories</strong></a>. Don't worry, we don't want your data - this is solely a protection against abuse,
so we are able to give out <strong>free MCS</strong> to as many interested people as possible.</p>
<p>If you go on, you will be forwarded to <strong>GitHub</strong>. There you need to grant access to an
application called <strong>Mastercoin faucet</strong>. You will be redirected to this page, after you finished
the process. You can revoke the access later <a href="https://github.com/settings/applications" target="_blank">
<strong>here</strong></a>.</p>
<p>Please <a href="<?php echo $url; ?>"><strong>click here</strong></a> to initiate the
<strong>authentication</strong>, if you like to proceed.</p>
</span>
<div class="thumbnail">
<div class="row">
<div class="col-sm-6"><img class="preview" src="img/authgithub.png" alt="GitHub authentication" ></div>
<div class="col-sm-6"><img class="preview" src="img/authgithubdone.png" alt="Successful authentication"></div>
</div>
</div>
<p>Or <a href="/"><strong>go back</strong></a> instead.</p>
<!-- /GitHub intro -->
<?php include("footer.php"); ?>