-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
signup.php
121 lines (112 loc) · 6.48 KB
/
signup.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<?php
session_start();
require_once "config.php";
?>
<!doctype html>
<!--
* CykaDA - Cyka PHP Billing Portal
* CykaDA Owned By CykaNetwork
* SiteNexus is a sub-company by CykaNetwork
-->
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Sign Up</title>
<script src="https://js.hcaptcha.com/1/api.js" async defer></script>
<!-- CSS files -->
<link href="./dist/css/tabler.min.css?1674944402" rel="stylesheet" />
<link href="./dist/css/tabler-flags.min.css?1674944402" rel="stylesheet" />
<link href="./dist/css/tabler-payments.min.css?1674944402" rel="stylesheet" />
<link href="./dist/css/tabler-vendors.min.css?1674944402" rel="stylesheet" />
<link href="./dist/css/demo.min.css?1674944402" rel="stylesheet" />
<style>
@import url('https://rsms.me/inter/inter.css');
:root {
--tblr-font-sans-serif: 'Inter Var', -apple-system, BlinkMacSystemFont, San Francisco, Segoe UI, Roboto, Helvetica Neue, sans-serif;
}
body {
font-feature-settings: "cv03", "cv04", "cv11";
}
</style>
</head>
<body class=" d-flex flex-column">
<script src="./dist/js/demo-theme.min.js?1674944402"></script>
<div class="page page-center">
<div class="container container-tight py-4">
<div class="text-center mb-4">
<a href="." class="navbar-brand navbar-brand-autodark"><img src="./static/logo.svg" height="36" alt=""></a>
</div>
<div class="card card-md">
<div class="card-body">
<h2 class="h2 text-center mb-4">Register your account</h2>
<?php if (isset($_SESSION["message"])) { ?>
<div class="alert alert-<?php echo $_SESSION["message"]["type"] ?? "error" ?>" role="alert">
<h4 class="alert-title"><?php echo $_SESSION["message"]["title"]; ?></h4>
<div class="text-muted"><?php echo $_SESSION["message"]["message"]; ?></div>
</div>
<?php }
$_SESSION["message"] = null ?>
<form action="./api/signup.php" method="get" autocomplete="off" novalidate>
<div class="mb-3">
<label class="form-label">Username</label>
<input type="text" name="username" class="form-control" placeholder="John" autocomplete="off">
</div>
<div class="mb-3">
<label class="form-label">Email address</label>
<input type="email" name="email" class="form-control" placeholder="your@email.com" autocomplete="off">
</div>
<div class="mb-2">
<div class="input-group input-group-flat">
<input name="password" type="password" class="form-control" placeholder="Your password" autocomplete="off">
<span class="input-group-text">
<a href="#" class="link-secondary" title="Show password" data-bs-toggle="tooltip"><!-- Download SVG icon from http://tabler-icons.io/i/eye -->
<svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
<path d="M12 12m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0" />
<path d="M22 12c-2.667 4.667 -6 7 -10 7s-7.333 -2.333 -10 -7c2.667 -4.667 6 -7 10 -7s7.333 2.333 10 7" />
</svg>
</a>
</span>
</div>
</div>
<div class="mb-2">
<label class="form-check">
<input type="checkbox" class="form-check-input" />
<span class="form-check-label">Remember me on this device</span>
</label>
</div>
<div class="form-footer">
<div class="h-captcha" data-sitekey="<?php echo hCaptchaSiteKey ?>"></div>
<button type="submit" class="btn btn-primary w-100">Sign up</button>
</div>
</form>
</div>
<div class="hr-text">or</div>
<div class="card-body">
<div class="row">
<div class="col"><a href="<?php
echo "https://github.com/login/oauth/authorize?client_id=" . gh_cid."&redirect_uri=" . billingPortalPath . "/api/githubOauth2sign.php&scope=user:email"
?>" class="btn w-100">
<!-- Download SVG icon from http://tabler-icons.io/i/brand-github -->
<svg xmlns="http://www.w3.org/2000/svg" class="icon text-github" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
<path d="M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5" />
</svg>
Sign Up with Github
</a></div>
</div>
</div>
</div>
<div class="text-center text-muted mt-3">
have account yet? <a href="./login.php" tabindex="-1">Login</a>
</div>
</div>
</div>
<!-- Libs JS -->
<!-- Tabler Core -->
<script src="./dist/js/tabler.min.js?1674944402" defer></script>
<script src="./dist/js/demo.min.js?1674944402" defer></script>
</body>
</html>