Enhanced logging

This commit is contained in:
“VeLiTi”
2024-03-27 19:59:55 +01:00
parent 4f31175a6c
commit bf1dd72a39
3 changed files with 12 additions and 1 deletions

View File

@@ -484,6 +484,11 @@ function ioServer($api_call, $data){
//Check If errorcode is returned
if($http_status['http_code'] == '403' || $http_status['http_code'] == '400') {$resp = generate_payload('NOK');}
if (debug){
$message = $date.';'.$api_call;
debuglog($message);
}
//Response
return $resp;
}

View File

@@ -73,3 +73,9 @@ $error = '';
// Include the requested page
include $page . '.php';
//debuglog
if (debug){
$message = $date.';'.json_encode($_GET).';'.$_SESSION['username'];
debuglog($message);
}

View File

@@ -305,7 +305,7 @@ echo'
echo '
<section title="">
<div class="slider-checkbox">
<input id="my-check-box" type="checkbox" onchange="location.href=\'https://acc.veliti.nl\'"/>
<input id="my-check-box" type="checkbox" onchange="location.href=\'https://legacy.veliti.nl\'"/>
<label for="my-check-box">
<span id="ball"></span>
</label>