-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcheckout.php
34 lines (33 loc) · 1.05 KB
/
checkout.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
<?php
require_once($_SERVER['DOCUMENT_ROOT'] . '/config.php');
require_once($_SERVER['DOCUMENT_ROOT'] . '/services/functions.php');
?>
<script src='/src/<?= VERSION ?>/js/vendors/socket.io.min.js?version=<?= VERSION ?>'></script>
<script>
const socket = io("wss://<?= URL_REFRESH ?>", {
path: "/<?= PATH_REFRESH ?>/socket.io"
});
socket.on("state", (args) => {
location.reload();
});
</script>
<script type="module">
import {
getUrlWithParams
} from '/src/<?= VERSION ?>/js/common/index.js';
import {
eventsType
} from '/src/<?= VERSION ?>/js/enums/eventsType.enum.js';
import {
userRegisteredInEvent,
checkEncodeUrl
} from '/src/<?= VERSION ?>/js/user.js';
checkEncodeUrl();
if (!userRegisteredInEvent(eventsType.DIGITALTRENDS)) {
window.location.href = getUrlWithParams('/digital-trends');
}
</script>
<?php
$response = processPhaseToShow(DIGITALTRENDS);
require_once($_SERVER['DOCUMENT_ROOT'] . "/pages/digital-trends/$response[phaseToShow]/checkout.php");
?>