récupération après crash
This commit is contained in:
@ -51,7 +51,7 @@ while (1)
|
||||
}
|
||||
}
|
||||
$result = array();
|
||||
//ésleep(1);
|
||||
//sleep(1);
|
||||
}
|
||||
|
||||
function search($string)
|
||||
@ -63,15 +63,15 @@ function search($string)
|
||||
//echo "searching in " . $string . EOL;
|
||||
foreach ($macAddresses as $needle => $nom)
|
||||
{
|
||||
echo $string . " ==> presenceD:" . $nom ." => " . $needle . EOL;
|
||||
//echo $string . " ==> presenceD:" . $nom ." => " . $needle . EOL;
|
||||
if (str_contains($string, $needle))
|
||||
{
|
||||
echo "presenceD: found " . $needle . EOL;
|
||||
//echo "presenceD: found " . $needle . EOL;
|
||||
$presenceTemp[$nom] = true;
|
||||
$flag = true;
|
||||
}
|
||||
}
|
||||
var_dump($presenceTemp);
|
||||
//var_dump($presenceTemp);
|
||||
return $presenceTemp;
|
||||
}
|
||||
|
||||
@ -87,7 +87,7 @@ function send($msg)
|
||||
// return the transfer as a string
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
||||
// $result contains the output string
|
||||
echo _("presenceDaemon: Curl sending message -") . $msg . __FILE__ . ":" . __LINE__ . EOL;
|
||||
//echo _("presenceDaemon: Curl sending message -") . $msg . __FILE__ . ":" . __LINE__ . EOL;
|
||||
|
||||
if ($curlErr <= 5)
|
||||
{
|
||||
|
Reference in New Issue
Block a user