| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <?php
- // Prevent resubmit form on page refresh
- if (!empty($_POST["ok"])) { ?>
- <script>
- if (window.history.replaceState) {
- window.history.replaceState(null, null, window.location.href);
- }
- </script>
- <?php } ?>
- <!-- Begin toolbar -->
- <div class="toolbar">
- <div class="toolbar-inner">
- <div class="toolbar-buttons">
- <a class="button button-secondary button-back js-button-back" href="/list/access-key/">
- <i class="fas fa-arrow-left icon-blue"></i><?= tohtml( _("Back")) ?>
- </a>
- </div>
- </div>
- </div>
- <!-- End toolbar -->
- <div class="container">
- <form id="main-form">
- <div class="form-container">
- <h1 class="u-mb20"><?= tohtml( _("Access Key")) ?></h1>
- <?php show_alert_message($_SESSION); ?>
- <?php if (!empty($key_data["ACCESS_KEY_ID"])) { ?>
- <div class="u-mt15 u-mb10">
- <label for="access_key_id" class="form-label"><?= tohtml( _("Access Key ID")) ?></label>
- <input type="text" class="form-control" id="access_key_id" maxlength="255" readonly value="<?= tohtml(trim($key_data["ACCESS_KEY_ID"], "'")) ?>">
- </div>
- <?php } ?>
- <?php if (!empty($_SESSION["ok_msg"])) { ?>
- <?php if (!empty($key_data["ACCESS_KEY_ID"]) && !empty($key_data["SECRET_ACCESS_KEY"])) { ?>
- <div class="u-mb20">
- <label for="secret_key" class="form-label">
- <?= tohtml( _("Secret Key")) ?><br>
- <span class="inline-alert inline-alert-warning u-mb20"><?= tohtml( _("Warning! Last chance to save secret key!")) ?></span>
- </label>
- <input type="text" class="form-control" id="secret_key" maxlength="255" readonly value="<?= tohtml(trim($key_data["SECRET_ACCESS_KEY"], "'")) ?>">
- </div>
- <?php } ?>
- <?php } ?>
- <p class="u-mb10"><?= tohtml( _("Permissions")) ?></p>
- <ul class="u-list-bulleted u-mb10">
- <?php foreach ($key_data["PERMISSIONS"] as $api_name) { ?>
- <li><?= tohtml( _($api_name)) ?></li>
- <?php } ?>
- </ul>
- <div class="u-mb10">
- <label for="service" class="form-label"><?= tohtml( _("Comment")) ?></label>
- <input type="text" class="form-control" id="service" maxlength="255" readonly value="<?= tohtml(trim($key_data["COMMENT"], "'")) ?>">
- </div>
- </div>
- </form>
- </div>
|