mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
Templatize hostapd
This commit is contained in:
17
templates/hostapd/logging.php
Normal file
17
templates/hostapd/logging.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<!-- logfile output tab -->
|
||||
<div class="tab-pane fade" id="logoutput">
|
||||
<h4 class="mt-3"><?php echo _("Logfile output"); ?></h4>
|
||||
<div class="row">
|
||||
<div class="form-group col-md-8">
|
||||
<?php
|
||||
if ($arrHostapdConf['LogEnable'] == 1) {
|
||||
exec('sudo /bin/chmod o+r /tmp/hostapd.log');
|
||||
$log = file_get_contents('/tmp/hostapd.log');
|
||||
echo '<br /><textarea class="logoutput">'.htmlspecialchars($log, ENT_QUOTES).'</textarea>';
|
||||
} else {
|
||||
echo "<br />Logfile output not enabled";
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- /.tab-pane | logging tab -->
|
Reference in New Issue
Block a user