|
|
@ -56,7 +56,7 @@ import de.anomic.plasma.plasmaSwitchboard;
|
|
|
|
import de.anomic.server.serverFileUtils;
|
|
|
|
import de.anomic.server.serverFileUtils;
|
|
|
|
import de.anomic.server.serverObjects;
|
|
|
|
import de.anomic.server.serverObjects;
|
|
|
|
import de.anomic.server.serverSwitch;
|
|
|
|
import de.anomic.server.serverSwitch;
|
|
|
|
import de.anomic.tools.unHtml;
|
|
|
|
import de.anomic.tools.bbCode;
|
|
|
|
|
|
|
|
|
|
|
|
public class Messages_p {
|
|
|
|
public class Messages_p {
|
|
|
|
|
|
|
|
|
|
|
@ -69,6 +69,7 @@ public class Messages_p {
|
|
|
|
public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) {
|
|
|
|
public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) {
|
|
|
|
plasmaSwitchboard switchboard = (plasmaSwitchboard) env;
|
|
|
|
plasmaSwitchboard switchboard = (plasmaSwitchboard) env;
|
|
|
|
serverObjects prop = new serverObjects();
|
|
|
|
serverObjects prop = new serverObjects();
|
|
|
|
|
|
|
|
bbCode bb = new bbCode();
|
|
|
|
|
|
|
|
|
|
|
|
String action = ((post == null) ? "list" : post.get("action", "list"));
|
|
|
|
String action = ((post == null) ? "list" : post.get("action", "list"));
|
|
|
|
String messages = "";
|
|
|
|
String messages = "";
|
|
|
@ -101,7 +102,7 @@ public class Messages_p {
|
|
|
|
messages += "<td>" + dateString(message.date()) + "</td>";
|
|
|
|
messages += "<td>" + dateString(message.date()) + "</td>";
|
|
|
|
messages += "<td>" + message.author() + "</td>";
|
|
|
|
messages += "<td>" + message.author() + "</td>";
|
|
|
|
messages += "<td>" + message.recipient() + "</td>";
|
|
|
|
messages += "<td>" + message.recipient() + "</td>";
|
|
|
|
messages += "<td>" + (new unHtml(message.subject())).un() + "</td>";
|
|
|
|
messages += "<td>" + bb.bb(message.subject()) + "</td>";
|
|
|
|
messages += "<td>" +
|
|
|
|
messages += "<td>" +
|
|
|
|
"<a href=\"Messages_p.html?action=view&object=" + key + "\">view</a> / " +
|
|
|
|
"<a href=\"Messages_p.html?action=view&object=" + key + "\">view</a> / " +
|
|
|
|
"<a href=\"MessageSend_p.html?hash=" + message.authorHash() + "&subject=Re: " + message.subject() + "\">reply</a> / " +
|
|
|
|
"<a href=\"MessageSend_p.html?hash=" + message.authorHash() + "&subject=Re: " + message.subject() + "\">reply</a> / " +
|
|
|
@ -122,8 +123,8 @@ public class Messages_p {
|
|
|
|
messages += "<tr><td class=\"MenuHeader\">From:</td><td class=\"MessageBackground\">" + message.author() + "</td></tr>";
|
|
|
|
messages += "<tr><td class=\"MenuHeader\">From:</td><td class=\"MessageBackground\">" + message.author() + "</td></tr>";
|
|
|
|
messages += "<tr><td class=\"MenuHeader\">To:</td><td class=\"MessageBackground\">" + message.recipient() + "</td></tr>";
|
|
|
|
messages += "<tr><td class=\"MenuHeader\">To:</td><td class=\"MessageBackground\">" + message.recipient() + "</td></tr>";
|
|
|
|
messages += "<tr><td class=\"MenuHeader\">Send Date:</td><td class=\"MessageBackground\">" + dateString(message.date()) + "</td></tr>";
|
|
|
|
messages += "<tr><td class=\"MenuHeader\">Send Date:</td><td class=\"MessageBackground\">" + dateString(message.date()) + "</td></tr>";
|
|
|
|
messages += "<tr><td class=\"MenuHeader\">Subject:</td><td class=\"MessageBackground\">" + (new unHtml(message.subject())).un() + "</td></tr>";
|
|
|
|
messages += "<tr><td class=\"MenuHeader\">Subject:</td><td class=\"MessageBackground\">" + bb.bb(message.subject()) + "</td></tr>";
|
|
|
|
messages += "<tr><td class=\"MessageBackground\" colspan=\"2\">" + (new unHtml(new String(message.message()))).un() + "</td></tr>";
|
|
|
|
messages += "<tr><td class=\"MessageBackground\" colspan=\"2\">" + bb.bb(new String(message.message())) + "</td></tr>";
|
|
|
|
messages += "<tr><td class=\"MenuHeader\">Action:</td>" +
|
|
|
|
messages += "<tr><td class=\"MenuHeader\">Action:</td>" +
|
|
|
|
"<td class=\"MessageBackground\">" +
|
|
|
|
"<td class=\"MessageBackground\">" +
|
|
|
|
"<a href=\"Messages_p.html\">inbox</a> / " +
|
|
|
|
"<a href=\"Messages_p.html\">inbox</a> / " +
|
|
|
|