Commit Graph

343 Commits

Author SHA1 Message Date
zefie
a887a36104 lots of changes:
- 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
2022-10-11 13:51:20 -04:00
zefie
4589d7a4e8 move classes and base config into includes directory 2022-10-11 10:20:25 -04:00
zefie
07ba1d4056 welp guide wasn't supposed to be pushed yet but since it was might as well fix it a bit 2022-10-10 16:38:39 -04:00
zefie
500e6f6887 fix logging from pc_services
+ some other cosmetic console.log updates
2022-10-10 16:30:07 -04:00
zefie
d4ceda7211 pc_services now uses node Express
- reduces chance of error with older webtv clients sending http request
- version bump to 0.9.32
2022-10-10 15:40:09 -04:00
zefie
7505494612 fix last commit 2022-10-10 13:09:18 -04:00
zefie
d1dbbcf82f expose crypto module to VM 2022-10-09 22:07:37 -04:00
zefie
e544e821c3 more post data tweaks 2022-10-09 21:53:44 -04:00
zefie
ceaa6277b4 fix priv on pc_services 2022-10-09 18:32:01 -04:00
zefie
83ca0d0bac fix: allow wtv-disk scripts run unprivileged 2022-10-09 14:43:40 -04:00
zefie
37f1ab67ad BREAKING CHANGES: (for SeCuRiTy):
By default:
- `ssid_sessions[socket.ssid]` is now `session_data`
- `require` is no longer allowed in user scripts

To access global `socket_sessions` and `ssid_sessions`, as well as `require` additional modules, you must set `privileged: true` for the specific service. See `config.json`.
2022-10-09 13:26:14 -04:00
zefie
7bf2d2e6fa implement wtv-favorites with huge help from @JarHead4 2022-10-08 17:37:36 -04:00
zefie
76e700a33d implemented some webtvism overrides
didn't end up needing them, but keeping them here just in case since they don't harm anything
2022-10-08 11:22:45 -04:00
zefie
5ad141d30a fix space in disconnect log 2022-10-08 09:33:17 -04:00
zefie
6a8d146d55 add webtvism: query arg without =
eg wtv-home:/home?testing
will set request_headers.query.testing to null, instead of undefined.
2022-10-08 08:16:45 -04:00
zefie
9edccab487 add wtv-admin:/reloadconfig 2022-10-07 21:28:44 -04:00
zefie
86d8a09688 initial work on wtv-admin features 2022-10-07 19:31:05 -04:00
zefie
63dd5471a5 finish potential fix 2022-10-06 14:56:29 -07:00
zefie
4c26d972fe potential fix for pcservices issue 2022-10-06 14:55:51 -07:00
zefie
fee8b768fc fix wtv-flashrom catch-all error messages 2022-10-02 17:09:19 -04:00
zefie
269d237479 experimental webtv viewer patcher on pc_service 2022-10-02 10:33:27 -04:00
zefie
c403c589c1 experimental webtv viewer patcher on pc_service 2022-10-02 08:25:02 -04:00
zefie
2bf3bc4d3a enable exception stack trace on PC pages (think PHP show_errors), with option to disable it globally 2022-10-02 02:09:35 -04:00
zefie
ccd0d02676 add option to just drop PC connections rather than HTTP 500 if they connect to the wrong port 2022-10-02 01:44:07 -04:00
zefie
57b8426231 move comment back into place 2022-10-02 01:39:21 -04:00
zefie
81fe9c50ce add port isolation (services only respond to their own ports), also rewrite pc services a bit. initial (very pre-alpha and not functional) https code added too 2022-10-02 01:36:10 -04:00
zefie
bac031bd4e fix http_pc pc services 2022-10-01 23:29:59 -04:00
zefie
1752bfed35 fix parsing of discuss boolean in sendmail 2022-10-01 22:37:10 -04:00
zefie
ad3accb364 more documentation and update catchall portion 2022-09-26 17:35:47 -04:00
zefie
e22bb22497 forgot 'request_is_async' in the last commit
... and trying not to squash anymore
2022-09-26 17:29:57 -04:00
zefie
6a21c4a851 fix wtv-tricks:/info, tidy up eval VM related stuff 2022-09-26 17:20:27 -04:00
zefie
e538bfb913 some fixes for pages that broke from the new VM based eval 2022-09-26 16:47:10 -04:00
zefie
b2aece5437 incomplete NNTP usenet support 2022-09-25 22:52:18 -04:00
zefie
d8da9e14c7 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.
2022-09-25 18:05:45 -04:00
zefie
a4a1469a79 fix previous commit 2022-09-24 23:22:05 -04:00
zefie
518cf12c99 disable multi query webtvism by default, but allow it to be enabled at the service level 2022-09-23 01:45:20 -04:00
zefie
5dff5779e9 correct a typo in a comment for clarification 2022-09-22 16:06:14 -04:00
zefie
e2e33f931d 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.
2022-09-08 00:28:43 -04:00
zefie
d02e40d530 change "http_response" to "Response" for cleaner logging 2022-03-28 02:09:10 -04:00
zefie
ebfc081efa fix syntax error 2022-03-18 17:33:16 -04:00
zefie
a91b57764d send 'wtv-trusted: false' with http(s) responses 2022-03-18 15:07:11 -04:00
zefie
d70cb5bf36 mostly fix bad-disk detection
- may still get bad-disk screen once after fixing disk
- may only be an issue if the user reconnects before the cleanup
2022-03-17 19:24:06 -04:00
zefie
2be8c66b01 Bug fixes
- wtv-tricks:/unregister properly deletes SSID folder
- Registration properly saves account data if SSID folder doesn't exist
- do not send wtv-mail-count if SSID is not yet registered
- Registration now correctly creates the welcome message for user0
- update wtv-tricks:/unregister to only allow the primary user to unregister the account
2022-03-12 15:14:32 -05:00
zefie
0f26cdfc70 add password filter feature
- add post_data filter feature
- finally figure out how to duplicate objects
2022-03-09 17:38:16 -05:00
zefie
01c782cca9 fix issue with locally stored flashroms 2022-03-09 17:38:15 -05:00
zefie
0a00e34537 fix login, probably break 5 other things 2022-03-09 17:38:14 -05:00
zefie
2a526c0702 initial attempt to fix security issue
- likely adds new bug where users will be kicked to relogin after the
  server restarts
- TODO: figure out a way to safely check the user login when session
  data is unknown (eg restart) (hint: ticket?)
2022-03-09 17:38:14 -05:00
zefie
59ba999b5a fix null user bug, but also make a page to intentionally trigger it 2022-03-09 17:38:13 -05:00
zefie
f32c4b1926 fix DealerDemo and other stuff 2022-03-09 17:38:13 -05:00
zefie
445e28c91a implement internal shared ROMCache
- make most ROMCache URLS relative
- create wtvshared.htmlEntitize function
- update wtv-mail:/readmail to use wtvshared.htmlEntitize
2022-03-09 17:38:12 -05:00