1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2025-05-19 00:22:33 +02:00
RaspAP/ajax/system/sys_debug.php
2023-10-31 15:17:13 +00:00

16 lines
346 B
PHP

<?php
require '../../includes/csrf.php';
require_once '../../includes/config.php';
if (isset($_POST['csrf_token'])) {
if (csrfValidateRequest() && !CSRFValidate()) {
handleInvalidCSRFToken();
}
exec( RASPI_CONFIG.'/system/debuglog.sh', $return);
echo json_encode(end($return));
} else {
handleInvalidCSRFToken();
}