- 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
57 lines
2.1 KiB
JavaScript
57 lines
2.1 KiB
JavaScript
var minisrv_service_file = true;
|
|
|
|
if (!request_headers.query.registering) {
|
|
var errpage = wtvshared.doErrorPage(400);
|
|
headers = errpage[0];
|
|
data = errpage[1];
|
|
} else {
|
|
const WTVRegister = require(classPath + "/WTVRegister.js")
|
|
var wtvr = new WTVRegister(minisrv_config);
|
|
headers = `200 OK
|
|
Content-Type: text/html`;
|
|
var main_data = `<form action="ValidateAccountInfo"
|
|
ENCTYPE="x-www-form-encoded" METHOD="POST">
|
|
<input type=hidden name=registering value="true">
|
|
Please set up your account:<br><br>
|
|
<font size="-2"><b>YOUR NAME:</b></font><img src="ROMCache/spacer.gif" width="7">
|
|
<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"><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">
|
|
<INPUT NAME="subscriber_contact"
|
|
ID="subscriber_contact"
|
|
bgcolor=#444444 text=#ffdd33 cursor=#cc9933
|
|
VALUE="" TYPE="text" SIZE="19"
|
|
MAXLENGTH="64"
|
|
AutoCaps selected>
|
|
<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>
|
|
<option>Twitter</option>
|
|
<option>Telegram</option>
|
|
<option>Instagram</option>
|
|
</select>
|
|
`;
|
|
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));
|
|
}
|