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

18 lines
942 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="custom-control custom-switch">
2021-02-10 11:29:12 +00: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 10:04:54 +00: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 21:57:15 +00:00
</div>
2021-02-06 08:18:27 +00:00
<div class="row">
2021-02-09 21:57:15 +00:00
<div class="form-group 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