- Small update for CGI Security
- Various AI suggested fixes
- Fix to logging verbosity
- Fixes for Last-Modified headers
- Removed 2 unused node module deps
- Added pc-only user_config.json example
- Initial work updating catchall system to support CGI
- Reverted registration and home theme system due to problems
This commit is contained in:
zefie
2025-01-03 12:50:29 -05:00
parent 907cec23c2
commit 65521fcad6
45 changed files with 421 additions and 716 deletions

View File

@@ -5,7 +5,6 @@ if (!request_headers.query.registering) {
headers = errpage[0];
data = errpage[1];
} else {
var hasJS = session_data.hasCap("client-can-do-javascript");
const WTVRegister = require(classPath + "/WTVRegister.js")
var wtvr = new WTVRegister(minisrv_config);
headers = `200 OK
@@ -14,39 +13,32 @@ Content-Type: text/html`;
ENCTYPE="x-www-form-encoded" METHOD="POST">
<input type=hidden name=registering value="true">
Please set up your account:<br><br>
<table>
<tr>
<td>
<font size="-2"><b>YOUR NAME:</b></font><img src="ROMCache/spacer.gif" width="7">
<img src="ROMCache/spacer.gif" width="78" height="5">
</td>
<td>
<INPUT NAME="subscriber_name" ID="subscriber_name" bgcolor=#444444 text=#ffdd33 cursor=#cc9933 VALUE="${request_headers.query.subscriber_name || ""}" TYPE="text" SIZE="19" MAXLENGTH="18" AutoCaps selected>
</td>
</tr>
<tr>
<td>
<img src="ROMCache/spacer.gif" width="78" height="5"><INPUT NAME="subscriber_name"
ID="subscriber_name"
bgcolor=#444444 text=#ffdd33 cursor=#cc9933
VALUE="${request_headers.query.subscriber_name || ""}" TYPE="text" SIZE="19"
MAXLENGTH="18"
AutoCaps selected>
<p>
<font size="-2"><b>DESIRED USERNAME:</b></font><img src="ROMCache/spacer.gif" width="7">
<img src="ROMCache/spacer.gif" width="5">
</td>
<td>
<INPUT NAME="subscriber_username" ID="subscriber_username" bgcolor=#444444 text=#ffdd33 cursor=#cc9933 VALUE="${request_headers.query.subscriber_username || ""}" TYPE="text" SIZE="19" MAXLENGTH="16" selected>
</td>
</tr>
<tr>
<td>
<img src="ROMCache/spacer.gif" width="5"><INPUT NAME="subscriber_username"
ID="subscriber_username"
bgcolor=#444444 text=#ffdd33 cursor=#cc9933
VALUE="${request_headers.query.subscriber_username || ""}" TYPE="text" SIZE="19"
MAXLENGTH="16"
AutoCaps selected>
<p>
<font size="-2"><b>YOUR CONTACT INFO:</b></font><img src="ROMCache/spacer.gif" width="7">
</td><td><INPUT NAME="subscriber_contact"
<INPUT NAME="subscriber_contact"
ID="subscriber_contact"
bgcolor=#444444 text=#ffdd33 cursor=#cc9933
VALUE="" TYPE="text" SIZE="19"
MAXLENGTH="64"
AutoCaps selected>
</td></tr>
<td><font size="-2"><b>CONTACT INFO TYPE:</b></font><img src="ROMCache/spacer.gif" width="7">
<img src="ROMCache/spacer.gif" width="3"></td>
<td>
<select usestyle id="subscriber_contact_method" name="subscriber_contact_method">
<p>
<font size="-2"><b>CONTACT INFO TYPE:</b></font><img src="ROMCache/spacer.gif" width="7">
<img src="ROMCache/spacer.gif" width="3"><select usestyle id="subscriber_contact_method" name="subscriber_contact_method">
<option value="">Type</option>
<option>E-Mail</option>
<option>Discord</option>
@@ -54,13 +46,11 @@ AutoCaps selected>
<option>Telegram</option>
<option>Instagram</option>
</select>
</td></tr></table>`;
var form_data = ``
if (hasJS) {
form_data += `<script>butt('Continue','Continue',110)</script>`;
} else {
form_data += `<shadow><input type=submit Value=Continue name="Continue" borderimage="file://ROM/Borders/ButtonBorder2.bif" width=110></shadow>`;
}
form_data += `</form>`;
data = wtvr.getHTMLTemplate(minisrv_config.config.service_name + " Account Setup", main_data, form_data, hasJS);
}
`;
var form_data = `<shadow>
<input type=submit Value=Continue name="Continue" borderimage="file://ROM/Borders/ButtonBorder2.bif" text="#dddddd" width=110>
</shadow>
</font>
</form>`;
data = wtvr.getHTMLTemplate(minisrv_config.config.service_name + " Account Setup", main_data, form_data, wtvshared.isOldBuild(session_data));
}