- 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
59 lines
2.8 KiB
JavaScript
59 lines
2.8 KiB
JavaScript
var minisrv_service_file = true;
|
|
|
|
headers = `200 OK
|
|
Connection: Keep-Alive
|
|
Content-Type: text/html
|
|
wtv-visit: client:closeallpanels
|
|
wtv-expire-all: client:closeallpanels`;
|
|
|
|
data = `<html><HEAD><title>Password</title>
|
|
<DISPLAY noscroll nooptions nostatus switchtowebmode> </HEAD> <sidebar width=144> <table cellspacing=0 cellpadding=0 bgcolor="30364D"> <tr> <td width=138 absheight=109 valign=top align=center> <img src="ROMCache/Spacer.gif" width=1 height=8><br> <img src="ROMCache/Spacer.gif" width=7 height=1>
|
|
<img src="${minisrv_config.config.service_logo}" width=127 height=98>
|
|
<td rowspan=99 width=6 absheight=420 valign=top align=left> <img src="ROMCache/Shadow.gif" width=6 height=420> <tr> <td absheight=5>
|
|
<table cellspacing=0 cellpadding=0>
|
|
<tr><td abswidth=138 absheight=2 valign=middle align=center bgcolor="1C1E28"> <img src="ROMCache/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="ROMCache/Spacer.gif" width=1 height=1> </table> <tr>
|
|
<td absheight=106>
|
|
<tr>
|
|
<td align=right>
|
|
<img src="images/PasswordBanner.gif" width=50 height=191> <tr> <td absheight=8>
|
|
</table>
|
|
</sidebar>
|
|
<body background="/ROMCache/NameStrip.gif"
|
|
novtilebg
|
|
nohtilebg
|
|
bgcolor=191919
|
|
text="AA9B4A" link=189cd6 vlink=189cd6 hspace=0 fontsize="large"> <form action=/ValidateLogin enctype="x-www-form-encoded" method=post> <input type="hidden" NAME="target-url" VALUE=""> <table cellspacing=0 cellpadding=0>
|
|
<tr>
|
|
<td width=20>
|
|
<td valign=center absheight=104>
|
|
<font size="+1" color="E7CE4A"><blackface><shadow> Type your password </shadow></blackface>
|
|
<tr>
|
|
<td>
|
|
<td bgcolor=2b2b2b abswidth=400 absheight=2> <img src="ROMCache/Spacer.gif" width=1 height=1> <tr> <td>
|
|
<td absheight=1>
|
|
<tr>
|
|
<td>
|
|
<td bgcolor=000000 abswidth=400 absheight=2> <img src="ROMCache/Spacer.gif" width=1 height=1> <tr> <td>
|
|
<td height=125 valign=center>
|
|
<font size=+1 color=42bd52>Password
|
|
<img src="ROMCache/Spacer.gif" width=4 height=1> <input type=password size=26 maxlength="${minisrv_config.config.passwords.max_length}" name="password" bgcolor=#444444 text=#ffdd33 cursor=#cc9933 id="password" selected >
|
|
<input type=hidden name="user_id" id="user_id" value=${session_data.user_id}> <tr> <td>
|
|
<td>
|
|
<tr>
|
|
<td>
|
|
<td bgcolor=2b2b2b abswidth=400 absheight=2> <img src="ROMCache/Spacer.gif" width=1 height=1> <tr> <td>
|
|
<td absheight=1>
|
|
<tr>
|
|
<td>
|
|
<td bgcolor=000000 abswidth=400 absheight=2> <img src="ROMCache/Spacer.gif" width=1 height=1> <tr> <td height=8>
|
|
<tr>
|
|
<td>
|
|
<td align=right width=100%>
|
|
<font COLOR="#E7CE4A" SIZE=-1><shadow><input type=submit borderimage="file://ROM/Borders/ButtonBorder2.bif" value="Continue" usestyle>
|
|
</shadow></font>
|
|
<img src="ROMCache/Spacer.gif" width=20 height=1> </table>
|
|
</form>
|
|
</body>
|
|
</html>
|
|
`;
|