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

18 lines
937 B
PHP
Raw Permalink 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">
2024-10-24 17:30:53 +00:00
<textarea class="logoutput text-secondary" 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