adding command test in apiserver\nsome debugging\nfree sms now running fine
This commit is contained in:
21
utils.php
21
utils.php
@@ -16,6 +16,27 @@
|
||||
print ("MOHA-" . $logString . EOL);
|
||||
}
|
||||
}*/
|
||||
|
||||
function checkTopicsAvailability()
|
||||
{
|
||||
global$topics;
|
||||
foreach($topics as $topicName => $topic)
|
||||
{
|
||||
if ($topic->status == 1)
|
||||
{
|
||||
logger(DEBUG, "time is " . time() . " lastSeen is " . $topic->lastSeen, __FILE__ . ":" . __LINE__ );
|
||||
|
||||
if ((time() - $topic->lastSeen > $topic->timeOut*60) and ($topic->notificationSent == false))
|
||||
{
|
||||
if (logger(ALERT, $topicName . _(" is not available"), __FILE__ . ":" . __LINE__) == false);
|
||||
{
|
||||
$topic->notificationSent = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function testActionneurs(array $actionneurs)
|
||||
{
|
||||
global $indexDevices;
|
||||
|
Reference in New Issue
Block a user