-
Notifications
You must be signed in to change notification settings - Fork 8
/
donatordone.php
38 lines (37 loc) · 1.01 KB
/
donatordone.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
<?php
declare(strict_types=1);
/**
* MCCodes v2 by Dabomstew & ColdBlooded
*
* Repository: https://github.com/davemacaulay/mccodesv2
* License: MIT License
*/
global $h, $set;
require_once('globals.php');
if (!isset($_GET['action']))
{
ob_get_clean();
header('HTTP/1.1 400 Bad Request');
exit;
}
if ($_GET['action'] == 'cancel')
{
echo 'You have cancelled your donation. Please donate later...';
}
elseif ($_GET['action'] == 'done')
{
if (!$_GET['tx'])
{
echo 'Get a life.';
$h->endpage();
exit;
}
echo 'Thank you for your payment to ' . $set['game_name']
. '. Your transaction has been completed, and a receipt for
your purchase has been emailed to you. You may log into your
account at <a href="https://www.paypal.com">www.paypal.com</a>
to view details of this transaction.
Your donator pack should be credited within a few minutes,
if not, contact an admin for assistance.';
}
$h->endpage();