correction de bugs
This commit is contained in:
8
moha.php
8
moha.php
@ -38,7 +38,8 @@ $curlErr = 0; // Number of errors returned by curl
|
||||
$configDir = "./config"; // default config dir (production value is /etc/moha/)
|
||||
$hooksInitialized = 0; // are all hooks initialized ? false/true
|
||||
$flagHooks = false;
|
||||
$devicesRequest = false; //say to true when publishing device request to zigbee2mqtt
|
||||
$devicesRequest = false; // set to true when publishing device request to zigbee2mqtt
|
||||
$presence = array(); // name and status of presence
|
||||
|
||||
if ($testMode)
|
||||
{
|
||||
@ -60,6 +61,7 @@ if ($testMode)
|
||||
|
||||
if (!init()) exit(1);
|
||||
|
||||
|
||||
// gettext
|
||||
bindtextdomain("moha", "./locale");
|
||||
textdomain("moha");
|
||||
@ -207,8 +209,11 @@ require $configDir . "/properties2log.php";
|
||||
require "mqtt_functions.php";
|
||||
require "events.php";
|
||||
require "db_functions.php";
|
||||
require "config/liste_telephones.php";
|
||||
require "presence.php";
|
||||
require "apiserver/apiserver.php";
|
||||
|
||||
|
||||
logger(DEBUG, _("Loading stored events datas from ") . $dataPath . "events.db", __FILE__ . ":" . __LINE__);
|
||||
if (file_exists($dataPath . "events.db"))
|
||||
{
|
||||
@ -362,6 +367,7 @@ while (true)
|
||||
checkEvents();
|
||||
checkTopicsAvailability();
|
||||
if ($apiServerIsActive) apiServer($read);
|
||||
//presence();
|
||||
}
|
||||
|
||||
endMoha();
|
||||
|
Reference in New Issue
Block a user