forked from M4ko1339/Registration-Page
-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.php
84 lines (71 loc) · 2.65 KB
/
index.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
<?php
include('inc/db.php');
include('inc/functions.php');
session_start();
?>
<html>
<head>
<title>帐号注册</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- CSS Stylesheets -->
<link rel="stylesheet" type="text/css" href="css/foundation.css" media="screen" />
<link rel="stylesheet" type="text/css" href="css/font-awesome.css" media="screen" />
<link rel="stylesheet" type="text/css" href="css/main.css" media="screen" />
<link rel="stylesheet" type="text/css" href="css/content.css" media="screen" />
<link rel="stylesheet" type="text/css" href="css/fonts.css" media="screen" />
<link rel="stylesheet" type="text/css" href="css/colors.css" media="screen" />
</head>
<body>
<div class="row">
<div class="content">
<div class="content-logo">
熔火<span class="orange">之心</span>
</div>
<div class="content-box">
<div class="content-box-content">
<form method="POST">
<label class="orange">用户名</label>
<input type="text" name="username" />
<label class="orange">邮箱</label>
<input type="text" name="email" />
<label class="orange">密码</label>
<input type="password" name="password" />
<label class="orange">确认密码</label>
<input type="password" name="re-password" />
<label class="orange">验证码</label>
<input type="text" name="captcha" placeholder="请输入图片中的验证码"/>
<center>
<!--<div class="g-recaptcha" data-sitekey="<?php echo CAPTCHA_CLIENT_ID; ?>"></div>
<br>-->
<img id="captcha" src="img/captcha.png" onclick="refreshCaptcha()" width="200" height="200"><br/>
<br>
<input type="submit" name="register" class="small button" value="注册" />
</center>
</form>
</div>
</div>
<div class="response">
<?php Register(); ?>
</div>
</div>
</div>
<!-- Javascript Files -->
<script type="text/javascript" src="js/vendor/jquery.js"></script>
<script type="text/javascript" src="js/vendor/what-input.js"></script>
<script type="text/javascript" src="js/vendor/foundation.js"></script>
<script type="text/javascript" src="js/app.js"></script>
<!-- <script type="text/javascript" src='https://www.google.com/recaptcha/api.js'></script> -->
<script>
$(document).ready(function(){
$("html,body").css("background","url(./img/bg-hd.jpg) no-repeat center center fixed");
});
function refreshCaptcha() {
$('#captcha').attr('src', 'getCaptcha.php?' + (new Date()).getTime());
}
refreshCaptcha();
</script>
</body>
</html>