Added function 'modules_is_not_init'

(cherry picked from commit a8162a1876)
This commit is contained in:
mdtrooper 2015-07-21 13:06:22 +02:00
parent 706971f763
commit a64f1eda1d
1 changed files with 9 additions and 0 deletions

View File

@ -23,6 +23,15 @@ include_once($config['homedir'] . "/include/functions_agents.php");
include_once($config['homedir'] . '/include/functions_users.php');
include_once($config['homedir'] . '/include/functions_tags.php');
function modules_is_not_init($id_agent_module) {
$row = db_get_row('tagente_estado', 'id_agente_modulo', $id_agent_module);
if ($row['estado'] == AGENT_MODULE_STATUS_NO_DATA)
return true;
else
return false;
}
function modules_is_disable_agent($id_agent_module) {
$sql = "
SELECT disabled