Skip to content
Permalink
Browse files

Update camshoter.class.php

  • Loading branch information...
directman66 committed Feb 28, 2019
1 parent fb6594c commit 5c5fb11dcf2406eaa6702185c62847aa8ce5b6b8
Showing with 5 additions and 4 deletions.
  1. +5 −4 modules/camshoter/camshoter.class.php
@@ -456,14 +456,15 @@ function searchdevices(&$out) {
if (time()-$lastping>300) {
$cmd='
$online=ping(processTitle('.$ip.'));
$online=ping(processTitle("'.$ip.'"));
if ($online)
{SQLexec("update camshoter_devices set ONLINE="1", LASTPING=".time()." where IP='.$ip.'");}
{SQLexec("update camshoter_devices set ONLINE=1, LASTPING='.time().' where IPADDR=\''.$ip.'\'");}
else
{SQLexec("update camshoter_devices set ONLINE="0", LASTPING=".time()." where IP='.$ip.'");}
}
{SQLexec("update camshoter_devices set ONLINE=0, LASTPING='.time().' where IPADDR=\''.$ip.'\'");}
';
SetTimeOut('camshoter_devices_devices_ping',$cmd, '1');
debmes($cmd, 'camshoter');
/*

0 comments on commit 5c5fb11

Please sign in to comment.
You can’t perform that action at this time.