Procházet zdrojové kódy

gates new version

master
Robin Thoni před 9 roky
rodič
revize
931aa88ead
1 změnil soubory, kde provedl 1 přidání a 2 odebrání
  1. 1
    2
      gates.php

+ 1
- 2
gates.php Zobrazit soubor

@@ -20,8 +20,7 @@ $gates = array();
20 20
 while($gate = $select->fetch())
21 21
 	$gates[] = array("id" => intval($gate['id']), "name" => $gate['name'],
22 22
 		"number" => $gate['number'], "address" => $gate['address'],
23
-		"port" => intval($gate['port']), "lastSeen" =>
24
-		strtotime($gate['lastSeen']));
23
+		"lastSeen" => intval(time()));
25 24
 
26 25
 echo json_encode(array("timestamp" => time(), "gateTimeout" => $gateTimeout, "gates" => $gates));
27 26
 ?>

Načítá se…
Zrušit
Uložit