Enhanced logging
This commit is contained in:
@@ -484,6 +484,11 @@ function ioServer($api_call, $data){
|
|||||||
//Check If errorcode is returned
|
//Check If errorcode is returned
|
||||||
if($http_status['http_code'] == '403' || $http_status['http_code'] == '400') {$resp = generate_payload('NOK');}
|
if($http_status['http_code'] == '403' || $http_status['http_code'] == '400') {$resp = generate_payload('NOK');}
|
||||||
|
|
||||||
|
if (debug){
|
||||||
|
$message = $date.';'.$api_call;
|
||||||
|
debuglog($message);
|
||||||
|
}
|
||||||
|
|
||||||
//Response
|
//Response
|
||||||
return $resp;
|
return $resp;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -73,3 +73,9 @@ $error = '';
|
|||||||
// Include the requested page
|
// Include the requested page
|
||||||
include $page . '.php';
|
include $page . '.php';
|
||||||
|
|
||||||
|
//debuglog
|
||||||
|
if (debug){
|
||||||
|
$message = $date.';'.json_encode($_GET).';'.$_SESSION['username'];
|
||||||
|
debuglog($message);
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -305,7 +305,7 @@ echo'
|
|||||||
echo '
|
echo '
|
||||||
<section title="">
|
<section title="">
|
||||||
<div class="slider-checkbox">
|
<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">
|
<label for="my-check-box">
|
||||||
<span id="ball"></span>
|
<span id="ball"></span>
|
||||||
</label>
|
</label>
|
||||||
|
|||||||
Reference in New Issue
Block a user