Davidson CI testing & AI refinement
This commit is contained in:
+7
-2
@@ -1,4 +1,7 @@
|
||||
<?php require_once __DIR__ . '/ticket.php'; ?>
|
||||
<?php
|
||||
require_once __DIR__ . '/ticket.php';
|
||||
$isLoggedIn = isset($_SESSION['user_id']) && isset($_SESSION['username']);
|
||||
?>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
@@ -9,6 +12,7 @@
|
||||
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="/media/output.css?v=<?php echo filemtime(__DIR__ . '/../media/output.css'); ?>">
|
||||
<script src="https://unpkg.com/lucide@1.41.0/dist/umd/lucide.min.js" integrity="sha384-5hfcTHqJTrDq2YPubIhzTtbnAx6tDcmRrxlfwLEierMHQtmz030891dt1/8VAupY" crossorigin="anonymous"></script>
|
||||
<?php if ($isLoggedIn): ?>
|
||||
<script src="https://cdn.paddle.com/paddle/v2/paddle.js"></script>
|
||||
<script type="text/javascript">
|
||||
Paddle.Environment.set("sandbox");
|
||||
@@ -36,8 +40,9 @@
|
||||
function openCheckout(items){
|
||||
Paddle.Checkout.open({
|
||||
items: items,
|
||||
customData: {user_id: "<?php echo htmlspecialchars(createTicket((int) ($_SESSION['user_id'] ?? 0), 'purchase'), ENT_QUOTES, 'UTF-8'); ?>"}
|
||||
customData: {user_id: "<?php echo htmlspecialchars(createTicket((int) $_SESSION['user_id'], 'purchase'), ENT_QUOTES, 'UTF-8'); ?>"}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
</head>
|
||||
|
||||
Reference in New Issue
Block a user