aboutsummaryrefslogtreecommitdiff
path: root/admin/panes/denied.php
blob: 9a29fcb5860c149ca7754b3ec4a8bb75900e7b7a (plain)
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
<?php require $_SERVER['DOCUMENT_ROOT'] . "/admin/private/header.php";/** @var array $_DATA */ ?>

<style>
    ::-webkit-scrollbar {
        width: 5px;
    }

    ::-webkit-scrollbar-track {
        border-radius: 9999px;
        background: transparent;
    }

    ::-webkit-scrollbar-thumb {
        border-radius: 9999px;
        background-color: rgba(136, 136, 136, 0.5);
        transition: background 200ms;
    }

    ::-webkit-scrollbar-thumb:hover {
        background-color: rgba(85, 85, 85, 0.75);
    }

    ::-webkit-scrollbar-thumb:active {
        background-color: #222;
    }

    .list-group-item {
        background: #34373c;
    }

    body {
        background: #5f1b1b !important;
    }
</style>

<div class="container" style="color:white;padding-top:15vh;padding-bottom:15vh;display: flex;align-items:center;justify-content: center;height:100%;">
    <div>
        <p style="text-align: center;">
            <!--suppress CheckImageSize -->
            <img src="/static/admin/locked.svg" style="width:96px;filter:invert(1);">
        </p>
        <br>
        <h2 style="text-align:center;"><?= l("Access is denied", "Accès refusé") ?></h2>

        <h4 style="text-align:center;"><?= l("You don't have the", "Vous ne disposez pas de la permission") ?> <code>admin.<?= strip_tags($_GET['_'] ?? "*") ?></code><?= l(" permission, which is required to access this resource", ", qui est nécessaire pour accéder à ce contenu") ?>.</h4><br>

        <div id="homebtn" style="text-align: center;width:max-content;margin-left:auto;margin-right:auto;">
            <p class="btn-group">
                <a onclick="window.parent.activity('activity-home', '/admin/panes/home.php', window.parent.document.getElementById('activity-home'));" class="btn btn-outline-light"><?= l("Home", "Accueil") ?></a>
            </p>
        </div>
        <script>
            if (window.parent === window) document.getElementById("homebtn").style.display = "none";
        </script>

        <small><p style="text-align: center;">
            <?= l("If you believe this is an error", "Si vous pensez qu'il s'agit d'une erreur") ?>, <a href="/contact" target="_blank"><?= l("contact Minteck", "contactez Minteck") ?></a>
        </p></small>
    </div>
</div>

<?php require_once $_SERVER['DOCUMENT_ROOT'] . "/admin/private/footer.php"; ?>