Description
void this->
AddVarToDomainTemplate(string key,string label,string value);
Write (replace if exists) to the domain template config file the value of the label in the key section.
Special values:
[domain] = if there is in the value the word[domain] , it will be replaced at run time with the name of the domain that load the config.
i.e.
lover=[domain].lover
when you load
the config file for the domain
Example.
Source:
//--------------//
local_domain_add_config.cstemplate
[ADD_VARIABLES]
proprieta=64
repwd=
perc_user_aggre=0.0
//--------------//
CS_ADMIN_SCRIPT this = new CS_ADMIN_SCRIPT($_this);
int Main(CAdminRequest pRequest, CAdminResponse pResponse)
{
this->AddVarToDomainTemplate("ADD_VARIABLES","drop_exe_file","1");
return 0;
}
|
Out:
//--------------//
local_domain_add_config.cstemplate
[ADD_VARIABLES]
proprieta=64
repwd=
perc_user_aggre=0.0
drop_exe_file=1
//--------------// |
|