if (@file_exists($cfg['bin_php']) !== true) { $failed++; $tmpl->setvar('phpMissing', 1); } // check for sockets $loadedExtensions = get_loaded_extensions(); if (!in_array("sockets", $loadedExtensions)) { $failed++; $tmpl->setvar('socketsMissing', 1); } // set supported-var $tmpl->setvar('fluxdSupported', $failed > 0 ? 0 : 1); // fluxd core if (Fluxd::isRunning()) { $tmpl->setvar('fluxdRunning', 1); $tmpl->setvar('fluxdPid', Fluxd::getPid()); } else { $tmpl->setvar('fluxdRunning', 0); } $tmpl->setvar('fluxd_dbmode', $cfg["fluxd_dbmode"]); $tmpl->setvar('fluxd_loglevel', $cfg["fluxd_loglevel"]); // Qmgr FluxdServiceMod::initializeServiceMod('Qmgr'); // would not be needed as its done in main $tmpl->setvar('fluxd_Qmgr_enabled', $cfg["fluxd_Qmgr_enabled"]); $tmpl->setvar('fluxd_Qmgr_state', FluxdQmgr::getModState()); $tmpl->setvar('fluxd_Qmgr_interval', $cfg["fluxd_Qmgr_interval"]); $tmpl->setvar('fluxd_Qmgr_maxTotalTransfers', $cfg["fluxd_Qmgr_maxTotalTransfers"]); $tmpl->setvar('fluxd_Qmgr_maxUserTransfers', $cfg["fluxd_Qmgr_maxUserTransfers"]); // Watch FluxdServiceMod::initializeServiceMod('Watch');