-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrecovery.php
180 lines (160 loc) · 7.64 KB
/
recovery.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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<?php
include('php/standartScriptPHP.php');
if(isset($_SESSION['login'])) {
$referer = 'index';
if(isset($_SESSION['referer'])) {
$referer = $_SESSION['referer'];
if($_SESSION['referer'] == 'none') {
$referer = 'index';
}
}
header("Location: $referer");
exit();
}
$dt38RrYA1o06bSvLhVvL = idGenerator(20,5); // login
$dxz3xh8JzW53jWeAGPu2 = idGenerator(20,5); // Name
$drEeskRsvXgLxkPdjojv = idGenerator(20,5); // Second name
$dZt18Z0p02okNhAWe6P5 = idGenerator(20,5); // Middle name
$dLoPqjAeV4zfHxSBFkOv = idGenerator(20,5); // Email
$dmZue1oVpLnsgmM3ViHL = idGenerator(20,5); // chb1
$dxNsVQKBWkwS0UDojbpZ = idGenerator(20,5); // chb2
?>
<!DOCTYPE html>
<html lang="ru" dir="ltr">
<head>
<meta charset="utf-8">
<title>Восстановление :: <?=$siteData['title']?></title>
<link rel="stylesheet" href="style/bootstrap.min.css" >
<link rel="stylesheet" href="style/main.css">
<link rel="stylesheet" href="style/footer.css">
<link rel="stylesheet" href="style/nav.css">
<link rel="stylesheet" href="style/window.css">
<link rel="stylesheet" href="style/notification.css">
<!-- re-captcha v3 -->
<script src="https://www.google.com/recaptcha/api.js?render=6LdKcfQUAAAAAMtb7qMKV1fs2rAIzLEeJp5UdFX9"></script>
<script>
var captcha3Token = undefined;
var theCaptchaToken = undefined; // copy of captcha3Token
var captcha3Interval = undefined;
var captcha2Rendered = false;
function captcha3GenToken(reload) {
grecaptcha.execute('6LdKcfQUAAAAAMtb7qMKV1fs2rAIzLEeJp5UdFX9', {action: 'login'}).then(function(token) {
captcha3Token = token;
theCaptchaToken = token;
});
if(typeof(reload) != 'undefined') {
if(typeof(captcha3Interval) != 'undefined') clearInterval(captcha3Interval);
captcha3Interval = setInterval(captcha3GenToken, 110000);
}
}
grecaptcha.ready(function() {
captcha3GenToken(true);
});
</script>
<?php include('standartScriptJS.php'); ?>
<script type="text/javascript" src="js/recovery.js"></script>
<script type="text/javascript">
$(document).ready(function() {
Recovery.field.input = '<?=$dt38RrYA1o06bSvLhVvL;?>';
Recovery.field.code = '<?=$dxz3xh8JzW53jWeAGPu2;?>';
Recovery.field.pass1 = '<?=$drEeskRsvXgLxkPdjojv;?>';
Recovery.field.pass2 = '<?=$dZt18Z0p02okNhAWe6P5;?>';
$('#' + Recovery.field.code).on('input', function() {
Recovery.setStage();
});
});
</script>
<script><?php /*foreach($_SESSION as $key => $value) { echo("console.log('$key: $value'); "); }*/ ?></script>
</head>
<body class='register'>
<!-- Window (start) -->
<?php include('windows.php'); ?>
<!-- Window (end) -->
<?php
if(!isset($_COOKIE['cookies_accepted'])) {
//include('cookies.php');а
echo(file_get_contents('cookies.html'));
}
?>
<notifications></notifications>
<div class='register-block'>
<div class="window-container-preloader"></div>
<div class='window-container'>
<div class='window-container-title' style='text-align: center; max-width: 100%;'>Восстановление</div>
<span id='recoveryStageFirst' style='overflow: hidden; max-height: 9999px; display: block;'>
<label class='input' for="<?=$dt38RrYA1o06bSvLhVvL;?>">
<div class='input-div'>
<label for="<?=$dt38RrYA1o06bSvLhVvL;?>" class='input-icons icons-user'></label>
<input type="text" class='input-input' required id='<?=$dt38RrYA1o06bSvLhVvL;?>'>
<label for="<?=$dt38RrYA1o06bSvLhVvL;?>" class='input-placeholder'>Логин или почта</label>
<label for="<?=$dt38RrYA1o06bSvLhVvL;?>" class='input-line'>
<label for="<?=$dt38RrYA1o06bSvLhVvL;?>" class='input-line-main0'></label>
<label for="<?=$dt38RrYA1o06bSvLhVvL;?>" class='input-line-main'></label>
<label for="<?=$dt38RrYA1o06bSvLhVvL;?>" class='input-line-main2'></label>
</label>
</div>
</label>
<div class='recoveryRepeatMsg' id='recoveryRepeatMsg'> </div><!--Отправить можно будет через: 90 сек-->
<span id='recoveryStageSecond' style='overflow: hidden; max-height: 0px; display: block;'>
<label class='input' for="<?=$dxz3xh8JzW53jWeAGPu2;?>">
<div class='input-div'>
<label for="<?=$dxz3xh8JzW53jWeAGPu2;?>" class='input-icons icons-lock'></label>
<input type="code" class='input-input' required id='<?=$dxz3xh8JzW53jWeAGPu2;?>'>
<label for="<?=$dxz3xh8JzW53jWeAGPu2;?>" class='input-placeholder'>Код</label>
<label for="<?=$dxz3xh8JzW53jWeAGPu2;?>" class='input-line'>
<label for="<?=$dxz3xh8JzW53jWeAGPu2;?>" class='input-line-main0'></label>
<label for="<?=$dxz3xh8JzW53jWeAGPu2;?>" class='input-line-main'></label>
<label for="<?=$dxz3xh8JzW53jWeAGPu2;?>" class='input-line-main2'></label>
</label>
</div>
</label>
</span>
</span>
<span id='recoveryStageThird' style='overflow: hidden; max-height: 0px; display: block;'>
<label class='input' for="<?=$drEeskRsvXgLxkPdjojv;?>">
<div class='input-div'>
<label for="<?=$drEeskRsvXgLxkPdjojv;?>" class='input-icons icons-lock'></label>
<input type="password" class='input-input' required id='<?=$drEeskRsvXgLxkPdjojv;?>'>
<label for="<?=$drEeskRsvXgLxkPdjojv;?>" class='input-placeholder'>Пароль</label>
<label for="<?=$drEeskRsvXgLxkPdjojv;?>" class='input-line'>
<label for="<?=$drEeskRsvXgLxkPdjojv;?>" class='input-line-main0'></label>
<label for="<?=$drEeskRsvXgLxkPdjojv;?>" class='input-line-main'></label>
<label for="<?=$drEeskRsvXgLxkPdjojv;?>" class='input-line-main2'></label>
</label>
</div>
</label>
<label class='input' for="<?=$dZt18Z0p02okNhAWe6P5;?>">
<div class='input-div'>
<label for="<?=$dZt18Z0p02okNhAWe6P5;?>" class='input-icons icons-lock'></label>
<input type="password" class='input-input' required id='<?=$dZt18Z0p02okNhAWe6P5;?>'>
<label for="<?=$dZt18Z0p02okNhAWe6P5;?>" class='input-placeholder'>Пароль</label>
<label for="<?=$dZt18Z0p02okNhAWe6P5;?>" class='input-line'>
<label for="<?=$dZt18Z0p02okNhAWe6P5;?>" class='input-line-main0'></label>
<label for="<?=$dZt18Z0p02okNhAWe6P5;?>" class='input-line-main'></label>
<label for="<?=$dZt18Z0p02okNhAWe6P5;?>" class='input-line-main2'></label>
</label>
</div>
</label>
</span>
<span style='display: block; height: 250px;'></span>
<div class='login-btn-login'>
<input type='button' id='recovery-btn' onclick="Recovery.check();" class='window-btn' style='z-index: 0; position: relative; width: 100%; padding-top: 6px; padding-bottom: 6px; margin-top: 20px; margin-bottom: 0px;' value='Отправить код'>
<div class='login-btn-register' style='margin-bottom: -20px; margin-top: 15px;'>
<div>Нет аккаунта?</div>
<a href="register.php">Регистрация</a>
</div>
</div>
</div>
<div class='register-preloader'>
<div class='login-preloader-elem1'></div>
<div class='login-preloader-elem2'></div>
<div class='login-preloader-elem3'></div>
<div class='login-preloader-elem11'></div>
<div class='login-preloader-elem22'></div>
<div class='login-preloader-elem33'></div>
<div class='login-preloader-elem4'></div>
</div>
<div class='register-logo'></div>
</div>
</body>
</html>