- major update: app.js: rewrite socket handling to stream data (fix issues POSTing with shoddy dialup, namely fix wtv-update:/sync issues)
- update: wtv-home:/home: remove broken irc test, add links to DiskHax and VFatHax, remove URL Accessor form from MiniBrowser because it doesn't work
- update: wtv-update:/sync: skip file if the Content-length matches the client and the client file is equal or newer, since client is not storing wtv-checksum for some reason. Client file time is set to when the client received the file last, and not actually when the file was modified on our end
- update: wtv-head-waiter:/login-stage-two: offer prompt to minibrowser to go to home or willie
- fix: clean up socket session data on socket error
- code fixup: use `${}` instead of escaping string
- app.js: better minibrowser session cleanup
- update: http(s) proxy: do not send internal 'wtv-connection-close' header to client
- fix: http(s) proxy: handle socks HostUnreachable error
- fix: wtv-head-waiter:/login-stage-two: usernames longerfix: build 3833 crashes when `wtv-user-name` is too long
- fix: wtv-log:/log
- add: wtv-chat
- add: wtv-setup
31 lines
1.0 KiB
JavaScript
31 lines
1.0 KiB
JavaScript
headers = `200 OK
|
|
Content-Type: text/html`
|
|
|
|
var settings_obj = new Array();
|
|
settings_obj["from-server"] = 1;
|
|
settings_obj["setup-advanced-options"] = 0;
|
|
settings_obj["setup-play-bgm"] = 0;
|
|
settings_obj["setup-bgm-tempo"] = -1;
|
|
settings_obj["setup-bgm-volume"] = 100;
|
|
settings_obj["setup-background-color"] = "c6c6c6";
|
|
settings_obj["setup-font-sizes"] = "medium";
|
|
settings_obj["setup-in-stereo"] = 1;
|
|
settings_obj["setup-keyboard"] = "alphabetical";
|
|
settings_obj["setup-link-color"] = "2222bb";
|
|
settings_obj["setup-play-songs"] = 1;
|
|
settings_obj["setup-play-sounds"] = 1;
|
|
settings_obj["setup-text-color"] = 0;
|
|
settings_obj["setup-visited-color"] = "8822bb";
|
|
settings_obj["setup-japan-keyboard"] = "roman";
|
|
settings_obj["setup-japan-softkeyboard"] = "norm"
|
|
settings_obj["setup-chat-access-level"] = 0;
|
|
settings_obj["setup-chat-on-nontrusted-pages"] = 1;
|
|
settings_obj["setup-tv-chat-level"] = 2;
|
|
|
|
data = "";
|
|
|
|
Object.keys(settings_obj).forEach(function (k, v) {
|
|
data += k + "=" + escape(settings_obj[k]) + "&";
|
|
});
|
|
|
|
data = data.substring(0, (data.length - 1)); |