1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2025-07-23 17:38:03 +02:00

Move template handling of wg_log to include/wireguard

This commit is contained in:
billz 2025-03-20 02:12:47 -07:00
parent 0005488884
commit 028c0d3e06

View File

@ -8,10 +8,7 @@
<input class="form-check-input" id="wgLogEnable" type="checkbox" name="wgLogEnable" value="1" <?php echo $optLogEnable ? ' checked="checked"' : "" ?> aria-describedby="wgLogEnable">
<label class="form-check-label" for="wgLogEnable"><?php echo _("Logfile output") ?></label>
</div>
<?php
exec('sudo chmod o+r /tmp/wireguard.log');
$log = file_get_contents('/tmp/wireguard.log');
echo '<textarea class="logoutput text-secondary my-3">'.htmlspecialchars($log, ENT_QUOTES).'</textarea>';
<?php echo '<textarea class="logoutput text-secondary my-3">'.htmlspecialchars($wg_log, ENT_QUOTES).'</textarea>';
?>
</div>
</div><!-- /.row -->