forked from hestiacp/hestiacp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadd_key.php
More file actions
41 lines (36 loc) · 1.39 KB
/
Copy pathadd_key.php
File metadata and controls
41 lines (36 loc) · 1.39 KB
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
<!-- Begin toolbar -->
<div class="toolbar">
<div class="toolbar-inner">
<div class="toolbar-buttons">
<?php if (($_SESSION['userContext'] === 'admin') && (isset($_GET['user'])) && ($_GET['user'] !== 'admin')) { ?>
<a class="button button-secondary" id="btn-back" href="/list/key/?user=<?=htmlentities($_GET['user']);?>">
<i class="fas fa-arrow-left status-icon blue"></i><?=_('Back');?>
</a>
<?php } else { ?>
<a class="button button-secondary" id="btn-back" href="/list/key/">
<i class="fas fa-arrow-left status-icon blue"></i><?=_('Back');?>
</a>
<?php } ?>
</div>
<div class="toolbar-buttons">
<button class="button" type="submit" form="vstobjects">
<i class="fas fa-floppy-disk status-icon purple"></i><?=_('Save');?>
</button>
</div>
</div>
</div>
<!-- End toolbar -->
<div class="container animate__animated animate__fadeIn">
<form id="vstobjects" name="v_add_key" method="post">
<input type="hidden" name="token" value="<?=$_SESSION['token']?>">
<input type="hidden" name="ok" value="Add">
<div class="form-container">
<h1 class="form-title"><?=_('Add SSH Key');?></h1>
<?php show_alert_message($_SESSION);?>
<div>
<label for="v_key" class="form-label"><?=_('SSH KEY') ?></label>
<textarea class="form-control u-min-height300" name="v_key" id="v_key"><?=htmlentities(trim($v_key, "'"))?></textarea>
</div>
</div>
</form>
</div>