v0.9.33
- numerous bug fixes - wtv-mail system - user account updates - viewergen alpha (experimental webtv viewer patcher on pc_service) - implement wtv-favorites with huge help from @JarHead4 - add wtv-ticket store api - Bump vm2 from 3.9.5 to 3.9.7 in /zefie_wtvp_minisrv - fix bf0app default rom - Add wtv-1800 service to wtv-1800:/noflash - handle webtvism: - allow get/post variables to be the same name multiple times - rather than overwrite, the server will now change the variable from a string to an array. - Rewrite script processing a bit - Instead of using eval() we now use a proper VM Context - As a result, any scripting errors will now give a more useful filename and line number. - However, some things may break, if they are dependant on variables we are not allowing in the context. - BREAKING CHANGES: - `ssid_sessions[socket.ssid]` is now `session_data` - `require` is no longer allowed in user scripts - add star service - change how we handle modules for services in the VM - fixed wtv-disk:/sync always failed the first time - implement production-like wtv-star handling (when a service port becomes unavailable, it requests the url over the wtv-star port to show an error page) - renamed WTVDownloadList.js to WTVDisk.js - a bit more work on WTVNews (created class) - probably more stuff I can't remember
This commit is contained in:
108
zefie_wtvp_minisrv/ServiceVault/wtv-home/Credits-Legal.js
Normal file
108
zefie_wtvp_minisrv/ServiceVault/wtv-home/Credits-Legal.js
Normal file
@@ -0,0 +1,108 @@
|
||||
var minisrv_service_file = true;
|
||||
|
||||
headers = `200 OK
|
||||
Connection: Keep-Alive
|
||||
Content-Type: text/html`
|
||||
data = `
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>
|
||||
${minisrv_config.config.service_name} Terms of Service
|
||||
</TITLE>
|
||||
<DISPLAY >
|
||||
</HEAD>
|
||||
<sidebar width=110> <table cellspacing=0 cellpadding=0 BGCOLOR="8C6A2E">
|
||||
<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="${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="5a4521">
|
||||
<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="c0954a">
|
||||
<img src="wtv-home:/ROMCache/Spacer.gif" width=1 height=1>
|
||||
</table>
|
||||
<tr><td absheight=100>
|
||||
<tr><td absheight=244 align=right colspan=3>
|
||||
<img src="images/TermsBanner.gif" width=48 height=136>
|
||||
<tr><td absheight=41>
|
||||
</table>
|
||||
</sidebar>
|
||||
<print blackandwhite>
|
||||
<print blackandwhite>
|
||||
<BODY BGCOLOR="#191919" TEXT="#44cc55" LINK="189CD6" VLINK="189CD6" HSPACE=0 VSPACE=0 FONTSIZE="large"
|
||||
>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td abswidth=14>
|
||||
<td abswidth=416 absheight=80 valign=center>
|
||||
<font size="+2" color="E7CE4A"><blackface><shadow>
|
||||
<font size="+1">
|
||||
<CENTER><B>${minisrv_config.config.service_name} Terms of Service</B></font><br>
|
||||
<B><font size="-1">(Release date January 21, 2022)</B></CENTER></font>
|
||||
<td abswidth=20>
|
||||
<tr>
|
||||
<td>
|
||||
<td valign=top align=left>
|
||||
<p><b>General</b><br>
|
||||
<p>This is a Work-in-Progress remaster of the WebTV service, originally hosted by WebTV Networks, Inc.
|
||||
This server has no affiliation with WebTV Networks, and many original assets and pages belong to them.</p>
|
||||
<p><b>Rules</b><br>
|
||||
<p>You must follow these rules, or your privilege to access this service may be revoked.</p>
|
||||
<ul>
|
||||
<li>Do not harass other users</li>
|
||||
<li>Do not impersonate others on the network</li>
|
||||
<li>Do not send spam e-mail</li>
|
||||
<li>Do not attempt to access unauthorized areas of the network</li>
|
||||
<li>Do not attempt to disrupt or otherwise negatively impact the service for others</li>
|
||||
<li>All users must be over 13 years of age, or be accompanied by a parent or guardian at all times</li>
|
||||
</ul>
|
||||
<p>Failure to abide by one or more of these rules may require your access to be terminated.</p>
|
||||
<p><b>Service Termination</b><br>
|
||||
<p>If you break one or more of the rules listed above, your access to the service may be revoked. Disclosure of your termination reason will be decided on a case-by-case basis. Any attempt for a banned user to regain access to the server will be dealt with immediately. If you know of a banned user who is still on the network, please report it to us by contacting ${minisrv_config.config.service_owner_contact} via ${minisrv_config.config.service_owner_contact_method}. All decisions are final, and will not be reverted.</p>
|
||||
|
||||
<p>These terms can change at any time, without warning. Your continued usage of the service is an agreement to these Terms of Service. If you do not agree to these terms, please disconnect immediately and contact ${minisrv_config.config.service_owner_contact} via ${minisrv_config.config.service_owner_contact_method} to terminate your account.</p>
|
||||
<td>
|
||||
<tr>
|
||||
<td absheight=7>
|
||||
<tr>
|
||||
<td>
|
||||
<td colspan=2 absheight=2 bgcolor="2B2B2B">
|
||||
<img src="ROMCache/Spacer.gif" width=426 height=1>
|
||||
<tr>
|
||||
<td absheight=1>
|
||||
<tr>
|
||||
<td>
|
||||
<td colspan=2 absheight=2 bgcolor="0D0D0D">
|
||||
<img src="ROMCache/Spacer.gif" width=426 height=1>
|
||||
<tr>
|
||||
<td absheight=4>
|
||||
</table>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td abswidth=430 valign=top align=right>
|
||||
<form
|
||||
action=client:goback>
|
||||
<font color="#E7CE4A" size=-1><shadow>
|
||||
<input
|
||||
selected
|
||||
type=submit borderimage="file://ROM/Borders/ButtonBorder2.bif" value=Done name="Done" usestyle width=103>
|
||||
</shadow></font></form>
|
||||
<td abswidth=20>
|
||||
<tr>
|
||||
<td absheight=15>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
`;
|
||||
120
zefie_wtvp_minisrv/ServiceVault/wtv-home/Credits-Privacy.js
Normal file
120
zefie_wtvp_minisrv/ServiceVault/wtv-home/Credits-Privacy.js
Normal file
@@ -0,0 +1,120 @@
|
||||
var minisrv_service_file = true;
|
||||
|
||||
headers = `200 OK
|
||||
Connection: Keep-Alive
|
||||
Content-Type: text/html`
|
||||
data = `
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>
|
||||
${minisrv_config.config.service_name} Service Privacy Statement
|
||||
</TITLE>
|
||||
<DISPLAY >
|
||||
</HEAD>
|
||||
<sidebar width=110> <table cellspacing=0 cellpadding=0 BGCOLOR="8C6A2E">
|
||||
<tr>
|
||||
<td colspan=3 abswidth=104 absheight=4>
|
||||
<td rowspan=99 width=6 absheight=420 valign=top align=left>
|
||||
<img src="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="${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="5a4521">
|
||||
<img src="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="c0954a">
|
||||
<img src="ROMCache/Spacer.gif" width=1 height=1>
|
||||
</table>
|
||||
<tr><td absheight=100>
|
||||
<tr><td absheight=244 align=right colspan=3>
|
||||
<img src="images/TermsBanner.gif" width=48 height=136>
|
||||
<tr><td absheight=41>
|
||||
</table>
|
||||
</sidebar>
|
||||
<print blackandwhite>
|
||||
<print blackandwhite>
|
||||
<BODY BGCOLOR="#191919" TEXT="#44cc55" LINK="189CD6" VLINK="189CD6" HSPACE=0 VSPACE=0 FONTSIZE="large"
|
||||
>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td abswidth=14>
|
||||
<td abswidth=416 absheight=80 valign=center>
|
||||
<font size="+2" color="E7CE4A"><blackface><shadow>
|
||||
<font size="+1">
|
||||
<CENTER><B>${minisrv_config.config.service_name} Service Privacy Statement</B></font><br>
|
||||
<B><font size="-1">(Release date Febuary 8, 2022)</B></CENTER></font>
|
||||
<td abswidth=20>
|
||||
<tr>
|
||||
<td>
|
||||
<td valign=top align=left>
|
||||
<p>The purpose of this WebTV server is to allow hobbyists and enthusiasts to have a way to use their WebTV units in modern times. There will be inaccuracies in some areas, and many features are still unimplemented.</p>
|
||||
<p><b>With Whom Personal Information Is Shared and What Is Collected</b><br>
|
||||
<p>When you register with a WebTV account on this server, you are sharing the following:</p>
|
||||
<ul>
|
||||
<li>Your WebTV SSID (Silicon Serial ID)</li>
|
||||
<li>Your name</li>
|
||||
<li>Your ZIP Code</li>
|
||||
<li>Pages you access</li>
|
||||
</ul>
|
||||
<p>This information is shared with the server operators.</p>
|
||||
<p><b>Your Silicon Serial ID</b><br>
|
||||
<p>Your Silicon Serial ID (SSID) is used to identify you on the network. Anyone with your SSID can impersonate you on the network, so don't share it. This ID is stored on our servers when you sign up, however it will not be shared with anyone except the server operators.</p>
|
||||
<p><b>Your Name</b><br>
|
||||
<p>The name that you enter while signing up will be stored on our servers, however it will not be shared with anyone except the server operators.</p>
|
||||
<p><b>Your ZIP Code</b><br>
|
||||
<p>The ZIP Code you enter to set weather info will be stored on our servers, and will only be sent to The Weather Channel to get current data. You are not required to enter a ZIP code, however it is required to fully utilize weather forecasting.</p>
|
||||
<p><b>Pages you access</b><br>
|
||||
<p>All pages you visit and images you download will be temporarily logged for security reasons. This includes WebTV Network pages and Internet Web sites. This information can not be traced back to you, and will only be viewable to server operators for a short time. IRC Chat messages will <b><i>not</i></b> be logged, however server operators can see what servers you are connecting to.</p>
|
||||
<p><b>How We Help Protect Children's Privacy</b><br>
|
||||
<p>We do not knowingly collect information from children under the age of 13 to comply with COPPA. If it becomes known that an account was created by someone under 13, the main user and all secondary accounts will be terminated immediately. All secondary users under 13 must be accompanied by a parent or guardian while using this service.</p>`;
|
||||
/*
|
||||
* //todo: decide if we should add a coppa config var to deal with this
|
||||
* <!-- <p><font size="-1"><i>MSN Privacy<br>
|
||||
Microsoft Corporation<br>
|
||||
One Microsoft Way<br>
|
||||
Redmond, Washington 98052<br>
|
||||
425-882-8080<br></i></font> -->
|
||||
*/
|
||||
|
||||
data += `<p>This Privacy Statement can change at any time, and without warning. If you do not agree with this Privacy Statement, please disconnect and contact ${minisrv_config.config.service_owner_contact} via ${minisrv_config.config.service_owner_contact_method} to terminate your account.</p>
|
||||
<td>
|
||||
<tr>
|
||||
<td absheight=7>
|
||||
<tr>
|
||||
<td>
|
||||
<td colspan=2 absheight=2 bgcolor="2B2B2B">
|
||||
<img src="ROMCache/Spacer.gif" width=426 height=1>
|
||||
<tr>
|
||||
<td absheight=1>
|
||||
<tr>
|
||||
<td>
|
||||
<td colspan=2 absheight=2 bgcolor="0D0D0D">
|
||||
<img src="ROMCache/Spacer.gif" width=426 height=1>
|
||||
<tr>
|
||||
<td absheight=4>
|
||||
</table>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td abswidth=430 valign=top align=right>
|
||||
<form
|
||||
action=client:goback>
|
||||
<font color="#E7CE4A" size=-1><shadow>
|
||||
<input
|
||||
selected
|
||||
type=submit borderimage="file://ROM/Borders/ButtonBorder2.bif" value=Done name="Done" usestyle width=103>
|
||||
</shadow></font></form>
|
||||
<td abswidth=20>
|
||||
<tr>
|
||||
<td absheight=15>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
`;
|
||||
@@ -1,82 +1,392 @@
|
||||
var minisrv_service_file = true;
|
||||
|
||||
headers =`200 OK
|
||||
|
||||
if (request_headers.query.url) {
|
||||
headers = `300 OK
|
||||
Location: ${request_headers.query.url}`;
|
||||
} else {
|
||||
headers = `200 OK
|
||||
Connection: Keep-Alive
|
||||
wtv-expire-all: wtv-home:/splash
|
||||
wtv-expire-all: wtv-flashrom:
|
||||
Content-type: text/html`
|
||||
var cryptstatus = (wtv_encrypted ? "Encrypted" : "Not Encrypted")
|
||||
|
||||
if (request_headers.query.url) headers += "\nwtv-visit: " + request_headers.query.url;
|
||||
var cryptstatus = ((socket_sessions[socket.id].secure === true) ? "Encrypted" : "Not Encrypted")
|
||||
var comp_type = wtvmime.shouldWeCompress(session_data, 'text/html');
|
||||
var compstatus = "uncompressed";
|
||||
switch (comp_type) {
|
||||
case 1:
|
||||
compstatus = "wtv-lzpf";
|
||||
break;
|
||||
case 2:
|
||||
compstatus = "gzip (level 9)";
|
||||
break;
|
||||
}
|
||||
|
||||
var comp_type = wtvmime.shouldWeCompress(ssid_sessions[socket.ssid],'text/html');
|
||||
var compstatus = "uncompressed";
|
||||
switch (comp_type) {
|
||||
case 1:
|
||||
compstatus = "wtv-lzpf";
|
||||
break;
|
||||
case 2:
|
||||
compstatus = "gzip (level 9)";
|
||||
break;
|
||||
}
|
||||
var unread_mailcount = session_data.mailstore.countUnreadMessages(0)
|
||||
var mailbox_gif_num = 0; // no messages
|
||||
if (unread_mailcount > 0) {
|
||||
if (unread_mailcount == 1) mailbox_gif_num = 1;
|
||||
else mailbox_gif_num = 2;
|
||||
}
|
||||
|
||||
data = `<html>
|
||||
<head>
|
||||
<title>Home for ${ssid_sessions[socket.ssid].getSessionData("subscriber_username") || "minisrv"}</title>
|
||||
<DISPLAY NoLogo hideoptions noscroll>
|
||||
</head>
|
||||
<body bgcolor="black" link="gold" vlink="gold" alink="gold" text="gold">
|
||||
<script>
|
||||
function go() {
|
||||
location.href=document.access.url.value;
|
||||
}
|
||||
</script>
|
||||
<b>Welcome to ${minisrv_config.config.service_name}`;
|
||||
if (ssid_sessions[socket.ssid].getSessionData("registered")) data += ", " + ssid_sessions[socket.ssid].getSessionData("subscriber_username") + "!";
|
||||
data += `</b><br>
|
||||
<div width="540" align="right">
|
||||
<font size="-4"><i>
|
||||
minisrv v${minisrv_config.version}${(minisrv_config.config.git_commit) ? ' git-'+minisrv_config.config.git_commit : ''}, hosted by ${minisrv_config.config.service_owner}</i></small></font></div><br>
|
||||
|
||||
<hr>
|
||||
<b>Status</b>: ${cryptstatus} (${compstatus})<br>
|
||||
<b>Connection Speed</b>: &rate;
|
||||
<hr>
|
||||
<form name=access onsubmit="go()">
|
||||
<ul>
|
||||
<li><a href="client:relog">client:relog (direct)</a></li>
|
||||
<li><a href="wtv-flashrom:/willie" selected>Ultra Willies</a> ~ <a href="wtv-tricks:/tricks">Tricks</a></li>
|
||||
<li><a href="wtv-setup:/setup">Setup (Including BG Music)</a></li>
|
||||
data = `<HTML>
|
||||
<HEAD>
|
||||
|
||||
<TITLE>Home for ${session_data.getSessionData("subscriber_username") || "minisrv"}</TITLE>
|
||||
<DISPLAY noscroll fontsize="medium">
|
||||
</HEAD>
|
||||
|
||||
<body background="wtv-home:/images/BackgroundGradient.gif" text="44cc55" link="6977a9" vlink="6977a9" hspace=0 vspace=0 >
|
||||
|
||||
<sidebar width=138>
|
||||
<table cellspacing=0 cellpadding=0 bgcolor="30364D">
|
||||
<!-- BEGIN LOGO SPAN -->
|
||||
<tr>
|
||||
<td width=138 absheight=112 valign=top align=center>
|
||||
<img src="file://rom/Images/Spacer.gif" width=1 height=9><br>
|
||||
|
||||
<a HREF="client:showservices">
|
||||
<img src="file://rom/Images/Spacer.gif" width=1 height=2>
|
||||
<img src="${minisrv_config.config.service_logo}"" width=127 height=98>
|
||||
</A>
|
||||
|
||||
<!-- BEGIN SEPARATOR -->
|
||||
<tr>
|
||||
<td absheight=5>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td abswidth=138 absheight=2 valign=middle align=center bgcolor="1C1E28">
|
||||
<img src="file://rom/Images/Spacer.gif" width=1 height=1>
|
||||
<tr>
|
||||
<td abswidth=138 absheight=1 valign=top align=left>
|
||||
<tr>
|
||||
<td abswidth=138 absheight=2 valign=top align=left bgcolor="4D5573">
|
||||
<img src="file://rom/Images/Spacer.gif" width=1 height=1>
|
||||
</table>
|
||||
<!-- END LOGO SPAN -->
|
||||
|
||||
<!-- BEGIN SPAN -->
|
||||
<tr>
|
||||
<td absheight=25>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td height=2>
|
||||
<tr>
|
||||
<td abswidth=7>
|
||||
<td abswidth=125>
|
||||
<table cellspacing=0 cellpadding=0 href="client:relogin">
|
||||
<tr>
|
||||
<td>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td>
|
||||
<shadow><font size=3 color=e7ce4a>Login</font></shadow>
|
||||
</table>
|
||||
</table>
|
||||
<td abswidth=6>
|
||||
</table>
|
||||
|
||||
<!-- BEGIN SEPARATOR -->
|
||||
<tr>
|
||||
<td absheight=5>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td abswidth=138 absheight=2 valign=middle align=center bgcolor="1C1E28">
|
||||
<img src="file://rom/Images/Spacer.gif" width=1 height=1>
|
||||
<tr>
|
||||
<td abswidth=138 absheight=1 valign=top align=left>
|
||||
<tr>
|
||||
<td abswidth=138 absheight=2 valign=top align=left bgcolor="4D5573">
|
||||
<img src="file://rom/Images/Spacer.gif" width=1 height=1>
|
||||
</table>
|
||||
<!-- END SPAN -->
|
||||
|
||||
<!-- BEGIN SPAN -->
|
||||
<tr>
|
||||
<td absheight=25>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td height=2>
|
||||
<tr>
|
||||
<td abswidth=7>
|
||||
<td abswidth=125>
|
||||
|
||||
|
||||
<table cellspacing=0 cellpadding=0 href="wtv-setup:/setup">
|
||||
<tr>
|
||||
<td>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td>
|
||||
<shadow><font size=3 color=e7ce4a>Setup</font></shadow>
|
||||
</table>
|
||||
</table>
|
||||
<td abswidth=6>
|
||||
</table>
|
||||
|
||||
<!-- BEGIN SEPARATOR -->
|
||||
<tr>
|
||||
<td absheight=5>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td abswidth=138 absheight=2 valign=middle align=center bgcolor="1C1E28">
|
||||
<img src="file://rom/Images/Spacer.gif" width=1 height=1>
|
||||
<tr>
|
||||
<td abswidth=138 absheight=1 valign=top align=left>
|
||||
<tr>
|
||||
<td abswidth=138 absheight=2 valign=top align=left bgcolor="4D5573">
|
||||
<img src="file://rom/Images/Spacer.gif" width=1 height=1>
|
||||
</table>
|
||||
<!-- END SPAN -->
|
||||
|
||||
|
||||
<!-- BEGIN SPAN -->
|
||||
<tr>
|
||||
<td absheight=25>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td height=2>
|
||||
<tr>
|
||||
<td abswidth=7>
|
||||
<td abswidth=125>
|
||||
|
||||
<table cellspacing=0 cellpadding=0 href="wtv-tricks:/tricks">
|
||||
<tr>
|
||||
<td>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td>
|
||||
<shadow><font size=3 color=e7ce4a>Tricks</font></shadow>
|
||||
</table>
|
||||
</table>
|
||||
|
||||
<td abswidth=6>
|
||||
</table>
|
||||
|
||||
<!-- BEGIN SEPARATOR -->
|
||||
|
||||
|
||||
<!-- BEGIN SEPARATOR -->
|
||||
<tr>
|
||||
<td absheight=5>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td abswidth=138 absheight=2 valign=middle align=center bgcolor="1C1E28">
|
||||
<img src="file://rom/Images/Spacer.gif" width=1 height=1>
|
||||
<tr>
|
||||
<td abswidth=138 absheight=1 valign=top align=left>
|
||||
<tr>
|
||||
<td abswidth=138 absheight=2 valign=top align=left bgcolor="4D5573">
|
||||
<img src="file://rom/Images/Spacer.gif" width=1 height=1>
|
||||
</table>
|
||||
<!-- END SPAN -->
|
||||
|
||||
`;
|
||||
if (ssid_sessions[socket.ssid].hasCap("client-can-do-chat")) {
|
||||
data += "<li><a href=\"wtv-chat:/home\">IRC Chat Test</a></li>\n"
|
||||
}
|
||||
if (ssid_sessions[socket.ssid].hasCap("client-has-disk")) {
|
||||
// only show disk stuff if client has disk
|
||||
data += "<li><a href=\"client:diskhax\">DiskHax</a> ~ <a href=\"client:vfathax\">VFatHax</a></li>\n";
|
||||
if (ssid_sessions[socket.ssid].hasCap("client-can-do-macromedia-flash2")) {
|
||||
// only show demo if client can do flash2
|
||||
data += "<li>Old DealerDemo: <a href=\"wtv-disk:/sync?group=DealerDemo&diskmap=DealerDemo\">Download</a> ~ <a href=\"file://Disk/Demo/index.html\">Access</a></li>\n";
|
||||
data += `
|
||||
<!-- BEGIN SPAN -->
|
||||
<tr>
|
||||
<td absheight=25>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td height=2>
|
||||
<tr>
|
||||
<td abswidth=7>
|
||||
<td abswidth=125>
|
||||
|
||||
<table cellspacing=0 cellpadding=0 href="wtv-guide:/help?topic=Index&subtopic=Glossary">
|
||||
<tr>
|
||||
<td>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td>
|
||||
<shadow><font size=3 color=e7ce4a>Help</font> <font size=-2 color=e7ce4a><sup>(WIP)</sup></font></shadow>
|
||||
</table>
|
||||
</table>
|
||||
|
||||
<td abswidth=6>
|
||||
</table>
|
||||
|
||||
<!-- BEGIN SEPARATOR -->
|
||||
<tr>
|
||||
<td absheight=5>
|
||||
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td abswidth=138 absheight=2 valign=middle align=center bgcolor="1C1E28">
|
||||
<img src="file://rom/Images/Spacer.gif" width=1 height=1>
|
||||
<tr>
|
||||
<td abswidth=138 absheight=1 valign=top align=left>
|
||||
<tr>
|
||||
<td abswidth=138 absheight=2 valign=top align=left bgcolor="4D5573">
|
||||
<img src="file://rom/Images/Spacer.gif" width=1 height=1>
|
||||
</table>
|
||||
<!-- END SPAN -->
|
||||
|
||||
<!-- ADJUST ME FOR HOME TEXT HEIGHT -->
|
||||
<tr>
|
||||
<td absheight=28>
|
||||
|
||||
<tr>
|
||||
<td align=right>
|
||||
<img src="wtv-home:/images/HomeBanner.gif" width=48 height=126>
|
||||
|
||||
<tr>
|
||||
<td absheight=5>
|
||||
|
||||
</table>
|
||||
</sidebar>
|
||||
|
||||
|
||||
<table cellspacing=0 cellpadding=0 width=100% height=383>
|
||||
<tr>
|
||||
<td rowspan=10 background="wtv-home:/images/BackgroundGradientEdge.gif" width=6 height=100%>
|
||||
|
||||
<tr>
|
||||
<td valign=top absheight=113>
|
||||
<table cellspacing=0 cellpadding=0 width=100%>
|
||||
<tr>
|
||||
<!-- BEGIN ICON #1 -->
|
||||
<td width=9%>
|
||||
<td absheight=113 width=18%>
|
||||
<LINK REL=next HREF="wtv-mail:/listmail">
|
||||
<table cellspacing=0 cellpadding=0 border=0 href="wtv-mail:/listmail" selected nocolor width=100%>
|
||||
<tr>
|
||||
<td height=10>
|
||||
<tr>
|
||||
<td align=center>
|
||||
<img src="file://ROMCache/OpenMailbox${mailbox_gif_num}.gif" border=0 width=61 height=52>
|
||||
<tr>
|
||||
<td height=4>
|
||||
<tr>
|
||||
<td valign=bottom>
|
||||
<table cellspacing=0 cellpadding=0 width=100%>
|
||||
<tr>
|
||||
<td align=center>
|
||||
<font size=3 color=#000000>Mail</font>
|
||||
</table>
|
||||
</table>
|
||||
|
||||
<!-- BEGIN ICON #2 -->
|
||||
<td width=6%>
|
||||
<td absheight=113 width=22%>
|
||||
<table cellspacing=0 cellpadding=0 border=0 href="wtv-favorite:/favorite" nocolor>
|
||||
<tr>
|
||||
<td height=12>
|
||||
<tr>
|
||||
<td align=center>
|
||||
<img src="file://ROMCache/TreasureChest1.gif" border=0 width=92 height=52>
|
||||
<tr>
|
||||
<td height=2>
|
||||
<tr>
|
||||
<td valign=bottom>
|
||||
<table cellspacing=0 cellpadding=0 width=100%>
|
||||
<tr>
|
||||
<td align=center>
|
||||
<font size=3 color=#000000>Favorites</font>
|
||||
</table>
|
||||
</table>
|
||||
|
||||
<!-- BEGIN ICON #3 -->
|
||||
<td width=5%>
|
||||
<td absheight=113 width=19%>
|
||||
<table cellspacing=0 cellpadding=0 border=0 href="wtv-flashrom:/willie" nocolor>
|
||||
<tr>
|
||||
<td height=5>
|
||||
<tr>
|
||||
<td align=center>
|
||||
<img src="wtv-home:/images/rom.gif" border=0 width=68 height=59>
|
||||
<tr>
|
||||
<td height=2>
|
||||
<tr>
|
||||
<td valign=bottom>
|
||||
<table cellspacing=0 cellpadding=0 width=100%>
|
||||
<tr>
|
||||
<td align=center>
|
||||
<font size=3 color=#000000>Flashroms</font>
|
||||
</table>
|
||||
</table>
|
||||
|
||||
<!-- BEGIN ICON #4 -->
|
||||
<td absheight=113 width=3%>
|
||||
<td absheight=113 width=20%>
|
||||
<table cellspacing=0 cellpadding=0 border=0 href="http://duckduckgo.com/lite/" nocolor>
|
||||
<tr>
|
||||
<td height=12>
|
||||
<tr>
|
||||
<td align=center>
|
||||
<img src="file://ROMCache/Binoculars0.gif" border=0 width=80 height=51>
|
||||
<tr>
|
||||
<td height=2>
|
||||
<tr>
|
||||
<td valign=bottom>
|
||||
<table cellspacing=0 cellpadding=0 width=100%>
|
||||
<tr>
|
||||
<td align=center>
|
||||
<font size=3 color=#000000>Search</font>
|
||||
</table>
|
||||
</table>
|
||||
<td width=9%>
|
||||
</table>
|
||||
|
||||
<tr>
|
||||
<td valign=middle align=center>
|
||||
<!-- BEGIN MAIN SUB-CONTENT AREA -->
|
||||
<table cellspacing=0 cellpadding=0 width=480>
|
||||
<tr>
|
||||
<td abswidth=100% absheight=18 align=center>
|
||||
<font size="2"><b>Welcome to ${minisrv_config.config.service_name}`;
|
||||
if (session_data.getSessionData("registered")) data += ", " + session_data.getSessionData("subscriber_username") + "!";
|
||||
data += `</font></b>
|
||||
<tr>
|
||||
<td width=100% align=center absheight=2 bgcolor="000000">
|
||||
<tr>
|
||||
<td abswidth=100% absheight=16 valign=middle align=center>
|
||||
<font size="small"><b>Status</b>: ${cryptstatus} (${compstatus})</font>
|
||||
<tr>
|
||||
<td width=100% align=center absheight=2 bgcolor="000000">
|
||||
<tr>
|
||||
<td abswidth=100% absheight=150 valign=top align=left>
|
||||
<br>
|
||||
<h4> Main Menu</h4>
|
||||
<ul>
|
||||
<font size="2"><li><a href="wtv-admin:/admin">wtv-admin</a> <sup>new!</sup></li>
|
||||
`;
|
||||
if (session_data.hasCap("client-can-do-chat")) {
|
||||
data += "<li><a href=\"wtv-chat:/home\">IRC Chat Test</a></li>\n"
|
||||
}
|
||||
}
|
||||
|
||||
data += `<li><a href="http://duckduckgo.com/lite/">DuckDuckGo Lite</a></li>`
|
||||
|
||||
if (ssid_sessions[socket.ssid].hasCap("client-can-do-javascript")) {
|
||||
// URL access form requires javascript, hide if client does not support
|
||||
data += `<li><input name=url `;
|
||||
|
||||
if (request_headers.query.url) {
|
||||
data += "value='" + request_headers.query.url + "'";
|
||||
if (session_data.hasCap("client-has-disk")) {
|
||||
// only show disk stuff if client has disk
|
||||
data += "<li><a href=\"client:diskhax\">DiskHax</a> ~ <a href=\"client:vfathax\">VFatHax</a></li>\n";
|
||||
if (session_data.hasCap("client-can-do-macromedia-flash2")) {
|
||||
// only show demo if client can do flash2
|
||||
data += "<li>Old DealerDemo: <a href=\"wtv-disk:/sync?group=DealerDemo&diskmap=DealerDemo\">Download</a> ~ <a href=\"file://Disk/Demo/index.html\">Access</a></li>\n";
|
||||
}
|
||||
}
|
||||
data += `</ul></font>`;
|
||||
// for development
|
||||
if (fs.existsSync(service_vaults[0] + "/" + service_name + "/home.zefie.html")) {
|
||||
data += fs.readFileSync(service_vaults[0] + "/" + service_name + "/home.zefie.html", { 'encoding': 'utf8' });
|
||||
}
|
||||
data += `</table>
|
||||
<tr>
|
||||
<td width=100% absheight=28>
|
||||
<tr>
|
||||
<td width=100% align=center absheight=2 bgcolor="000000">
|
||||
<tr>
|
||||
<td width=100% align=center absheight=22>
|
||||
<font size="-4"><b>Connection Speed</b>: &rate;</font>
|
||||
<tr>
|
||||
<td width=100% align=center absheight=2 bgcolor="000000">
|
||||
<tr>
|
||||
<td width=100% align=right absheight=20>
|
||||
<font size="-4"><i>minisrv v${minisrv_config.version}${(minisrv_config.config.git_commit) ? ' git-' + minisrv_config.config.git_commit : ''}, hosted by ${minisrv_config.config.service_owner}</i></small></font> <br>
|
||||
<tr>
|
||||
<td width=100% align=center absheight=2 bgcolor="000000">
|
||||
|
||||
data += `width=250 height=10 bgcolor=#444444 text=#ffdd33 cursor=#cc9933>
|
||||
<input type=submit value="Access URL">
|
||||
</form>`;
|
||||
}
|
||||
|
||||
data += "</li >\n</ul>";
|
||||
|
||||
if (fs.existsSync(service_vaults[0] + "/" + service_name + "/home.zefie.html")) {
|
||||
data += fs.readFileSync(service_vaults[0] + "/" + service_name + "/home.zefie.html", { 'encoding': 'utf8' });
|
||||
</table>
|
||||
</table>
|
||||
</body>
|
||||
</html>`
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 470 B |
Binary file not shown.
|
After Width: | Height: | Size: 805 B |
Binary file not shown.
|
After Width: | Height: | Size: 921 B |
BIN
zefie_wtvp_minisrv/ServiceVault/wtv-home/images/HomeBanner.gif
Normal file
BIN
zefie_wtvp_minisrv/ServiceVault/wtv-home/images/HomeBanner.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 779 B |
BIN
zefie_wtvp_minisrv/ServiceVault/wtv-home/images/TermsBanner.gif
Normal file
BIN
zefie_wtvp_minisrv/ServiceVault/wtv-home/images/TermsBanner.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.7 KiB |
BIN
zefie_wtvp_minisrv/ServiceVault/wtv-home/images/rom.gif
Normal file
BIN
zefie_wtvp_minisrv/ServiceVault/wtv-home/images/rom.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.7 KiB |
@@ -20,16 +20,17 @@ data = `<html>
|
||||
<img src="${minisrv_config.config.service_splash_logo}">
|
||||
<br><br><br>
|
||||
<p><br>
|
||||
<p><br>
|
||||
<table border>
|
||||
<tr><td width=150>
|
||||
Mini service
|
||||
<p><br>`;
|
||||
if (minisrv_config.config.show_detailed_splash) {
|
||||
data += `<table border>
|
||||
<tr><td>
|
||||
zefie minisrv v${minisrv_config.version}`;
|
||||
if (minisrv_config.config.git_commit) data += " (git " + minisrv_config.config.git_commit + ")";
|
||||
${minisrv_config.config.service_name} Mini Service hosted by ${minisrv_config.config.service_owner}
|
||||
<tr><td>
|
||||
minisrv v${minisrv_config.version} ${(minisrv_config.config.git_commit) ? '(git ' + minisrv_config.config.git_commit + ')' : ''}
|
||||
<tr><td>Connected: &rate;
|
||||
</table>`;
|
||||
}
|
||||
data += `
|
||||
<tr><td>&rate;
|
||||
</table>
|
||||
</center>
|
||||
</body>
|
||||
</html>`;
|
||||
Reference in New Issue
Block a user