Skip to content
Snippets Groups Projects
Commit 3b6ebedb authored by echicken's avatar echicken
Browse files

Async requests go to http.request.host rather than system.inet_addr (forum was...

Async requests go to http.request.host rather than system.inet_addr (forum was updated, but this page was neglected.)
parent eb9a5b0e
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@ if(user.alias != webIni.WebGuest) {
print("<span class='title'>Email</span><br /><br />");
print("<div class='border box msg'>");
print(format( "<a class='ulLink' onclick='addPost(\"http://%s:%s%s/forum-async.ssjs\", \"%s\", \"%s\", \"%s\", \"%s\")'>Compose a new email</a>",
system.inet_addr, webIni.HTTPPort, webIni.appendURL, "mail", user.alias, user.name, ""
http_request.host, webIni.HTTPPort, webIni.appendURL, "mail", user.alias, user.name, ""
)
);
print("<div id='sub-mail-newMsgBox'></div>");
......@@ -18,9 +18,14 @@ if(user.alias != webIni.WebGuest) {
print("<div id='sub-mail' style='display:none;'></div>");
print("<div id='sub-mail-info' class='border box msg' style='display:none;'></div>");
print("<script type='text/javascript'>");
print("loadThreads('http://" + system.inet_addr + ":" + webIni.HTTPPort + webIni.appendURL + "/forum-async.ssjs', 'mail', " + ((http_request.query.hasOwnProperty('thread'))?false:true) + ");");
if(http_request.query.hasOwnProperty('thread'))
print("loadThread('http://" + system.inet_addr + ":" + webIni.HTTPPort + webIni.appendURL + "/forum-async.ssjs', 'mail', '" + http_request.query.thread + "', " + false + ");");
print(
"loadThreads('http://" + http_request.host + ":" + webIni.HTTPPort + webIni.appendURL + "/forum-async.ssjs', 'mail', " + ((http_request.query.hasOwnProperty('thread'))?false:true) + ");"
);
if(http_request.query.hasOwnProperty('thread')) {
print(
"loadThread('http://" + http_request.host + ":" + webIni.HTTPPort + webIni.appendURL + "/forum-async.ssjs', 'mail', '" + http_request.query.thread + "', " + false + ");"
);
}
print("</script>");
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment