-
Notifications
You must be signed in to change notification settings - Fork 0
/
premium.php
89 lines (83 loc) · 3.82 KB
/
premium.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
<?php
session_start();
$title="Premium | VDBP";
$currentPage="premium";
include("res/php/_authcheck.php");
include("res/php/_connect.php");
include("res/php/header.php");
include("res/php/navbar.php");
include("res/php/functions.inc.php");
$user = GetUser($mysqli);
if($user["IsPremium"]) {
echo "<script>Swal.fire({ icon: 'warning', title: 'Oops...', text: 'You are already premium!', heightAuto: false }).then(function(){window.location.href='account';});</script>";
}
if(isset($_GET["er"])) {
if($_GET["er"] == "insufperm") {
echo "<script>Swal.fire({ icon: 'warning', title: 'Oops...', text: 'You did not have sufficient permission to do that', heightAuto: false });</script>";
} else if($_GET["er"] == "nobastedel") {
echo "<script>Swal.fire({ icon: 'warning', title: 'Oops...', text: 'There was no baste to delete', heightAuto: false });</script>";
} else if($_GET["er"] == "cancel") {
echo "<script>Swal.fire({ icon: 'warning', title: 'Payment cancelled.', text: 'You can always upgrade later', heightAuto: false });</script>";
} else if($_GET["er"] == "invaltoken") {
echo "<script>Swal.fire({ icon: 'warning', title: 'Oops...', text: 'The payment token was invalid', heightAuto: false });</script>";
}
}
?>
<!-- Main Page Content -->
<div class="container">
<!-- Welcome Greeting -->
<div class="row mb-5">
<div class="col-12 mt-5 align-items-center text-center">
<h1>Upgrade to Premium</h1>
</div>
</div>
<!-- End Welcome Greeting -->
<div class="row mt-5">
<div class="row">
<div class="col-12 col-md-6 col-lg-6 mb-1">
<div class="card text-center border-dark h-100">
<div class="card-body">
<h5 class="card-title">Free</h5>
<p class="card-text">
<ul class="list-unstyled">
<li>- 10 Bastes</li>
<li>- No Password Protection</li>
<li>- Bastes Never Expire</li>
<li>- Public Bastes</li>
<li>- No Support</li>
</ul>
</p>
</div>
<div class="card-footer">
<h5 class="card-title">$0.00</h5>
<a href="account/" class="btn btn-secondary">Remain Free</a>
</div>
</div>
</div>
<div class="col-12 col-md-6 col-lg-6 mb-1">
<div class="card text-center border-dark h-100">
<div class="card-body">
<h5 class="card-title">Premium</h5>
<p class="card-text">
<ul class="list-unstyled">
<li>- Unlimited Bastes</li>
<li>- Baste Expiration</li>
<li>- Private and Unlisted Bastes</li>
<li>- Priority Support</li>
<li>- Lifetime Support</li>
</ul>
</p>
</div>
<div class="card-footer">
<h5 class="card-title">$9.99</h5>
<form action="res/php/create-checkout-session.php" method="POST">
<button type="submit" class="btn btn-primary" id="checkout-button">Upgrade to premium</button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- End Main Page Content -->
<?php include("./res/php/footer.php"); ?>