mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
Added function 'modules_is_not_init'
(cherry picked from commit a8162a1876010359642611962a2d97e6ac8fb632)
This commit is contained in:
parent
706971f763
commit
a64f1eda1d
@ -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_users.php');
|
||||||
include_once($config['homedir'] . '/include/functions_tags.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) {
|
function modules_is_disable_agent($id_agent_module) {
|
||||||
$sql = "
|
$sql = "
|
||||||
SELECT disabled
|
SELECT disabled
|
||||||
|
Loading…
x
Reference in New Issue
Block a user