main_site_url

This commit is contained in:
CHIEFSOFT\ameye
2023-07-23 09:57:02 -04:00
parent c1503e8131
commit f3969e7e49
8 changed files with 16 additions and 14 deletions
+8 -6
View File
@@ -756,6 +756,8 @@ long sendmoney_email(long mailtype, CVars in, CVars &out) {
CVars x, y, z;
C_CGI_Form form("", "");
form.LetStr("main_site_url", "https://www.wrenchboard.com/");
//char * server_name; // = getenv("SERVER_NAME");
out["server_name"] = CfgReadChar("system.server_name");
//sprintf(server_name, "%s", out["server_name"].c_str());
@@ -984,7 +986,7 @@ long LocationAccountLoginMail(CVars in) {
CVars x;
CVars out;
C_CGI_Form form("", "");
form.LetStr("main_site_url", "https://www.wrenchboard.com/");
out["server_name"] = CfgReadChar("system.server_name");
form.LetStr("server_name", out["server_name"].c_str());
form.LetStr("site_name", "WrenchBoard");
@@ -1080,7 +1082,7 @@ long ManagerAccountLoginMail(CVars in) {
CVars x;
CVars out;
C_CGI_Form form("", "");
form.LetStr("main_site_url", "https://www.wrenchboard.com/");
out["server_name"] = CfgReadChar("system.server_name");
form.LetStr("server_name", out["server_name"].c_str());
form.LetStr("site_name", "WrenchBoard");
@@ -1099,7 +1101,7 @@ long AccountPendingMail(CVars in) //TESTED
CVars x;
CVars out;
C_CGI_Form form("", "");
form.LetStr("main_site_url", "https://www.wrenchboard.com/");
out["server_name"] = CfgReadChar("system.server_name");
form.LetStr("server_name", out["server_name"].c_str());
form.LetStr("site_name", "WrenchBoard");
@@ -1129,7 +1131,7 @@ long WelcomeAccountMail(CVars in) // TESTED
CVars x;
CVars out;
C_CGI_Form form("", "");
form.LetStr("main_site_url", "https://www.wrenchboard.com/");
out["server_name"] = CfgReadChar("system.server_name");
form.LetStr("server_name", out["server_name"].c_str());
form.LetStr("site_name", "WrenchBoard");
@@ -1159,7 +1161,7 @@ long JobAddedMail(CVars in) //TESTED
CVars out;
C_CGI_Form form("", "");
const PGresult *res;
form.LetStr("main_site_url", "https://www.wrenchboard.com/");
out["server_name"] = CfgReadChar("system.server_name");
form.LetStr("server_name", out["server_name"].c_str());
form.LetStr("site_name", "WrenchBoard");
@@ -1205,7 +1207,7 @@ long CreateWrenchBoardGroupMail(CVars in) {
CVars x;
CVars out;
C_CGI_Form form("", "");
form.LetStr("main_site_url", "https://www.wrenchboard.com/");
out["server_name"] = CfgReadChar("system.server_name");
form.LetStr("server_name", out["server_name"].c_str());
form.LetStr("site_name", "WrenchBoard");