2016-12-29 01:54:54 +08:00
|
|
|
<?php
|
|
|
|
/** @var \OCP\IL10N $l */
|
|
|
|
/** @var array $_ */
|
|
|
|
|
|
|
|
script('passman', 'settings-admin');
|
|
|
|
|
2017-02-19 22:13:40 +08:00
|
|
|
style('passman', 'admin');
|
|
|
|
style('passman', 'vendor/font-awesome/font-awesome.min');
|
2016-12-29 01:54:54 +08:00
|
|
|
?>
|
|
|
|
|
2016-12-30 19:51:32 +08:00
|
|
|
<div id="passwordSharingSettings" class="followup section">
|
2017-02-19 22:13:40 +08:00
|
|
|
<h2><?php p($l->t('Passman Settings')); ?></h2>
|
|
|
|
<?php
|
2021-03-14 03:05:16 +08:00
|
|
|
if ($_['checkVersion']) {
|
2022-04-25 02:11:59 +08:00
|
|
|
if ($_['githubReleaseUrl']) {
|
|
|
|
p($l->t('GitHub version:'));
|
|
|
|
?>
|
|
|
|
<a target="_blank" rel="noreferrer noopener" class="external" href="<?php p($_['githubReleaseUrl']); ?>"><?php p($_['githubVersion']); ?> ↗</a>
|
|
|
|
<?php
|
|
|
|
} else {
|
|
|
|
p($l->t('GitHub version:') . ' ' . $_['githubVersion']);
|
|
|
|
}
|
2017-02-19 22:13:40 +08:00
|
|
|
print '<br />';
|
|
|
|
} ?>
|
2021-03-14 03:05:16 +08:00
|
|
|
Local version: <?php p($_['localVersion']); ?><br/>
|
2017-02-19 22:13:40 +08:00
|
|
|
<?php
|
2021-03-14 03:05:16 +08:00
|
|
|
if ($_['checkVersion'] && version_compare($_['githubVersion'], $_['localVersion']) === 1) {
|
2017-04-18 15:32:13 +08:00
|
|
|
p($l->t('A newer version of Passman is available'));
|
2017-02-19 22:13:40 +08:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
<div id="passman-tabs">
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<a href="#general"><?php p($l->t('General settings')); ?></a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="#sharing"><?php p($l->t('Password sharing')); ?></a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="#mover"><?php p($l->t('Credential mover')); ?></a>
|
|
|
|
</li>
|
|
|
|
<li>
|
2017-02-20 07:01:01 +08:00
|
|
|
<a href="#tabs-3"><?php p($l->t('Vault destruction requests')); ?></a>
|
2017-02-19 22:13:40 +08:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<div id="general">
|
|
|
|
<form name="passman_settings">
|
|
|
|
<p>
|
|
|
|
<input type="checkbox" name="check_version"
|
|
|
|
id="passman_check_version" class="checkbox"
|
|
|
|
value="0"/>
|
|
|
|
<label for="passman_check_version">
|
|
|
|
<?php p($l->t('Check for new versions')); ?>
|
|
|
|
</label>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<input type="checkbox" name="https_check"
|
|
|
|
id="passman_https_check" class="checkbox"
|
|
|
|
value="0"/>
|
|
|
|
<label for="passman_https_check">
|
|
|
|
<?php p($l->t('Enable HTTPS check')); ?>
|
|
|
|
</label>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<input type="checkbox" name="disable_contextmenu"
|
|
|
|
id="passman_disable_contextmenu" class="checkbox"
|
|
|
|
value="0"/>
|
|
|
|
<label for="passman_disable_contextmenu">
|
|
|
|
<?php p($l->t('Disable context menu')); ?>
|
|
|
|
</label>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<input type="checkbox" name="passman_disable_debugger"
|
|
|
|
id="passman_disable_debugger" class="checkbox"
|
|
|
|
value="0"/>
|
|
|
|
<label for="passman_disable_debugger">
|
2017-04-18 15:32:13 +08:00
|
|
|
<?php p($l->t('Disable JavaScript debugger')); ?>
|
2017-02-19 22:13:40 +08:00
|
|
|
</label>
|
|
|
|
</p>
|
2021-03-13 05:04:40 +08:00
|
|
|
<p>
|
2021-03-13 05:53:57 +08:00
|
|
|
<input type="checkbox" name="passman_enable_global_search"
|
|
|
|
id="passman_enable_global_search" class="checkbox"
|
2021-03-13 05:04:40 +08:00
|
|
|
value="0"/>
|
2021-03-13 05:53:57 +08:00
|
|
|
<label for="passman_enable_global_search">
|
|
|
|
<?php p($l->t('Enable global search')); ?>
|
2021-03-13 05:04:40 +08:00
|
|
|
</label>
|
|
|
|
</p>
|
2017-02-19 22:13:40 +08:00
|
|
|
<p>
|
|
|
|
<label for="vault_key_strength">Minimum vault key
|
|
|
|
strength:</label>
|
|
|
|
<select name="vault_key_strength" id="vault_key_strength">
|
|
|
|
<option value="0">
|
|
|
|
Poor
|
|
|
|
</option>
|
|
|
|
<option value="2">
|
|
|
|
Weak
|
|
|
|
</option>
|
|
|
|
<option value="3">
|
|
|
|
Good
|
|
|
|
</option>
|
|
|
|
<option value="4">
|
|
|
|
Strong
|
|
|
|
</option>
|
|
|
|
</select>
|
|
|
|
</p>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div id="sharing">
|
|
|
|
<p>
|
|
|
|
<input type="checkbox" name="passman_link_sharing_enabled"
|
|
|
|
id="passman_link_sharing_enabled" class="checkbox"
|
|
|
|
value="1"/>
|
|
|
|
<label for="passman_link_sharing_enabled">
|
|
|
|
<?php p($l->t('Allow users on this server to share passwords with a link')); ?>
|
|
|
|
</label>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<input type="checkbox" name="passman_sharing_enabled"
|
|
|
|
id="passman_sharing_enabled" class="checkbox"
|
|
|
|
value="1"/>
|
|
|
|
<label for="passman_sharing_enabled">
|
|
|
|
<?php p($l->t('Allow users on this server to share passwords with other users')); ?>
|
|
|
|
</label>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div id="mover">
|
|
|
|
<p><?php p($l->t('Move credentials from one account to another')); ?></p>
|
|
|
|
<br/>
|
|
|
|
<table class="table">
|
|
|
|
<tr>
|
|
|
|
<td><?php p($l->t('Source account')); ?> </td>
|
2021-03-17 07:56:22 +08:00
|
|
|
<td><input type="hidden" class="form-control account_mover_selector" id="source_account"></td>
|
2017-02-19 22:13:40 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><?php p($l->t('Destination account')); ?> </td>
|
2021-03-17 07:56:22 +08:00
|
|
|
<td><input type="hidden" class="form-control account_mover_selector" id="destination_account"></td>
|
2017-02-19 22:13:40 +08:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<button class="success" id="move_credentials">Move</button>
|
2021-04-03 19:21:34 +08:00
|
|
|
<span id="moveStatusSucceeded" style="display: none;"><?php p($l->t('Credentials moved!')); ?></span>
|
|
|
|
<span id="moveStatusFailed" style="display: none;"><?php p($l->t('An error occurred!')); ?></span>
|
2017-02-19 22:13:40 +08:00
|
|
|
|
|
|
|
</div>
|
|
|
|
<div id="tabs-3">
|
2017-02-20 07:01:01 +08:00
|
|
|
<?php p($l->t('Requests to destroy vault')); ?>
|
|
|
|
<table id="requests-table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th><?php p($l->t('Request ID')); ?></th>
|
|
|
|
<th><?php p($l->t('Requested by')); ?></th>
|
|
|
|
<th><?php p($l->t('Reason')); ?></th>
|
|
|
|
<th><?php p($l->t('Created')); ?></th>
|
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2017-02-19 22:13:40 +08:00
|
|
|
</div>
|
2016-12-29 01:54:54 +08:00
|
|
|
|
2017-02-19 22:13:40 +08:00
|
|
|
</div>
|
2016-12-29 01:54:54 +08:00
|
|
|
</div>
|