Enhanced logging
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -73,3 +73,9 @@ $error = '';
|
||||
// Include the requested page
|
||||
include $page . '.php';
|
||||
|
||||
//debuglog
|
||||
if (debug){
|
||||
$message = $date.';'.json_encode($_GET).';'.$_SESSION['username'];
|
||||
debuglog($message);
|
||||
}
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user