- BREAKING CHANGE from v0.9.35 and eariler: Move accounts into subfolder of SessionStore - viewergen and viewer updates from @GraspYonOx - new homepage theme inspired by @GraspYonOx - connect setup also mostly by @GraspYonOx - numerous bug fixes - nntp-server-zefie is now on npmjs - implement proper nodejs debugging - will start to phase out using console.log for actual debugging - existing "debug" (verbose) messages will stay as is - future code debugging will use debug() to debug WIP, therefore not showing to most users if it is accidently left in
124 lines
3.1 KiB
JavaScript
124 lines
3.1 KiB
JavaScript
var minisrv_service_file = true;
|
|
|
|
headers = `200 OK
|
|
Connection: Keep-Alive
|
|
Content-Type: text/html`
|
|
|
|
data = `<!--- *=* Copyright 1996, 1997 WebTV Networks, Inc. All rights reserved. --->
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE>
|
|
Messenger
|
|
</TITLE>
|
|
<DISPLAY noscroll nologo>
|
|
</HEAD>
|
|
<script language="Javascript">
|
|
// convenience: bring up the main Messenger panel
|
|
function ShowMessengerPanel()
|
|
{ Blim.openMessagesPanel();
|
|
}
|
|
</script>
|
|
<sidebar width=110> <table cellspacing=0 cellpadding=0 BGCOLOR=452a36>
|
|
<tr>
|
|
<td colspan=3 abswidth=104 absheight=4>
|
|
<td rowspan=99 width=6 absheight=420 valign=top align=left>
|
|
<img src="file://ROM/Cache/Shadow.gif" width=6 height=420>
|
|
<tr>
|
|
<td abswidth=6>
|
|
<td abswidth=92 absheight=76>
|
|
<table href="wtv-home:/home" absheight=76 cellspacing=0 cellpadding=0>
|
|
<tr>
|
|
<td align=right>
|
|
<img src="${minisrv_config.config.service_logo}" width=87 height=67>
|
|
</table>
|
|
<td abswidth=6>
|
|
<tr><td absheight=5 colspan=3>
|
|
<table cellspacing=0 cellpadding=0>
|
|
<tr><td abswidth=104 absheight=2 valign=middle align=center bgcolor=2e1e26>
|
|
<spacer>
|
|
<tr><td abswidth=104 absheight=1 valign=top align=left>
|
|
<tr><td abswidth=104 absheight=2 valign=top align=left bgcolor=6b4657>
|
|
<spacer>
|
|
</table>
|
|
<tr><td absheight=132>
|
|
<tr><td absheight=166 align=right colspan=3>
|
|
<img src="ROMCache/SettingsBanner.gif" width=54 height=166>
|
|
<tr><td absheight=41>
|
|
</table>
|
|
</sidebar>
|
|
<BODY BGCOLOR="#191919" TEXT="#42CC55" LINK="189CD6" VLINK="189CD6" HSPACE=0 VSPACE=0 FONTSIZE="large"`;
|
|
if (request_headers.query.just_enabled == "true") {
|
|
data += "onload=ShowMessengerPanel()"
|
|
} data += `
|
|
>
|
|
<table cellspacing=0 cellpadding=0>
|
|
<tr>
|
|
<td abswidth=14>
|
|
<td colspan=3>
|
|
<table cellspacing=0 cellpadding=0>
|
|
<tr>
|
|
<td valign=center absheight=80>
|
|
<font size="+2" color="E7CE4A"><blackface><shadow>
|
|
Messenger
|
|
</table>
|
|
<td abswidth=20>
|
|
<TR>
|
|
<td>
|
|
<td WIDTH=205 HEIGHT=250 VALIGN=top ALIGN=left>
|
|
<table cellspacing=0 cellpadding=0>
|
|
<tr>
|
|
<td absheight=195 valign=top>
|
|
Messenger is currently <b>`;
|
|
if (session_data.getSessionData("messenger_enabled") == 1) {
|
|
data += "on"
|
|
} else {
|
|
data += "off"
|
|
} data += `</b>.
|
|
</table>
|
|
<TD WIDTH=20>
|
|
<TD WIDTH=198 VALIGN=top ALIGN=left>
|
|
<table cellspacing=0 cellpadding=0>
|
|
<tr>
|
|
<td align=left>
|
|
<a href="messenger-enable">Turn messenger `;
|
|
if (!session_data.getSessionData("messenger_enabled") == 1) {
|
|
data += "on"
|
|
} else {
|
|
data += "off"
|
|
} data += `</a></FONT>
|
|
<p>
|
|
<a href="messenger-account">Change your account</a>
|
|
<p>
|
|
<a href="messenger-info">Advanced Info</a>
|
|
</table>
|
|
</form>
|
|
<TR>
|
|
<TD>
|
|
<TD COLSPAN=4 HEIGHT=0 VALIGN=top ALIGN=left>
|
|
<tr>
|
|
<TD>
|
|
<td colspan=4 height=2 valign=middle align=center bgcolor="2B2B2B">
|
|
<spacer type=block width=436 height=1>
|
|
<tr>
|
|
<TD>
|
|
<td colspan=4 height=1 valign=top align=left>
|
|
<tr>
|
|
<TD>
|
|
<td colspan=4 height=2 valign=top align=left bgcolor="0D0D0D">
|
|
<spacer type=block width=436 height=1>
|
|
<TR>
|
|
<TD>
|
|
<TD COLSPAN=4 HEIGHT=4 VALIGN=top ALIGN=left>
|
|
<TR>
|
|
<TD>
|
|
<TD COLSPAN=2 VALIGN=top ALIGN=left>
|
|
<TD VALIGN=top ALIGN=right>
|
|
<FORM action="wtv-setup:/setup">
|
|
<FONT COLOR="#E7CE4A" SIZE=-1><SHADOW>
|
|
<INPUT TYPE=SUBMIT BORDERIMAGE="file://ROM/Borders/ButtonBorder2.bif" Value=Done NAME="Done" USESTYLE WIDTH=103>
|
|
</SHADOW></FONT></FORM>
|
|
<TD>
|
|
</TABLE>
|
|
</BODY>
|
|
</HTML>
|
|
`; |