-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsuccess.php
More file actions
42 lines (37 loc) · 1.24 KB
/
success.php
File metadata and controls
42 lines (37 loc) · 1.24 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
<?php
require_once __DIR__ . '/db.php';
require_once __DIR__ . '/helpers.php';
session_start();
$pdo=db();
// Global maintenance mode: block storefront pages while enabled
try {
if (function_exists('gc_enforce_maintenance')) {
gc_enforce_maintenance($pdo, ['format' => 'html']);
}
} catch (Throwable $e) { /* ignore */ }
$orderId=(int)($_GET['order'] ?? 0);
$st=$pdo->prepare("SELECT o.*, p.name plan_name FROM orders o JOIN plans p ON p.id=o.plan_id WHERE o.id=?");
$st->execute([$orderId]);
$o=$st->fetch();
?>
<?php
$PUBLIC_TITLE = 'XTREAM ui GAME CHANGER — Success';
$PUBLIC_SIDEBAR = false;
require_once __DIR__ . '/gc_public_top.php';
?>
<div class="card hero">
<h1>Payment Successful</h1>
<p class="muted">Your account is active.</p>
<div class="big-buttons">
<a class="btn primary" href="/dashboard.php">Go to My Account</a>
<a class="btn" href="/portal/">Open Portal</a>
</div>
</div>
<?php if ($o): ?>
<div class="card" style="max-width:640px;">
<h3 style="margin:0 0 10px;">Order #<?= (int)$o['id'] ?></h3>
<div class="muted">Plan</div>
<div style="font-size:18px;font-weight:900;margin-top:2px;"><?= e($o['plan_name'] ?? '') ?></div>
</div>
<?php endif; ?>
<?php require_once __DIR__ . '/gc_public_bottom.php'; ?>