mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 01:05:39 +02:00
Added a new group_id configuration option (win32).
This commit is contained in:
parent
9919322ba4
commit
8ec5f53100
@ -385,7 +385,8 @@ Pandora_Windows_Service::getXmlHeader () {
|
|||||||
char timestamp[20];
|
char timestamp[20];
|
||||||
string agent_name, os_name, os_version, encoding, value, xml, address, parent_agent_name, agent_name_cmd;
|
string agent_name, os_name, os_version, encoding, value, xml, address, parent_agent_name, agent_name_cmd;
|
||||||
string custom_id, url_address, latitude, longitude, altitude, position_description, gis_exec, gis_result, agent_mode;
|
string custom_id, url_address, latitude, longitude, altitude, position_description, gis_exec, gis_result, agent_mode;
|
||||||
string group_password, ehorus_conf;
|
string group_password, group_id, ehorus_conf;
|
||||||
|
string group_password, group_id;
|
||||||
time_t ctime;
|
time_t ctime;
|
||||||
struct tm *ctime_tm = NULL;
|
struct tm *ctime_tm = NULL;
|
||||||
int pos;
|
int pos;
|
||||||
@ -485,6 +486,14 @@ Pandora_Windows_Service::getXmlHeader () {
|
|||||||
xml += "\" group_password=\"";
|
xml += "\" group_password=\"";
|
||||||
xml += group_password;
|
xml += group_password;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Get Group ID
|
||||||
|
group_id = conf->getValue ("group_id");
|
||||||
|
if (group_id != "") {
|
||||||
|
xml += "\" group_id=\"";
|
||||||
|
xml += group_id;
|
||||||
|
}
|
||||||
|
|
||||||
// Get Coordinates
|
// Get Coordinates
|
||||||
gis_exec = conf->getValue ("gis_exec");
|
gis_exec = conf->getValue ("gis_exec");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user