-
Notifications
You must be signed in to change notification settings - Fork 0
/
payment_vip_buy.php
149 lines (141 loc) · 5.85 KB
/
payment_vip_buy.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
<?php
ob_start();
require_once 'connect.php';
session_start();
require_once 'language.php';
$vip_period = 1;
# Reset VIP if it's time
if (isset($_SESSION['vip_period'])) {
$vip_period = $_SESSION['vip_period'];
unset($_SESSION['vip_period']);
}
# Redirect the user if access is gained in an unauthorized way
if (!isset($_SESSION['email'])) {
header("Location: index.php");
}
# Cost list
$cost_vip = 0.99;
if($vip_period == 1) {
$cost_vip = 0.01;
} else if($vip_period == 2) {
$cost_vip = 8.01;
} else if($vip_period == 3) {
$cost_vip = 18.01;
}
###########
$js_obj = json_encode($cost_vip);
print "<script>var cost_vip = $js_obj;</script>";
?>
<!DOCTYPE html>
<html lang="en">
<head>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-155065961-1"></script>
<script src="js/googleanalytics.js"></script>
<meta charset="UTF-8">
<title>Floatcord</title>
<link rel="icon" type="image/png" href="https://i.imgur.com/k2rF22C.png">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/style_fon.css">
</head>
<body>
<div id = "logo">
<a href = "index.php" style = "color: #f6f6f6; text-decoration: none; display:inline-block;">
<span id="select">FLOAT</span>CORD
<div id = "about_developer" onmouseenter = "mouseenter(event)" onmouseleave = "mouseleave(event)">
<?php if($_SESSION['Language'] == "ru"): ?>
О разработчиках
<?php else: ?>
Developers
<?php endif; ?>
<a href = "https://twitter.com/limtosingular" id = "developerLim" style = "display: table; margin-top: 5pt; color: #5c90d1; font-family: GothamSSm Narrow Medium; cursor: pointer; visibility: hidden;">lim</a>
<a href = "http://twitter.com/EternalMech" id = "developerEternal" style = "display: table; margin-top: 5pt; color: #5c90d1; font-family: GothamSSm Narrow Medium; cursor: pointer; visibility: hidden;">Eternal</a>
</div>
</a>
<div id = "change_language" onmouseenter = "langmouseenter(event)" onmouseleave = "langmouseleave(event)">
<?php if($_SESSION['Language'] == "ru"): ?>
Язык
<?php else: ?>
Language
<?php endif; ?>
<form method = "POST">
<div style = "display: table; ">
<button name = "selectEnglish" id = "languageEnglish" style = "background: #2f3645; display: table; margin-top: 5pt; color: #f6f6f6; font-family: GothamSSm Narrow Light; cursor: pointer; visibility: hidden; border: none; outline: none; border-radius: 6px; width: 100%;">English</button>
<button name = "selectRussia" id = "languageRussia" style = "background: #2f3645; display: table; margin-top: 5pt; color: #f6f6f6; font-family: GothamSSm Narrow Light; cursor: pointer; visibility: hidden; border: none; outline: none; border-radius: 6px; width: 100%;">Русский</button>
</div>
</form>
</div>
</div>
<form method = "POST">
<div class="button">
<div id = "center_button">
<div style = "display:inline-block; margin-right: 18px;">
<div style = "background: #181c25; color: #1d222e; font-family: GothamSSm Narrow Medium; font-size: 10pt; padding-top: 30px; padding-bottom: 30px; padding-left: 30px; padding-right: 30px; border-radius: 6px; text-decoration: none; ">
<div style="display: flex; justify-content: center;" id = "input_button_vip">
<div name = "connect_to" id="paypal-button" style = "width: 300px; color: #fff;"></div>
</div>
</div>
</div>
</div>
</div>
</form>
<script src="https://www.paypalobjects.com/api/checkout.js"></script>
<script>
paypal.Button.render({
env: 'sandbox',
client: {
sandbox: 'AQSFRKyi0Uuax7uKBGlw9fOPOAxFAZR59wRnzPXCXXCXN8JC1x4HEXMF6gfO9K84mPibt0daIpxaHp_l'
},
locale: 'en_US',
style: {
size: 'responsive',
color: 'blue',
shape: 'rect',
tagline: false
},
commit: true,
payment: function(data, actions) {
return actions.payment.create({
transactions: [{
amount: {
total: cost_vip,
currency: 'USD'
}
}]
});
},
onAuthorize: function(data, actions) {
return actions.payment.execute().then(function() {
window.location="https://floatcord.com/email.php";
});
}
}, '#paypal-button');
</script>
<div id="Clouds">
<div class="Cloud Foreground"></div>
<div class="Cloud Background"></div>
<div class="Cloud Foreground"></div>
<div class="Cloud Background"></div>
<div class="Cloud Foreground"></div>
<div class="Cloud Background"></div>
<div class="Cloud Background"></div>
<div class="Cloud Foreground"></div>
<div class="Cloud Background"></div>
<div class="Cloud Background"></div>
</div>
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="40px" height="24px" viewBox="0 0 40 24" enable- xml:space="preserve">
<defs>
<path id="Cloud" d="M33.85,14.388c-0.176,0-0.343,0.034-0.513,0.054c0.184-0.587,0.279-1.208,0.279-1.853c0-3.463-2.809-6.271-6.272-6.271
c-0.38,0-0.752,0.039-1.113,0.104C24.874,2.677,21.293,0,17.083,0c-5.379,0-9.739,4.361-9.739,9.738
c0,0.418,0.035,0.826,0.084,1.229c-0.375-0.069-0.761-0.11-1.155-0.11C2.811,10.856,0,13.665,0,17.126
c0,3.467,2.811,6.275,6.272,6.275c0.214,0,27.156,0.109,27.577,0.109c2.519,0,4.56-2.043,4.56-4.562
C38.409,16.43,36.368,14.388,33.85,14.388z"/>
</defs>
</svg>
<script type = "text/javascript" src = "https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script type = "text/javascript" src = "js/scriptFon.js"></script>
</body>
</html>
<?php
ob_end_flush();
?>