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

More crap related to pending message deletion functionality.

parent 0d2dd4c3
No related branches found
No related tags found
No related merge requests found
......@@ -9,16 +9,38 @@ print("<span class='title'>Forum</span><br /><br />");
printBoards();
if(http_request.query.hasOwnProperty('board')) {
if(typeof http_request.query.board != "undefined") {
print("<script type='text/javascript'>");
print("toggleVisibility('group-" + http_request.query.board + "');");
print("</script>");
}
if(http_request.query.hasOwnProperty('sub') && http_request.query.sub != 'mail') {
if(typeof http_request.query.sub != "undefined" && http_request.query.sub != 'mail') {
print("<script type='text/javascript'>");
print("loadThreads('http://" + http_request.host + ":" + webIni.HTTPPort + "/forum-async.ssjs', '" + http_request.query.sub + "', " + ((http_request.query.hasOwnProperty('thread'))?false:true) + ");");
if(http_request.query.hasOwnProperty('thread'))
print("loadThread('http://" + http_request.host + ":" + webIni.HTTPPort + "/forum-async.ssjs', '" + http_request.query.sub + "', '" + http_request.query.thread + "', " + false + ");");
print(
"loadThreads('http://"
+ http_request.host
+ ":"
+ webIni.HTTPPort
+ "/forum-async.ssjs', '"
+ http_request.query.sub
+ "', "
+ ((http_request.query.hasOwnProperty('thread'))?false:true)
+ ");"
);
if(typeof http_request.query.thread != "undefined") {
print("loadThread('http://"
+ http_request.host
+ ":"
+ webIni.HTTPPort
+ "/forum-async.ssjs', '"
+ http_request.query.sub
+ "', '"
+ http_request.query.thread
+ "', "
+ false
+ ");"
);
}
print("</script>");
}
\ No newline at end of file
......@@ -9,8 +9,16 @@ 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>",
http_request.host, webIni.HTTPPort, webIni.appendURL, "mail", user.alias, user.name, ""
print(
format(
"<a class='ulLink' onclick='addPost(\"http://%s:%s%s/forum-async.ssjs\", \"%s\", \"%s\", \"%s\", \"%s\")'>Compose a new email</a>",
http_request.host,
webIni.HTTPPort,
webIni.appendURL,
"mail",
user.alias,
user.name,
""
)
);
print("<div id='sub-mail-newMsgBox'></div>");
......@@ -19,11 +27,26 @@ if(user.alias != webIni.WebGuest) {
print("<div id='sub-mail-info' class='border box msg' style='display:none;'></div>");
print("<script type='text/javascript'>");
print(
"loadThreads('http://" + http_request.host + ":" + webIni.HTTPPort + webIni.appendURL + "/forum-async.ssjs', 'mail', " + ((http_request.query.hasOwnProperty('thread'))?false:true) + ");"
"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')) {
if(typeof http_request.query.thread != "undefined") {
print(
"loadThread('http://" + http_request.host + ":" + webIni.HTTPPort + webIni.appendURL + "/forum-async.ssjs', 'mail', '" + http_request.query.thread + "', " + false + ");"
"loadThread('http://"
+ http_request.host
+ ":"
+ webIni.HTTPPort
+ webIni.appendURL
+ "/forum-async.ssjs', 'mail', '"
+ http_request.query.thread
+ "', "
+ false
+ ");"
);
}
print("</script>");
......
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