Skip to content
Snippets Groups Projects
Commit 235754e6 authored by echicken's avatar echicken
Browse files

Removed references to webIni.HTTPPort. Port number is already included in http_request.host.

parent 0829809b
No related branches found
No related tags found
No related merge requests found
...@@ -49,8 +49,8 @@ function printBoards() { ...@@ -49,8 +49,8 @@ function printBoards() {
for(var s = 0; s < msg_area.grp_list[g].sub_list.length; s++) { for(var s = 0; s < msg_area.grp_list[g].sub_list.length; s++) {
out += "<div class='border msg indentBox1'>"; out += "<div class='border msg indentBox1'>";
out += format( out += format(
"<a class='ulLink' onclick='loadThreads(\"http://%s:%s%sforum-async.ssjs\", \"%s\")'>%s</a><br />", "<a class='ulLink' onclick='loadThreads(\"http://%s/%sforum-async.ssjs\", \"%s\")'>%s</a><br />",
http_request.host, webIni.HTTPPort, webIni.appendURL, msg_area.grp_list[g].sub_list[s].code, msg_area.grp_list[g].sub_list[s].name http_request.host, webIni.appendURL, msg_area.grp_list[g].sub_list[s].code, msg_area.grp_list[g].sub_list[s].name
); );
var msgBase = new MsgBase(msg_area.grp_list[g].sub_list[s].code); var msgBase = new MsgBase(msg_area.grp_list[g].sub_list[s].code);
msgBase.open(); msgBase.open();
...@@ -61,8 +61,8 @@ function printBoards() { ...@@ -61,8 +61,8 @@ function printBoards() {
out += format("Latest: %s, by %s on %s", h.subject, h.from, system.timestr(h.when_written_time)); out += format("Latest: %s, by %s on %s", h.subject, h.from, system.timestr(h.when_written_time));
if(user.alias != webIni.WebGuest && user.compare_ars(msgBase.cfg.post_ars)) { if(user.alias != webIni.WebGuest && user.compare_ars(msgBase.cfg.post_ars)) {
out += format( out += format(
"<br /><a class='ulLink' onclick='addPost(\"http://%s:%s%sforum-async.ssjs\", \"%s\", \"%s\", \"%s\", \"%s\")'>Post a new message</a>", "<br /><a class='ulLink' onclick='addPost(\"http://%s/%sforum-async.ssjs\", \"%s\", \"%s\", \"%s\", \"%s\")'>Post a new message</a>",
http_request.host, webIni.HTTPPort, webIni.appendURL, msg_area.grp_list[g].sub_list[s].code, user.alias, user.name http_request.host, webIni.appendURL, msg_area.grp_list[g].sub_list[s].code, user.alias, user.name
); );
out += format("<div id='sub-%s-newMsgBox'></div>", msg_area.grp_list[g].sub_list[s].code); out += format("<div id='sub-%s-newMsgBox'></div>", msg_area.grp_list[g].sub_list[s].code);
} }
...@@ -91,8 +91,8 @@ function printThreads(sub) { ...@@ -91,8 +91,8 @@ function printThreads(sub) {
out += format("<a class='ulLink' name='thread-%s'></a>", header.number); out += format("<a class='ulLink' name='thread-%s'></a>", header.number);
out += "<div class='border " + ((sub == "mail")?"box":"indentBox2") + " msg'>"; out += "<div class='border " + ((sub == "mail")?"box":"indentBox2") + " msg'>";
out += format( out += format(
"<a class='ulLink' onclick='loadThread(\"http://%s:%s%sforum-async.ssjs\", \"%s\", \"%s\")'>%s</a><br />", "<a class='ulLink' onclick='loadThread(\"http://%s/%sforum-async.ssjs\", \"%s\", \"%s\")'>%s</a><br />",
http_request.host, webIni.HTTPPort, webIni.appendURL, sub, threads.order[t], header.subject http_request.host, webIni.appendURL, sub, threads.order[t], header.subject
); );
out += format("Started by %s on %s<br />", header.from, system.timestr(header.when_written_time)); out += format("Started by %s on %s<br />", header.from, system.timestr(header.when_written_time));
if(threads.thread[threads.order[t]].messages.length > 1) { if(threads.thread[threads.order[t]].messages.length > 1) {
...@@ -140,8 +140,8 @@ function printThread(sub, t) { ...@@ -140,8 +140,8 @@ function printThread(sub, t) {
out += format("<a class='ulLink' onclick='toggleVisibility(\"sub-%s-thread-%s\")'>Collapse Thread</a>", sub, t); out += format("<a class='ulLink' onclick='toggleVisibility(\"sub-%s-thread-%s\")'>Collapse Thread</a>", sub, t);
if(user.alias != webIni.WebGuest && sub == 'mail' || (sub != 'mail' && user.compare_ars(msgBase.cfg.post_ars))) if(user.alias != webIni.WebGuest && sub == 'mail' || (sub != 'mail' && user.compare_ars(msgBase.cfg.post_ars)))
out += format( out += format(
" - <a class='ulLink' onclick='addReply(\"http://%s:%s%sforum-async.ssjs\", \"%s\", \"%s\", \"%s\", \"%s\", \"%s\", \"%s\")'>Reply</a>", " - <a class='ulLink' onclick='addReply(\"http://%s/%sforum-async.ssjs\", \"%s\", \"%s\", \"%s\", \"%s\", \"%s\", \"%s\")'>Reply</a>",
http_request.host, webIni.HTTPPort, webIni.appendURL, sub, t, header.number, header.from, user.alias, header.subject http_request.host, webIni.appendURL, sub, t, header.number, header.from, user.alias, header.subject
); );
out += "</div>"; out += "</div>";
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment