- wtv-cookie support - further development will be in dev branch (may rebase alot) - compression not yet ready, leave it disabled - update: do not delete WTVSec on last socket, instead recreate on prereg - update: clean up SSID session data only if client is not seen for 3 minutes - update: add shouldWeCompress() function - update: tweak lzpf (still corrupted) - update: rename wtv-setup:/get to wtv-setup:/get-settings - update: add additional headers to wtv-setup:/get-settings - update: add initial blank wtv-music:/get-playlist - update wtv-tricks system - Info now shows Guest Mode or Subscriber Info - Implemented wtv-tricks:/unregister - Implemented wtv-tricks:/register - Show correct link in wtv-tricks:/tricks based on Guest Mode status - config.json: enable compression by default - WTVP does not use \r, so swapping the internal header's usage for now. May remove internal header in future update - lzpf: this doesn't fix anything but doesn't break it more either :) - renamed some functions - fixed some param documentation - added ConvertToBuffer function - WTVSec Updates - optimize WordArray to Buffer functions - update documentation in WTVSec - update WTVSec barrowed function in WTVLzpf - removed NewRC4Session, was a pointless alias to SecureOn
76 lines
1.6 KiB
JavaScript
76 lines
1.6 KiB
JavaScript
headers = `200 OK
|
|
Content-Type: text/html`
|
|
|
|
|
|
data = `<html>
|
|
<body>
|
|
<display nosave nosend>
|
|
<title>${minisrv_config.config.service_name} Tricks</title>
|
|
<sidebar width=20%>
|
|
<img src="wtv-tricks:/images/Favorites_bg.jpg">
|
|
</sidebar>
|
|
<body bgcolor="#191919" text="#44cc55" link="36d5ff" vlink="36d5ff" vspace=0>
|
|
<br>
|
|
<br>
|
|
<h1>${minisrv_config.config.service_name} Tricks</h1>
|
|
<br>
|
|
<table>
|
|
<tr>
|
|
<td colspan=3 height=6>
|
|
<tr>
|
|
<td><a href="wtv-tricks:/info">Info</a>
|
|
<td width = 25>
|
|
<td><a href="wtv-cookie:/list">List Cookies</a>
|
|
<tr>
|
|
<td colspan=3 height=6>
|
|
<tr>
|
|
<td><a href="wtv-flashrom:/willie">Visit Ultra Willie's!</a>
|
|
<td width = 25>
|
|
<td><a href="wtv-cookie:/reset">Clear Cookies</a>
|
|
<tr>
|
|
<td colspan=3 height=6>
|
|
<tr>
|
|
<td><a href="wtv-tricks:/blastbacklist?return_to=wtv-tricks%3A%2Ftricks">Blast Backlist</a>
|
|
<td width = 25>
|
|
<td><a href="client:ResetNVAndPowerOff">Blast NVRAM</a>
|
|
<tr>
|
|
<td colspan=3 height=6>
|
|
<tr>
|
|
<td><a href="client:showservices">Show Services</a>
|
|
<td width = 25>
|
|
`;
|
|
if (ssid_sessions[socket.ssid].getSessionData("registered")) data += `<td><a href="wtv-tricks:/unregister">Unregister This Box</a>`;
|
|
else data += `<td><a href="wtv-tricks:/register">Register This Box</a>`
|
|
|
|
data += `
|
|
<tr>
|
|
<td colspan=3 height=6>
|
|
<tr>
|
|
<td><!-- TODO -->
|
|
<td width = 25>
|
|
<td><!-- TODO -->
|
|
<tr>
|
|
<td colspan=3 height=6>
|
|
<tr>
|
|
<td><!-- TODO -->
|
|
<td width = 25>
|
|
<td><!-- TODO -->
|
|
<tr>
|
|
<td colspan=3 height=6>
|
|
<tr>
|
|
<td><!-- TODO -->
|
|
<td width = 25>
|
|
<td><!-- TODO -->
|
|
<tr>
|
|
<td colspan=3 height=6>
|
|
<tr>
|
|
<td><!-- TODO -->
|
|
<td width = 25>
|
|
<td>
|
|
<!-- TODO -->
|
|
<td width = 25>
|
|
</table>
|
|
</body>
|
|
</html>
|
|
`;
|