1
0
mirror of https://gitlab.com/JKANetwork/CheckServer.git synced 2026-02-15 09:41:33 +01:00

Fixing cronchk and adding JSON API check (WIP)

This commit is contained in:
2018-01-14 13:44:20 +01:00
parent 1efecc2633
commit 9e4982c838
13 changed files with 185 additions and 73 deletions

View File

@@ -17,10 +17,11 @@ while ($onechk = dbw_fetch_array($db_conn,$results)){
$ID_TC = $chks[$idchk]['ID_TC']; //Type of Check
switch ($ID_TC){
// Case 1 and 2 are normal status, case 3 (Visits) is numeric, not status
// Case 3 (Visits) is numeric, not status
case 1: //Ping
case 2: //HttpCode
case 4: //MySQL
case 4: //MySQL
case 5: //JSON GET|POST
//To enter or not, check if has history (Instead of count > 0, only see if there is any timestamp, is faster)
if (dbw_query_fetch_array($db_conn, "SELECT `timestamp` FROM CHKHIST WHERE ID_C = '$idchk' LIMIT 1")[0] != 0){