aboutsummaryrefslogtreecommitdiff
path: root/public/index.php
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-06-01 17:12:25 +0200
committerlonkaars <loek@pipeframe.xyz>2023-06-01 17:12:25 +0200
commitc2b5ab68a84bf830f64e9c4e39f92b24c085c7e6 (patch)
tree09c459c28d19ff35e4ae1746572f11169e00150c /public/index.php
parent6715936a3b33c14b2d8c581677855bb6c1297940 (diff)
calculate cart sum
Diffstat (limited to 'public/index.php')
-rw-r--r--public/index.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/public/index.php b/public/index.php
index 0fd0ff2..fecf624 100644
--- a/public/index.php
+++ b/public/index.php
@@ -20,6 +20,16 @@ function promobuff2str($price_buff, $count_buff) {
<body>
<?php include 'navbar.php' ?>
<div class="main limwidth">
+ <?php do {
+ if (($user_privileges & PRIVILEGE_ADMIN) == 0) break;
+ echo <<<"EOF"
+ <div class="center">
+ <form action="/admin-promo.php" method="get" class="d-ib">
+ <input type="submit" value="Aanbiedingen beheren" class="button filled">
+ </form>
+ </div>
+ EOF;
+ } while (false); ?>
<div class="s1">
<h1>hier zijn de aanbiedingen</h1>
<ul>