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:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user