| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <?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" id="btn-back" href="/list/access-key/">
- <i class="fas fa-arrow-left status-icon blue"></i><?=_('Back');?>
- </a>
- </div>
- </div>
- </div>
- <!-- End toolbar -->
- <div class="l-center animate__animated animate__fadeIn">
- <form id="vstobjects">
- <div class="form-container">
- <h1 class="form-title"><?=_("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"><?=_('Access Key Id');?></label>
- <input type="text" class="form-control" id="access_key_id" maxlength="255" readonly value="<?= htmlentities(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">
- <?=_('Secret Key');?><br>
- <span style="color:#ffd500;"><?=_('Warning! Last chance to save secret access key!');?></span>
- </label>
- <input type="text" class="form-control" id="secret_key" maxlength="255" readonly value="<?= htmlentities(trim($key_data['SECRET_ACCESS_KEY'], "'")) ?>">
- </div>
- <?php } ?>
- <?php } ?>
- <p class="u-mb10"><?=_('Permissions');?></p>
- <ul class="u-list-bulleted u-mb10">
- <?php foreach ($key_data['PERMISSIONS'] as $api_name) { ?>
- <li><?=_($api_name); ?></li>
- <?php } ?>
- </ul>
- <div class="u-mb10">
- <label for="service" class="form-label"><?=_('Comment');?></label>
- <input type="text" class="form-control" id="service" maxlength="255" readonly value="<?= htmlentities(trim($key_data['COMMENT'], "'")) ?>">
- </div>
- </div>
- </form>
- </div>
|