mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-25 09:00:25 +00:00
Echo logfile path + file for ajax handler
This commit is contained in:
parent
11e17a8895
commit
362feae185
3 changed files with 46 additions and 0 deletions
10
ajax/system/sys_debug.php
Normal file
10
ajax/system/sys_debug.php
Normal file
|
@ -0,0 +1,10 @@
|
|||
<?php
|
||||
|
||||
require '../../includes/csrf.php';
|
||||
require_once '../../includes/config.php';
|
||||
|
||||
|
||||
$return = 0;
|
||||
echo json_encode($return);
|
||||
|
||||
?>
|
|
@ -117,6 +117,7 @@ function _generate_log() {
|
|||
_systemd_info
|
||||
|
||||
_log_write "RaspAP debug log generation complete."
|
||||
echo "${logfile_path}/${RASPAP_LOGFILE}"
|
||||
exit 0
|
||||
}
|
||||
|
||||
|
|
35
templates/system/tools.php
Normal file
35
templates/system/tools.php
Normal file
|
@ -0,0 +1,35 @@
|
|||
<!-- reset tab -->
|
||||
<div role="tabpanel" class="tab-pane" id="tools">
|
||||
<h4 class="mt-3"><?php echo _("System tools") ;?></h4>
|
||||
<?php if (!RASPI_MONITOR_ENABLED) : ?>
|
||||
<?php echo CSRFTokenFieldTag() ?>
|
||||
|
||||
<div class="row">
|
||||
<div class="form-group col-lg-8 col-md-8">
|
||||
<label for="debug">
|
||||
<?php echo sprintf(_("To generate a system <a href=\"%s\">debug log</a>, click or tap the button below."), "https://docs.raspap.com/ap-basics/#debug-log/"); ;?>
|
||||
</label>
|
||||
<div class="small">
|
||||
<?php echo _("Debug log information contains the RaspAP version, current state and configuratin of AP related services, installed system packages, Linux kernel version and networking details. No passwords or other sensitive data are included."); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<button type="button" class="btn btn-warning mb-3" name="debug-log" data-toggle="modal" data-target="#debugModal" /><?php echo _("Generate debug log"); ?></button>
|
||||
|
||||
<div class="row">
|
||||
<div class="form-group col-lg-8 col-md-8">
|
||||
<label for="reset">
|
||||
<?php echo sprintf(_("To reset RaspAP to its <a href=\"%s\">initial configuration</a>, click or tap the button below."), "https://docs.raspap.com/defaults/"); ;?>
|
||||
</label>
|
||||
<?php getTooltip('Restores all access point (AP) service settings to their default values. This applies to hostapd, dhcpcd and dnsmasq.', 'tiphwmode', true); ?>
|
||||
<div class="small">
|
||||
<?php echo _("Custom files for optional components such as Ad Blocking, WireGuard or OpenVPN will remain on the system."); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<button type="button" class="btn btn-danger" name="system-reset" data-toggle="modal" data-target="#system-confirm-reset" /><?php echo _("Perform reset"); ?></button>
|
||||
|
||||
<?php endif ?>
|
||||
</div>
|
||||
|
||||
|
Loading…
Reference in a new issue