-
Notifications
You must be signed in to change notification settings - Fork 1
/
login.php
164 lines (148 loc) · 4.44 KB
/
login.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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<?php
// Denied direct access.
defined('ABSPATH') or die("You is bot, spam, .v..v..");
?>
<?php
$form_html = '
<style type="text/css">
html {
background: #fff;
}
body {
background-color: ' . $protect_ais['bg_color'] . ';
background-image: url(' . $protect_ais['brand_bg'] . ');
background-size: cover;
background-position: center center;
color: ' . $protect_ais['text_color'] . ';
font-family: "Open Sans", sans-serif;
width: auto;
-webkit-box-shadow: 0 0px 0px rgba(0,0,0,0.13);
box-shadow: 0 0px 0px rgba(0,0,0,0.13);
}
p{
color: ' . $protect_ais['text_color'] . ';
}
input{
padding: 10px;
min-width: 100%;
border: 1px solid #ccc;
min-height: 20px;
color: #000;
font-size: 16px;
border-radius: 2px;
margin: 10px auto;
}
form{
max-width:250px;
margin: 0 auto;
padding: calc(25% - 320px);
}
#error-page {
margin-top: 0;
margin: 0 auto;
width: 100%;
max-width: 100%;
padding: 50px 0 0;
height: calc(100vh - 50px);
}
#error-page p {
font-size: 14px;
line-height: 1.5;
margin: 0;
}
#error-page p.submit {
padding: 15px 0;
}
#error-page code {
font-family: Consolas, Monaco, monospace;
}
ul li {
margin-bottom: 10px;
font-size: 14px ;
}
a {
color: ' . $protect_ais['text_color'] . ';
text-decoration: none;
display: block;
}
a:hover {
color: ' . $protect_ais['text_color'] . ';
text-decoration: underline;
}
.button {
background: #f7f7f7;
border: 1px solid #cccccc;
color: #555;
display: inline-block;
text-decoration: none;
font-size: 13px;
line-height: 26px;
height: 28px;
margin: 0;
padding: 1px 10px 1px;
cursor: pointer;
-webkit-border-radius: 3px;
-webkit-appearance: none;
border-radius: 3px;
white-space: nowrap;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
min-width: 50px;
-webkit-box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba(0,0,0,.08);
box-shadow: inset 0 1px 0 #fff, 0 1px 0 rgba(0,0,0,.08);
vertical-align: top;
}
.button.button-large {
height: 29px;
line-height: 28px;
padding: 0 12px;
}
.button:hover,
.button:focus {
background: #fafafa;
border-color: #999;
color: #222;
}
.button:focus {
-webkit-box-shadow: 1px 1px 1px rgba(0,0,0,.2);
box-shadow: 1px 1px 1px rgba(0,0,0,.2);
}
.button:active {
background: #eee;
border-color: #999;
color: #333;
-webkit-box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 );
box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 );
}
.ais-image{
max-height: 200px; max-width: 270px;margin: 0 auto;display: inherit;padding: 0 0 20px;
}
</style>
<form name="loginform" id="loginform" action="' . get_bloginfo('url') . '" method="post">
';
if ($protect_ais['ais_image'] != NULL)
$form_html .= '<a href="' . get_bloginfo('url') . '"><img src="' . $protect_ais['ais_image'] . '" class="ais-image"></a><br>';
$form_html .= '
<p>
<input type="hidden" name="ggcap_key" value="ais-login" size="20">
<label for="user_login">Username<br>
<input type="text" name="ais_login" id="user_login" class="input" value="" size="20"></label>
</p>
<p>
<label for="user_pass">Password<br>
<input type="password" name="ais_pass" id="user_pass" class="input" value="" size="20"></label>
</p>
<div class="g-recaptcha" data-sitekey="' . $site_key . '" style="transform:scale(0.90);-webkit-transform:scale(0.90);transform-origin:0 0;-webkit-transform-origin:0 0;"></div>
<script type="text/javascript"
src="https://www.google.com/recaptcha/api.js?hl=<?php echo $lang; ?>">
</script>
<p><a href="' . get_bloginfo('url') . '/wp-login.php?action=lostpassword">' . __('Lost your password?', 'Protect_Ais') . '</p>';
if ($user_reg == '1'):
$form_html .= '<p><a href="' . get_bloginfo('url') . '/wp-login.php?action=register">' . __('Register', 'Protect_Ais') . '</p>';
endif;
$form_html .= '<p class="submit">
<input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="Log In">
</p>
</form>';
?>