2021-02-09 22:57:15 +01:00
|
|
|
<!-- logging tab -->
|
2021-02-06 09:18:27 +01:00
|
|
|
<div class="tab-pane fade" id="openvpnlogging">
|
2021-02-09 22:57:15 +01: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="custom-control custom-switch">
|
2021-02-10 12:29:12 +01:00
|
|
|
<input class="custom-control-input" id="log-openvpn" type="checkbox" name="log-openvpn" value="1" <?php echo $logEnable ? ' checked="checked"' : "" ?> aria-describedby="log-openvpn">
|
2022-09-27 12:04:54 +02:00
|
|
|
<label class="custom-control-label align-middle" for="log-openvpn"><?php echo _("Enable logging") ?></label>
|
|
|
|
<input type="button" class="btn btn-outline btn-warning btn-sm align-top ml-2" id="js-clearopenvpn-log" value="<?php echo _("Clear log"); ?>" />
|
2021-02-09 22:57:15 +01:00
|
|
|
</div>
|
2021-02-06 09:18:27 +01:00
|
|
|
<div class="row">
|
2021-02-09 22:57:15 +01:00
|
|
|
<div class="form-group col-md-8 mt-2">
|
2022-09-27 12:04:54 +02:00
|
|
|
<textarea class="logoutput" id="openvpn-log"><?php echo htmlspecialchars($logOutput, ENT_QUOTES); ?></textarea>
|
2021-02-06 09:18:27 +01:00
|
|
|
</div>
|
2021-02-09 22:57:15 +01:00
|
|
|
</div>
|
|
|
|
</div><!-- /.tab-pane -->
|
2021-02-06 09:18:27 +01:00
|
|
|
|