raspap-webgui-mirror/templates/openvpn/logging.php

18 lines
922 B
PHP
Raw Normal View History

2021-02-09 21:57:15 +00:00
<!-- logging tab -->
2021-02-06 08:18:27 +00:00
<div class="tab-pane fade" id="openvpnlogging">
2021-02-09 21:57:15 +00:00
<h4 class="mt-3 mb-3"><?php echo _("Logging") ?></h4>
<p><?php echo _("Enable this option to log <code>openvpn</code> activity.") ?></p>
<div class="form-check form-switch">
<input class="form-check-input" id="log-openvpn" type="checkbox" name="log-openvpn" value="1" <?php echo $logEnable ? ' checked="checked"' : "" ?> aria-describedby="log-openvpn">
<label class="form-check-label align-middle" for="log-openvpn"><?php echo _("Enable logging") ?></label>
<input type="button" class="btn btn-outline btn-warning btn-sm align-top ms-2" id="js-clearopenvpn-log" value="<?php echo _("Clear log"); ?>" />
2021-02-09 21:57:15 +00:00
</div>
2021-02-06 08:18:27 +00:00
<div class="row">
<div class="mb-3 col-md-8 mt-2">
2022-09-27 10:04:54 +00:00
<textarea class="logoutput" id="openvpn-log"><?php echo htmlspecialchars($logOutput, ENT_QUOTES); ?></textarea>
2021-02-06 08:18:27 +00:00
</div>
2021-02-09 21:57:15 +00:00
</div>
</div><!-- /.tab-pane -->
2021-02-06 08:18:27 +00:00