add mail signature (useless for now)
This commit is contained in:
104
zefie_wtvp_minisrv/ServiceVault/wtv-setup/mail-signature.js
Normal file
104
zefie_wtvp_minisrv/ServiceVault/wtv-setup/mail-signature.js
Normal file
@@ -0,0 +1,104 @@
|
||||
var minisrv_service_file = true;
|
||||
|
||||
headers = `200 OK
|
||||
Connection: Keep-Alive
|
||||
wtv-expire-all: wtv-
|
||||
wtv-expire-all: http
|
||||
Content-Type: text/html`
|
||||
|
||||
data = `<HTML>
|
||||
<HEAD>
|
||||
<TITLE>
|
||||
Mail signature setup
|
||||
</TITLE>
|
||||
<DISPLAY >
|
||||
</HEAD>
|
||||
<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="wtv-home:/ROMCache/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="wtv-home:/ROMCache/WebTVLogoJewel.gif" 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>
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
<tr><td abswidth=104 absheight=1 valign=top align=left>
|
||||
<tr><td abswidth=104 absheight=2 valign=top align=left bgcolor=6b4657>
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
</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="36d5ff" VLINK="36d5ff" HSPACE=0 VSPACE=0 FONTSIZE="large">
|
||||
<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>
|
||||
Mail signature
|
||||
</table>
|
||||
<td abswidth=20>
|
||||
<TR>
|
||||
<td>
|
||||
<td colspan=2 WIDTH=416 HEIGHT=118 VALIGN=top ALIGN=left>
|
||||
Type a short text <B>signature</B> here and it will be added to the end of each mail message you send.
|
||||
<TR>
|
||||
<TD>
|
||||
<TD colspan=2 WIDTH=416 HEIGHT=118 VALIGN=top ALIGN=left>
|
||||
<FORM method="POST" action="/validate-mail-signature">
|
||||
<INPUT type=hidden autosubmit=onleave>
|
||||
<TEXTAREA name="mail_signature"
|
||||
action="/validate-mail-signature"
|
||||
selected
|
||||
bgcolor="#191919" text="#44cc55"
|
||||
cursor=#cc9933
|
||||
cols=45 rows=4
|
||||
autoactivate
|
||||
nosoftbreaks
|
||||
maxlength=4096
|
||||
font=proportional>${ssid_sessions[socket.ssid].getSessionData("subscriber_signature") || ""}</TEXTAREA></FORM></TD>
|
||||
</FORM>
|
||||
<TR>
|
||||
<TD>
|
||||
<TD COLSPAN=4 HEIGHT=7 VALIGN=top ALIGN=left>
|
||||
<tr>
|
||||
<TD>
|
||||
<td colspan=4 height=2 valign=middle align=center bgcolor="2B2B2B">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" 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">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width=436 height=1>
|
||||
<TR>
|
||||
<TD>
|
||||
<TD COLSPAN=4 HEIGHT=4 VALIGN=top ALIGN=left>
|
||||
<TR>
|
||||
<TD>
|
||||
<TD COLSPAN=3 VALIGN=top ALIGN=right>
|
||||
<FORM action="client:goback">
|
||||
<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>
|
||||
`;
|
||||
127
zefie_wtvp_minisrv/ServiceVault/wtv-setup/mail.js
Normal file
127
zefie_wtvp_minisrv/ServiceVault/wtv-setup/mail.js
Normal file
@@ -0,0 +1,127 @@
|
||||
var minisrv_service_file = true;
|
||||
|
||||
headers = `200 OK
|
||||
Connection: Keep-Alive
|
||||
wtv-expire-all: wtv-
|
||||
wtv-expire-all: http
|
||||
Content-Type: text/html`
|
||||
|
||||
data = `<!--- *=* Copyright 1996, 1997 WebTV Networks, Inc. All rights reserved. --->
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>
|
||||
Mail settings
|
||||
</TITLE>
|
||||
<DISPLAY noscroll nologo>
|
||||
</HEAD>
|
||||
<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 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"
|
||||
>
|
||||
<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>
|
||||
Mail settings
|
||||
</table>
|
||||
<td abswidth=20>
|
||||
<TR>
|
||||
<td>
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<td WIDTH=198 HEIGHT=206 VALIGN=top ALIGN=left>
|
||||
<!--
|
||||
<A HREF="JavaScript:alert('This feature is not available.')" selected><BLACKFACE>Extras</BLACKFACE></A><BR>
|
||||
<FONT SIZE="-1">Additional features for storing, addressing, and replying to mail</FONT><BR>
|
||||
<spacer type=block WIDTH=1 HEIGHT=7><BR>
|
||||
<A HREF="JavaScript:alert('This feature is not available.')"><BLACKFACE>Listing</BLACKFACE></A><BR>
|
||||
<FONT SIZE="-1">Choose the order in which messages are listed in the mail list</FONT><BR>
|
||||
<spacer type=block WIDTH=1 HEIGHT=7><BR>
|
||||
<A HREF="JavaScript:alert('This feature is not available.')"><BLACKFACE>Message light</BLACKFACE></A><BR>
|
||||
<FONT SIZE="-1">Automatically check for mail once a day</FONT><BR>
|
||||
|
||||
<TD WIDTH=20>
|
||||
|
||||
<TD WIDTH=198 VALIGN=top ALIGN=left>
|
||||
-->
|
||||
<A HREF="wtv-setup:/mail-signature"><BLACKFACE>Signature</BLACKFACE></A><BR>
|
||||
<FONT SIZE="-1">Add personal text to the bottom of every message you send</FONT><BR>
|
||||
<spacer type=block WIDTH=1 HEIGHT=7><BR>
|
||||
<!--
|
||||
<A HREF="JavaScript:alert('This feature is not available.')"><BLACKFACE>Mail name</BLACKFACE></A><BR>
|
||||
<FONT SIZE="-1">Change the name that appears on your mail</FONT><BR>
|
||||
<spacer type=block WIDTH=1 HEIGHT=7><BR>
|
||||
<A HREF="JavaScript:alert('This feature is not available.')"><BLACKFACE>Remote mail</BLACKFACE></A><BR>
|
||||
<FONT SIZE="-1">Fetch mail from another mail account</FONT><BR>
|
||||
<spacer type=block WIDTH=1 HEIGHT=7><BR>
|
||||
<A HREF="JavaScript:alert('This feature is not available.')"><BLACKFACE>Junk Mail</BLACKFACE></A><BR>
|
||||
<FONT SIZE="-1">Block unwanted mail</FONT><BR>
|
||||
-->
|
||||
<TR>
|
||||
<TD>
|
||||
<TD COLSPAN=4 HEIGHT=9 VALIGN=top ALIGN=left>
|
||||
<!-- remove later -->
|
||||
<spacer type=block WIDTH=1 HEIGHT=44>
|
||||
<tr>
|
||||
<TD>
|
||||
<td colspan=4 height=2 valign=middle align=center bgcolor="2B2B2B">
|
||||
<!-- <spacer type=block width=436 height=1> -->
|
||||
<spacer type=block width=456 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>
|
||||
|
||||
|
||||
`;
|
||||
@@ -83,13 +83,9 @@ for ${ssid_sessions[socket.ssid].getSessionData("subscriber_username") || "You"}
|
||||
<font size="-1">
|
||||
<td WIDTH=150 HEIGHT=244 VALIGN=top ALIGN=left>
|
||||
<br><font size="-1"><blackface>
|
||||
`;
|
||||
// Mail
|
||||
if (!minisrv_config.config.hide_incomplete_features) {
|
||||
data += `<img src="ROMCache/BulletArrow.gif" width=6 height=13 valign=absmiddle><spacer type=block width=6 height=1>
|
||||
<a href="${notImplementedAlert}"><strike>Mail</strike></a><BR>
|
||||
<img src="ROMCache/BulletArrow.gif" width=6 height=13 valign=absmiddle><spacer type=block width=6 height=1>
|
||||
<a href="wtv-setup:/mail">Mail/Discuss</a><BR>
|
||||
<spacer type=block width=1 height=5><BR>`;
|
||||
}
|
||||
// password
|
||||
if (!minisrv_config.config.hide_incomplete_features) {
|
||||
data += `<img src="ROMCache/BulletArrow.gif" width=6 height=13 valign=absmiddle><spacer type=block width=6 height=1>
|
||||
@@ -131,13 +127,10 @@ data += `
|
||||
<a href="wtv-setup:/phone")">Dialing</a><BR>
|
||||
|
||||
<TD WIDTH=20>
|
||||
<TD WIDTH=500 VALIGN=top ALIGN=left>
|
||||
<spacer type=block width=6 height=14><font size="2"><br>`;
|
||||
// mail
|
||||
if (!minisrv_config.config.hide_incomplete_features) {
|
||||
data += `<strike>Signature and more</strike><BR>
|
||||
<TD WIDTH=300 VALIGN=top ALIGN=left>
|
||||
<spacer type=block width=6 height=14><font size="2"><br>
|
||||
Signature <strike>and more</strike><BR>
|
||||
<spacer type=block width=6 height=5><font size="2"><br>`;
|
||||
}
|
||||
// password
|
||||
if (!minisrv_config.config.hide_incomplete_features) {
|
||||
data += `<strike>Change your password</strike><BR>
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
if (request_headers.query && ssid_sessions[socket.ssid]) {
|
||||
ssid_sessions[socket.ssid].setSessionData("subscriber_signature", (request_headers.query.mail_signature) ? request_headers.query.mail_signature : "");
|
||||
ssid_sessions[socket.ssid].saveSessionData();
|
||||
headers = `200 OK
|
||||
Content-type: text/html`
|
||||
} else {
|
||||
var outdata = doErrorPage();
|
||||
headers = outdata[0];
|
||||
data = outdata[1];
|
||||
}
|
||||
@@ -241,6 +241,8 @@
|
||||
<SubType>Code</SubType>
|
||||
</Content>
|
||||
<Content Include="ServiceVault\wtv-setup\keyboard.js" />
|
||||
<Content Include="ServiceVault\wtv-setup\mail-signature.js" />
|
||||
<Content Include="ServiceVault\wtv-setup\mail.js" />
|
||||
<Content Include="ServiceVault\wtv-setup\phone-advanced.js" />
|
||||
<Content Include="ServiceVault\wtv-setup\phone-basic.js" />
|
||||
<Content Include="ServiceVault\wtv-setup\phone-call-wait-thresh.js" />
|
||||
@@ -263,6 +265,7 @@
|
||||
<Content Include="ServiceVault\wtv-setup\validate-bg-song-category.js">
|
||||
<SubType>Code</SubType>
|
||||
</Content>
|
||||
<Content Include="ServiceVault\wtv-setup\validate-mail-signature.js" />
|
||||
<Content Include="ServiceVault\wtv-setup\validate-screen-border.js">
|
||||
<SubType>Code</SubType>
|
||||
</Content>
|
||||
|
||||
Reference in New Issue
Block a user