Skip to content
Permalink
Browse files

Update magichome.class.php

  • Loading branch information...
directman66 committed Feb 28, 2019
1 parent 34b7471 commit 791d351ba4cb5258ee1499fd3f3eac36c29778d9
Showing with 7 additions and 5 deletions.
  1. +7 −5 modules/magichome/magichome.class.php
@@ -414,15 +414,17 @@ function search_devices(&$out) {
if (time()-$lastping>300) {
$cmd='
$online=ping(processTitle('.$ip.'));
$online=ping(processTitle("'.$ip.'"));
if ($online)
{SQLexec("update magichome_devices set ONLINE="1", LASTPING=".time()." where IP='.$ip.'");}
{SQLexec("update camshoter_devices set ONLINE=1, LASTPING='.time().' where IP=\''.$ip.'\'");}
else
{SQLexec("update magichome_devices set ONLINE="0", LASTPING=".time()." where IP='.$ip.'");}
}
{SQLexec("update camshoter_devices set ONLINE=0, LASTPING='.time().' where IP=\''.$ip.'\'");}
';
SetTimeOut('magichome_ping',$cmd, '10');
SetTimeOut('magichome_ping',$cmd, '1');
/*
$online=ping(processTitle($ip));

0 comments on commit 791d351

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