this-> DeleteVarFromDomainTemplate

(Caronte Pcode version 2.0)

Description

void this->DeleteVarFromDomainTemplate(string key,string label);

Remove the label in the key section from the domain template config file.

Example.

Source:

//--------------//

local_domain_add_config.cstemplate

[ADD_VARIABLES]
proprieta=64
repwd=
perc_user_aggre=0.0
drop_exe_file=1

//--------------//

CS_ADMIN_SCRIPT this = new CS_ADMIN_SCRIPT($_this);

int Main(CAdminRequest pRequest, CAdminResponse pResponse)
{

this->DeleteVarFromDomainTemplate("ADD_VARIABLES","drop_exe_file");

return 0;

}


Out:

//--------------//

local_domain_add_config.cstemplate

[ADD_VARIABLES]
proprieta=64
repwd=
perc_user_aggre=0.0

//--------------//