-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
63 lines (53 loc) · 3.12 KB
/
Copy pathindex.php
File metadata and controls
63 lines (53 loc) · 3.12 KB
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
<?php
include "./config.php";
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title><?php echo $sitename ?></title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.3.1/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/pace/1.0.2/themes/black/pace-theme-flash.min.css">
<link href="https://fonts.googleapis.com/css?family=Barlow+Semi+Condensed&display=swap" rel="stylesheet" />
<link href="https://cdn.jsdelivr.net/npm/@sweetalert2/theme-dark/dark.css" rel="stylesheet">
<link rel="stylesheet" href="assets/css/main.css">
<link rel="icon" href="<?php echo $siteicon ?>">
</head>
<body>
<div class="container">
<h2 class="display-4" style="color: rgba(255,255,255,1);text-align: center; margin-top: 100px; font-family: Barlow Semi Condensed;font-weight: Medium;font-size: 56px;"><?php echo $sitename ?></h2>
<p class="lead" style="color: rgba(255,255,255,1);text-align: center; font-family: Barlow Semi Condensed;font-weight: Medium;font-size: 20px;"><?php echo $sitecaption ?></p>
<form class="text-left" id="generator" method="POST" style="margin-top: 60px;">
<div class="form-group">
<label for="type" style="color: rgba(255,255,255,1);text-align: center; font-family: Barlow Semi Condensed;font-weight: Medium;font-size: 18px;">Account type:</label>
<select class="form-control" id="type" name="type">
<?php for ($i=0; $i < count($account_file); $i++) {
echo '<option value="'.$account_file[$i].'">'.$account_name[$i].'</option>';
}?>
</select>
</div>
<button class="btn btn-dark btn-lg" style="margin-top: 7px; margin-left: 2px; background-image: linear-gradient(45deg, #251851 10%, #372282 90%); border: 0.4px solid #ffff; border-radius: 6px; font-size: 15px;" onclick="generateAccounts();">Generate</button>
</form>
<?php
function random_strings($length_of_string)
{
$str_result = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
return substr(str_shuffle($str_result),
0, $length_of_string);
}
$x_csrf_token = base64_encode(''.random_strings(5).'KOaoub'.$sitename.''.random_strings(5).'');
$removeaf = str_replace("="," ",$x_csrf_token);
$csrf_token = base64_encode(''.random_strings(10).''.$siteowner.''.random_strings(5).'');
$removeaf2 = str_replace("="," ",$csrf_token);
?>
<input type="hidden" id="xcsrf" value=<?php echo $removeaf?>/>
<input type="hidden" id="csrf_token" value=<?php echo $removeaf2?>/>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pace/1.0.2/pace.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2/dist/sweetalert2.min.js"></script>
<script src="assets/js/main.js"></script>
</body>
</html>