-
Notifications
You must be signed in to change notification settings - Fork 1
/
purchase.php
252 lines (193 loc) · 8.26 KB
/
purchase.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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Title bar -->
<title>Sixthworks</title>
<link rel="icon" href="media/sixthworks_transparent.ico" type="image/x-icon">
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="css/main.css">
<!-- JS -->
<script src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/js/bootstrap.bundle.min.js"></script>
<!-- Recaptcha -->
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
</head>
<body>
<?php
// Security
require __DIR__ . '/backend/utils/rate_limit.php';
// Account manager
include __DIR__ . '/backend/utils/accounts.php';
// Cookies
session_start();
// Globals
$ALLOW = false;
$ROW = null;
if (isset($_SESSION['logged_in']) && $_SESSION['logged_in'])
{
// Username and password
$USERNAME = (isset($_SESSION['username']) ? $VALIDATION_MANAGER->test_input($_SESSION['username']) : '');
$PASSWORD = (isset($_SESSION['password']) ? $VALIDATION_MANAGER->test_input($_SESSION['password']) : '');
// Try to get the row based on the cookie information
$ROW = DB::queryFirstRow("SELECT * FROM accounts WHERE username=%s", $USERNAME);
if ($ROW != null)
{
// Passwords match?
$COMPARISON = $ACCOUNT_MANAGER->compare_passwords($ROW, $PASSWORD);
$ALLOW = $COMPARISON;
}
}
?>
<!-- Navbar -->
<div class="d-flex flex-column flex-md-row align-items-center p-2 px-md-4 mb-3 bg-dark border-bottom box-shadow">
<h5 class="my-0 mr-md-auto font-weight-normal"><a class="text-white" href="<?php echo $OTHER_MANAGER->get_url() ?>">Sixthworks</a></h5>
<nav class="my-2 my-md-0 mr-md-3">
<a class="p-2 text-white" href="https://discord.gg/Rxm28E8jGa">Discord</a>
<a class="p-2 text-white" href="/tos">Terms of service</a>
</nav>
<?php
if ($ALLOW)
{
?>
<a class="btn btn-outline-success" href="/account">Dashboard</a>
<?php
}
else
{
?>
<a class="btn btn-outline-primary" href="/account">Sign in</a>
<?php
}
?>
</div>
<!-- Centered div -->
<div class="align-items-center">
<div class="container pb-3">
<img class="img-fluid mb-3" style="width:100%;min-height:100px;" src="media/sixthworks_bay.png">
<blockquote class="blockquote">
Better than ever cheat provider, best & stable code, fully working features for *very cheap*
<figcaption class="blockquote-footer mb-0 font-italic">
Tomas Curda
</figcaption>
</blockquote>
<p>Sixthworks is your solution for modding and cheating in games. For 2 years, we have been developing a stable service to meet the hacking needs for our favorite games. Thanks for the funding of our users, the project is certain to stay forever. Sixthworks is intended to be a non-profit project, but operation expenses must be covered. Unlike other providers, we actually care about the product and have good & stable code.</p>
<!-- Separator -->
<hr>
<?php
foreach (array_keys($MENU_DATA['games']) as $GAME)
{
// Validate
if (array_key_exists($GAME, $RESELLERS_DATA))
{
$TABLE = $RESELLERS_DATA[$GAME];
$NAME = $MENU_DATA['games'][$GAME]['full_name'];
echo "<h3 class='mb-2'>$NAME</h3>";
$i = 0;
foreach (array_keys($TABLE) as $RESELLER)
{
echo '<div class="mb-3">';
echo "<h5><i>$RESELLER</i></h5>";
// Methods
$METHODS = $TABLE[$RESELLER]['methods'];
// Keys
$KEYS = array_keys($METHODS);
foreach ($KEYS as $METHOD)
{
$LINK = $METHODS[$METHOD]['url'];
$PRICE = $METHODS[$METHOD]['price'];
$STR = "<a href='$LINK' target='_blank' rel='noopener'>$METHOD</a>";
$BADGE = empty($PRICE) ? "secondary" : "success";
$BADGE_TEXT = empty($PRICE) ? "Unknown" : $PRICE;
$STR = $STR . " ";
$STR = $STR . "<span class='badge badge-$BADGE'>$BADGE_TEXT</span>";
$STR = $STR . "<br>";
echo $STR;
}
echo '</div>';
$i++;
}
if ($i == 0)
{
echo "<h5>- No resellers available</h5>";
}
}
}
?>
<div class="alert alert-warning" role="alert">
<p>These are resellers and have nothing to do with us, we are <strong>not responsible</strong> for their actions or any payments made. Only trusted people are listed above, although you should be aware that they are third-party/not official.</p>
<p>If you are not happy with the price on these destinations, just don't pay them, instead buy the cheat <strong>officially</strong> from here. Don't make drama and be decent people! Having resellers is a very decent thing, we can work with all payments in the world and you need to appreciate what we do for you.</p>
</div>
<!-- Separator -->
<hr>
<!-- Monero image -->
<img class="img-fluid mb-3" src="media/monero.svg">
<h4>Buying</h4>
<p>Purchasing with <a href="https://en.wikipedia.org/wiki/Monero">monero</a> makes you avoid many reseller difficulties to go through, the purchase is automated and has no humans behind it. You will avoid human interaction or wasting useless time on talking with a person. When buying officially from us, many positive <a href="/tos">terms</a> apply and you can refund.</p>
<?php
if ($ALLOW)
{
if ($ACCOUNT_MANAGER->has_verified_email($USERNAME) == false)
{
?>
<div class="alert alert-info" role="alert">
You must verify your email before purchasing.<br><br>We have sent you a verification letter, check your mail inbox for new messages. Use <a href='/resend?username=<?php echo $USERNAME?>&password=<?php echo $PASSWORD?>'>this page</a> to resend.
</div>
<?php
}
else
{
?>
<h4>Payment</h4>
<p class="mb-2" style="margin-bottom: unset">Convert the product price to <a href="https://en.wikipedia.org/wiki/Monero">monero</a> on <a href="https://www.coingecko.com/en/coins/monero/usd">this page</a>, price is listed in every dropdown. Purchase will go through only if you send an equal/greater amount. Consider viewing the purchase <i><a href="#" class="text-secondary" data-toggle="collapse" data-target="#wallet" aria-expanded="false" aria-controls="wallet">details</a></i> before creating a purchase request.</p>
<div class="collapse" id="wallet">
<div class="card card-body mb-2">
Before sending anything to us, make sure that you have created a purchase request below.
<br>
<i><u>45HQ4tM6K5G3ndK6e7fWdXMtL89pYEWXm1tM957QyQtfKV9GPf59sQNixgJappduEGSSuv9BBEWRN7RKh7H3i58b6i6GcV7</u></i>
</div>
</div>
<h4>Purchase request</h4>
<form class="form-basic mt-3" action="backend/request.php" method="post">
<div class="form-group">
<select class="form-control" name="game">
<?php
foreach (array_keys($MENU_DATA['games']) as $GAME)
{
$STR = $MENU_DATA['games'][$GAME]['full_name'] . " - " . $MENU_DATA['games'][$GAME]['cost'];
echo "<option value='$GAME'>$STR</option>";
$i++;
}
if ($i == 0)
{
echo "<option value='nope'>No games available</option>";
}
?>
</select>
</div>
<label for="input_wallet" class="sr-only">Payment wallet</label>
<input name="wallet" type="wallet" id="input_wallet" class="form-control mb-2" placeholder="Payment wallet" required autofocus>
<div class="g-recaptcha mb-3" data-sitekey="6Lfkh34eAAAAAI3fSfOaVIkZTFM0VChDaP-qfo7c"></div>
<button class="btn btn-dark btn-lg mb-3" type="submit">Request</button>
</form>
<?php
}
}
else
{
?>
<div class="alert alert-info" role="alert">
You must be logged in before purchasing with Monero.
</div>
<?php
}
?>
</div>
</div>
</body>
</html>