Skip to content
Snippets Groups Projects
Commit 988b5e69 authored by echicken's avatar echicken
Browse files

Use system.inet_addr instead of imaginary hostname value.

parent 009913fe
No related branches found
No related tags found
No related merge requests found
......@@ -49,7 +49,7 @@ function printBoards() {
out += "<div class='border msg indentBox1'>";
out += format(
"<a class='ulLink' onclick='loadThreads(\"http://%s:%s/%s/forum-async.ssjs\", \"%s\")'>%s</a><br />",
webIni.HostName, webIni.HTTPPort, webIni.appendURL, msg_area.grp_list[g].sub_list[s].code, msg_area.grp_list[g].sub_list[s].name
system.inet_addr, webIni.HTTPPort, 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);
msgBase.open();
......@@ -61,7 +61,7 @@ function printBoards() {
if(user.alias != webIni.WebGuest && user.compare_ars(msgBase.cfg.post_ars)) {
out += format(
"<br /><a class='ulLink' onclick='addPost(\"http://%s:%s/%s/forum-async.ssjs\", \"%s\", \"%s\", \"%s\", \"%s\")'>Post a new message</a>",
webIni.HostName, webIni.HTTPPort, webIni.appendURL, msg_area.grp_list[g].sub_list[s].code, user.alias, user.name
system.inet_addr, webIni.HTTPPort, 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);
}
......@@ -91,7 +91,7 @@ function printThreads(sub) {
out += "<div class='border indentBox2 msg'>";
out += format(
"<a class='ulLink' onclick='loadThread(\"http://%s:%s/%s/forum-async.ssjs\", \"%s\", \"%s\")'>%s</a><br />",
webIni.HostName, webIni.HTTPPort, webIni.appendURL, sub, threads.order[t], header.subject
system.inet_addr, webIni.HTTPPort, webIni.appendURL, sub, threads.order[t], header.subject
);
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) {
......@@ -138,7 +138,7 @@ function printThread(sub, t) {
if(user.alias != webIni.WebGuest && user.compare_ars(msgBase.cfg.post_ars))
out += format(
" - <a class='ulLink' onclick='addReply(\"http://%s:%s/%s/forum-async.ssjs\", \"%s\", \"%s\", \"%s\", \"%s\", \"%s\", \"%s\")'>Reply</a>",
webIni.HostName, webIni.HTTPPort, webIni.appendURL, sub, t, header.number, header.from, user.alias, header.subject
system.inet_addr, webIni.HTTPPort, webIni.appendURL, sub, t, header.number, header.from, user.alias, header.subject
);
out += "</div>";
}
......
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