theme update: registration
@@ -0,0 +1,5 @@
|
||||
IMAGE /ROMCache/Themes/Images/ButtonBorder1.gif
|
||||
INNERBOUNDS 22, 14, 35, 22
|
||||
PADBOUNDS 14, 9, 16, 6
|
||||
DRAWCENTER
|
||||
SCALEEDGES
|
||||
@@ -0,0 +1,5 @@
|
||||
IMAGE /ROMCache/Themes/Images/ButtonBorder10.gif
|
||||
INNERBOUNDS 22, 14, 35, 22
|
||||
PADBOUNDS 14, 9, 16, 6
|
||||
DRAWCENTER
|
||||
SCALEEDGES
|
||||
@@ -0,0 +1,5 @@
|
||||
IMAGE /ROMCache/Themes/Images/ButtonBorder3.gif
|
||||
INNERBOUNDS 22, 14, 35, 22
|
||||
PADBOUNDS 14, 9, 16, 6
|
||||
DRAWCENTER
|
||||
SCALEEDGES
|
||||
@@ -0,0 +1,5 @@
|
||||
IMAGE /ROMCache/Themes/Images/ButtonBorder2.gif
|
||||
INNERBOUNDS 22, 14, 35, 22
|
||||
PADBOUNDS 14, 9, 16, 6
|
||||
DRAWCENTER
|
||||
SCALEEDGES
|
||||
@@ -0,0 +1,5 @@
|
||||
IMAGE /ROMCache/Themes/Images/ButtonBorder3.gif
|
||||
INNERBOUNDS 22, 14, 35, 22
|
||||
PADBOUNDS 14, 9, 16, 6
|
||||
DRAWCENTER
|
||||
SCALEEDGES
|
||||
@@ -0,0 +1,5 @@
|
||||
IMAGE /ROMCache/Themes/Images/ButtonBorder4.gif
|
||||
INNERBOUNDS 22, 14, 35, 22
|
||||
PADBOUNDS 14, 9, 16, 6
|
||||
DRAWCENTER
|
||||
SCALEEDGES
|
||||
@@ -0,0 +1,5 @@
|
||||
IMAGE /ROMCache/Themes/Images/ButtonBorder5.gif
|
||||
INNERBOUNDS 22, 14, 35, 22
|
||||
PADBOUNDS 14, 9, 16, 6
|
||||
DRAWCENTER
|
||||
SCALEEDGES
|
||||
@@ -0,0 +1,5 @@
|
||||
IMAGE /ROMCache/Themes/Images/ButtonBorder6.gif
|
||||
INNERBOUNDS 22, 14, 35, 22
|
||||
PADBOUNDS 14, 9, 16, 6
|
||||
DRAWCENTER
|
||||
SCALEEDGES
|
||||
@@ -0,0 +1,5 @@
|
||||
IMAGE /ROMCache/Themes/Images/ButtonBorder7.gif
|
||||
INNERBOUNDS 22, 14, 35, 22
|
||||
PADBOUNDS 14, 9, 16, 6
|
||||
DRAWCENTER
|
||||
SCALEEDGES
|
||||
@@ -0,0 +1,5 @@
|
||||
IMAGE /ROMCache/Themes/Images/ButtonBorder8.gif
|
||||
INNERBOUNDS 22, 14, 35, 22
|
||||
PADBOUNDS 14, 9, 16, 6
|
||||
DRAWCENTER
|
||||
SCALEEDGES
|
||||
@@ -0,0 +1,5 @@
|
||||
IMAGE /ROMCache/Themes/Images/ButtonBorder9.gif
|
||||
INNERBOUNDS 22, 14, 35, 22
|
||||
PADBOUNDS 14, 9, 16, 6
|
||||
DRAWCENTER
|
||||
SCALEEDGES
|
||||
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 668 B |
|
After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 987 B |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 175 B |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 346 B |
|
After Width: | Height: | Size: 84 B |
|
After Width: | Height: | Size: 297 B |
|
After Width: | Height: | Size: 278 B |
|
After Width: | Height: | Size: 69 B |
|
After Width: | Height: | Size: 261 B |
|
After Width: | Height: | Size: 6.5 KiB |
235
zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/h.js
Normal file
@@ -0,0 +1,235 @@
|
||||
String.prototype.replace=function(o,n){return this.split(o).join(n)}
|
||||
d=document
|
||||
rom='file://rom/'
|
||||
htm=rom+'HTMLs/'
|
||||
cch='/ROMCache/'
|
||||
thm=cch+'Themes/'
|
||||
thi=thm+'Images/'
|
||||
thb=thm+'Borders/'
|
||||
|
||||
function clientvers(){d.write('<form name=z2><input type=hidden name=v value=&wtv-appvers;></form>');return parseInt(d.z2.v.value)}
|
||||
function go(u){d.open('text/url');d.write(u);d.close();location=u}
|
||||
function dial(){go('client:redialphone');go('client:logoshown')}
|
||||
function nbsp(c){nout='';for(i=0;i<c;i++){nout+=' '}return nout}
|
||||
function gTC(th,type){
|
||||
//light
|
||||
bgclr='4c5a67'
|
||||
bgimg='Pattern.gif'
|
||||
shimg='ShadowLogo.gif'
|
||||
bbif=''
|
||||
gclr=''
|
||||
bclr='e7ce4a'
|
||||
tclr='cbcbcb'
|
||||
vclr='dddddd'
|
||||
lclr='dddddd'
|
||||
switch(th){
|
||||
case 1://dark
|
||||
bgclr='191919'
|
||||
tclr='42bd52'
|
||||
bbif=rom+'Borders/ButtonBorder2'
|
||||
break
|
||||
case 2://red
|
||||
bgclr='6e0005'
|
||||
tclr='f0f0f0'
|
||||
bclr='f0f0f0'
|
||||
bbif=thb+'ButtonBorder2'
|
||||
break
|
||||
case 3://orange
|
||||
bgclr='c06000'
|
||||
tclr='f0f0f0'
|
||||
bbif=thb+'ButtonBorder3'
|
||||
break
|
||||
case 4://tan
|
||||
bgclr='ece9d8'
|
||||
bgimg='xpbg.gif'
|
||||
tclr='000000'
|
||||
lclr='002244'
|
||||
vclr='002244'
|
||||
bclr='000000'
|
||||
shimg='ShadowLogo4.gif'
|
||||
bbif=thb+'ButtonBorder4'
|
||||
break
|
||||
case 5://green
|
||||
bgclr='004422'
|
||||
tclr='f0f0f0'
|
||||
bbif=thb+'ButtonBorder5'
|
||||
break
|
||||
case 6://blue
|
||||
bgclr='002244'
|
||||
tclr='f0f0f0'
|
||||
lclr='0080ff'
|
||||
vclr='0080ff'
|
||||
shimg=''
|
||||
gclr='004488'
|
||||
bbif=thb+'ButtonBorder6'
|
||||
break
|
||||
case 7://teal
|
||||
bgclr='008080'
|
||||
bgimg='9xbg.gif'
|
||||
tclr='f0f0f0'
|
||||
bclr='080808'
|
||||
bbif=thb+'ButtonBorder7'
|
||||
break
|
||||
case 8://purple
|
||||
bgclr='4a2766'
|
||||
lclr='aaaaaa'
|
||||
shimg='ShadowLogo8.gif'
|
||||
bbif=thb+'ButtonBorder8'
|
||||
break
|
||||
case 9://brown
|
||||
bgclr='442200'
|
||||
tclr='e7ce4a'
|
||||
bbif=thb+'ButtonBorder9'
|
||||
break
|
||||
case 10://white
|
||||
bgclr='c9c9c9'
|
||||
bgimg='Paper.jpg'
|
||||
tclr='020202'
|
||||
lclr='002244'
|
||||
vclr='002244'
|
||||
bclr='000000'
|
||||
bbif=thb+'ButtonBorder10'
|
||||
case 11://halloween
|
||||
bgclr='080808'
|
||||
tclr='c06000'
|
||||
bbif=thb+'ButtonBorder11'
|
||||
break
|
||||
}switch(type){
|
||||
case 'bg':return bgclr
|
||||
case 'bgimg':return bgimg
|
||||
case 'shimg':return shimg
|
||||
case 'bbif':return bbif
|
||||
case 'g':return gclr
|
||||
case 'b':return bclr
|
||||
case 'l':return lclr
|
||||
case 't':return tclr
|
||||
case 'v':return vclr
|
||||
}
|
||||
}
|
||||
|
||||
function headr(th,msg,fs,bgm,lp,nl){
|
||||
out=''
|
||||
switch(fs){
|
||||
case 'small':fsn=7
|
||||
break
|
||||
case 'large':fsn=4
|
||||
break
|
||||
default:fs='medium'
|
||||
fsn=5
|
||||
break
|
||||
}
|
||||
bgimg=gTC(th,'bgimg')
|
||||
shimg=gTC(th,'shimg')
|
||||
bgclr=gTC(th,'bg')
|
||||
gclr=gTC(th,'g')
|
||||
tclr=gTC(th,'t')
|
||||
vclr=gTC(th,'v')
|
||||
lclr=gTC(th,'l')
|
||||
if(msg){out+='<title>'+msg+'</title>'}
|
||||
out+='<body background='+thi+bgimg+' text='+tclr+' bgcolor='+bgclr+' vlink='+vclr+' link='+lclr+' hspace=0 vspace=0 fontsize='+fs+'>'
|
||||
if(bgm){
|
||||
if(bgm.indexOf('.')<0){bgm += '.mid'}
|
||||
if(bgm.indexOf('/')<0){bgm = cch+'Music/' + bgm}
|
||||
out+='<bgsound name=bgm src="'+bgm+'" autostart=true'
|
||||
if(!lp){out+='>'}
|
||||
else{
|
||||
if(lp==-1){lp=9999;}
|
||||
out+=' loop='+lp+'>'
|
||||
}
|
||||
}
|
||||
if(!msg){msg=''}
|
||||
out+='<table cellspacing=0 cellpadding=0 abswidth=560 absheight=69'
|
||||
if(gclr){out+=' bgcolor='+gclr+' gradcolor='+bgclr}
|
||||
if(!shimg && bgimg=='Pattern.gif'){out+=' background='+thi+bgimg}
|
||||
out+='><tr><td>'
|
||||
out+=tab();
|
||||
out+='<spacer type=block width=11 height=11><br><spacer type=block width=10 height=1>'
|
||||
if(!nl){out+='<a href="javascript:goHTV()">'}
|
||||
out+='<img src='+cch+'WebTVLogoJewel.gif width=90 height=69>'
|
||||
if(!nl){out+='</a>'}
|
||||
out+=tab(msg);
|
||||
out+='</td></tr></table>'
|
||||
return out;
|
||||
}
|
||||
function tab(msg){
|
||||
bgimg=gTC(th,'bgimg')
|
||||
shimg=gTC(th,'shimg')
|
||||
bgclr=gTC(th,'bg')
|
||||
gclr=gTC(th,'g')
|
||||
if(msg){
|
||||
msg=msg.replace(' ',' ')
|
||||
if(!shimg && bgimg=='Pattern.gif'){msg += nbsp(5)}
|
||||
tout='<td width=100% height=69 valign=top'
|
||||
if(shimg){tout+=' background='+thi+shimg+' novtilebg'}
|
||||
tout+='><td abswidth=460 height=69 valign=top'
|
||||
if(shimg){tout+=' background='+thi+shimg+' novtilebg'}
|
||||
tout+=' align=right><spacer height=32 type=block><b><shadow><blackface><font color=cbcbcb>'+msg+' </font></blackface></shadow></b>'
|
||||
}else{
|
||||
tout='<td width=100% height=69 valign=top align=left'
|
||||
if(shimg){tout+=' background='+thi+shimg}
|
||||
if(gclr){tout+=' bgcolor='+gclr+' gradcolor='+bgclr}
|
||||
tout+=' novtilebg>'
|
||||
}
|
||||
return tout
|
||||
}
|
||||
function ta(th,r,s,n,b,c,x,u){
|
||||
bgclr=gTC(th,'bg')
|
||||
tclr=gTC(th,'t')
|
||||
if(u){x+=' usestyle';d.write('<font color='+tclr+'>')}
|
||||
d.write('<textarea rows='+r+' size='+s+' id='+n+' name='+n+' border='+b+' text='+tclr+' bgcolor='+bgclr+' '+x+'>'+c+'</textarea>');
|
||||
if(u){d.write('</font>')}
|
||||
}
|
||||
function as(th,bg,h,w,g,b,lc,rc,lo,ro,s){
|
||||
if(s){
|
||||
if(!lc){lc=gTC(th,'t')}
|
||||
if(!rc){rc=gTC(th,'bg')}
|
||||
}else{
|
||||
if(!lc){lc=gTC(th,'bg')}
|
||||
if(!rc){rc=gTC(th,'t')}
|
||||
}
|
||||
if(th==1){bgclr='333333'}
|
||||
if(!bg){bg='191919'}
|
||||
if(!h){h=32}
|
||||
if(!w){w=320}
|
||||
if(!g){g=0}
|
||||
if(!lo){lo=0}
|
||||
if(!ro){ro=0}
|
||||
if(!b){b=1}
|
||||
d.write('<audioscope bgcolor='+bg+' height='+h+' width='+w+' gain='+g+' leftcolor='+tclr+' rightcolor='+bgclr+' leftoffset='+lo+' rightoffset='+ro+' border='+b+'>')
|
||||
}
|
||||
function butt(th,v,n,w,t,x){
|
||||
if(th>0&&th!=4&&th!=7&&th!=10){sh=true}
|
||||
bclr=gTC(th,'b')
|
||||
bbif=gTC(th,'bbif')
|
||||
if(sh){d.write('<shadow>')}
|
||||
d.write('<font color='+bclr+'>')
|
||||
if(!t)t='submit'
|
||||
d.write('<input type='+t+' value="'+v+'"')
|
||||
if(n)d.write(' name='+n)
|
||||
if(w)d.write(' width='+w)
|
||||
if(x)d.write(' '+x)
|
||||
if(bbif){d.write(' usestyle borderimage='+bbif+'.bif')}
|
||||
d.write('></font>')
|
||||
if(sh){d.write('</shadow>')}
|
||||
}
|
||||
function sa(m,i,b1t,b1a,b2t,b2a) {
|
||||
u='client:showalert?message='+escape(m);
|
||||
if(i)u+='&image='+escape(i);
|
||||
if(b1t)u+='&buttonlabel1='+escape(b1t);
|
||||
if(b1t&&!b1a){b1a='client:donothing'}
|
||||
if(b1a)u+='&buttonaction1='+escape(b1a);
|
||||
if(b2t)u+='&buttonlabel2='+escape(b2t);
|
||||
if(b2t&&!b2a){b2a='client:donothing'}
|
||||
if(b2a)u+='&buttonaction2='+escape(b2a);
|
||||
return u;
|
||||
}
|
||||
|
||||
function redir(){
|
||||
r=history.previous
|
||||
if(r==htm+'Themes.html'||r==htm+'PhoneCallWaitThresh.html'||r==htm+'BGM.html'||r==htm+'NVRAM.html'||r.indexOf('wtv-')==0){go(r)}
|
||||
}
|
||||
|
||||
function goHTV(){return go(htm+'HackTV.html')}
|
||||
function gsa(m,i,b1t,b1a,b2t,b2a){go(sa(m,i,b1t,b1a,b2t,b2a))}
|
||||
function head(th,msg,fs,bgm,lp,nl){d.write(headr(th,msg,fs,bgm,lp,nl))}
|
||||
function vhead(th){d.write(headr(th,'VFat Hax'))}
|
||||
50
zefie_wtvp_minisrv/includes/ServiceVault/SharedROMCache/n.js
Normal file
@@ -0,0 +1,50 @@
|
||||
z_nv=null;
|
||||
z_th=new Array()
|
||||
z_th[0]='HackTV Light'
|
||||
z_th[1]='WebTV Dark'
|
||||
z_th[2]='Avegee Red'
|
||||
z_th[3]='Pumpkin Orange'
|
||||
z_th[4]='WinXP Tan'
|
||||
z_th[5]='Ryder Green'
|
||||
z_th[6]='SKCro Blue'
|
||||
z_th[7]='Win95 Teal'
|
||||
z_th[8]='zefie Purple'
|
||||
z_th[9]='MattMan Brown'
|
||||
z_th[10]='Paper White'
|
||||
z_th[11]='Halloween Black'
|
||||
|
||||
z_def=new Array()
|
||||
z_def[0]=0//theme
|
||||
|
||||
chars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz@-"//64 possible different values
|
||||
function gTN(th){return z_th[parseInt(th)]}
|
||||
function gB(nv,off){
|
||||
b=nv.charAt(off)
|
||||
if(b){return chars.indexOf(b)}
|
||||
else{return -1}
|
||||
}
|
||||
function sB(nv,off,dat){
|
||||
prefix=''
|
||||
if(off > 0){prefix=nv.substring(0,off)}
|
||||
if(off>prefix.length){while(off!=prefix.length){prefix+='.'}}
|
||||
dat=chars.charAt(parseInt(dat));
|
||||
z_url='client:ConfirmBYOISPSetup?BYOISPProviderName='+prefix+dat+nv.substring(off+1)
|
||||
go(z_url)
|
||||
}
|
||||
function gV(nv,off){
|
||||
z_len=0
|
||||
switch(off){
|
||||
case 0:z_len=z_th.length
|
||||
break
|
||||
case 1:z_len=z_bgm.length
|
||||
break
|
||||
}
|
||||
z_val=gB(nv,off)
|
||||
if(z_val<0||z_val>=z_len){return parseInt(z_def[off])}
|
||||
return parseInt(z_val)
|
||||
}
|
||||
function pp(){
|
||||
d.write('<form name=z><input type=hidden name=h value=&pname;></form>')
|
||||
z_nv=d.z.h.value
|
||||
return parseInt(gV(z_nv,0))//theme
|
||||
}
|
||||
@@ -50,14 +50,16 @@ if (ssid_sessions[socket.ssid].get("wtv-used-8675309") || ssid_sessions[socket.s
|
||||
data =`<html>
|
||||
<head>
|
||||
<title>MiniBrowser Home</title>
|
||||
<body background=Themes/Pattern.gif text=cbcbcb bgcolor=4c5a67 vlink=dddddd link=dddddd hspace=0 vspace=0 fontsize=medium>
|
||||
<body background=/ROMCache/Themes/Images/Pattern.gif text=cbcbcb bgcolor=6e5b85 vlink=dddddd link=dddddd hspace=0 vspace=0 fontsize=medium>
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr><td>
|
||||
<td width=100% height=80 valign=top align=left background=Themes/ShadowLogo.gif novtilebg>
|
||||
<td width=100% height=80 valign=top align=left background=/ROMCache/Themes/Images/ShadowLogoMB.gif>
|
||||
<spacer type=block width=11 height=11><br>
|
||||
<spacer type=block width=10 height=1>
|
||||
<img src=file://ROM/Cache/WebTVLogoJewel.gif width=90 height=69>
|
||||
<td width=100% height=80 valign=top background=Themes/ShadowLogo.gif novtilebg><td abswidth=460 height=54 valign=top background=Themes/ShadowLogo.gif align=right novtilebg><spacer height=32 type=block><b><shadow><blackface><font color=cbcbcb>MiniBrowser Home </font></blackface></shadow></b>
|
||||
<img src=file://ROMCache/WebTVLogoJewel.gif width=90 height=69>
|
||||
<td width=100% height=80 valign=top background=/ROMCache/Themes/Images/ShadowLogoMB.gif>
|
||||
<td abswidth=460 height=54 valign=top background=/ROMCache/Themes/Images/ShadowLogoMB.gif align=right>
|
||||
<spacer height=32 type=block><b><shadow><blackface><font color=cbcbcb>MiniBrowser Home </font></blackface></shadow></b>
|
||||
</td></tr></table>
|
||||
<table>
|
||||
<tr align=top>
|
||||
|
||||
@@ -8,7 +8,7 @@ Content-Type: text/html`
|
||||
|
||||
data = `<html>
|
||||
<head>
|
||||
<display hideoptions nostatus showwhencomplete skipback clearback fontsize=medium>
|
||||
<display hideoptions nostatus showwhencomplete switchtowebmode skipback clearback fontsize=medium>
|
||||
<title>Engaging zefie...</title>
|
||||
<meta http-equiv=Refresh content="${(wtvshared.parseBool(session_data.getSessionData("fast_splash"))) ? "0" : "4"}; url=wtv-home:/home?">
|
||||
</head>
|
||||
|
||||
@@ -5,6 +5,7 @@ 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, SessionStore);
|
||||
var errpage = null;
|
||||
@@ -25,15 +26,10 @@ if (!request_headers.query.registering) {
|
||||
} else {
|
||||
|
||||
headers = `200 OK
|
||||
wtv-noback-all: wtv-register:
|
||||
Content-Type: text/html`;
|
||||
var title = "Account Review";
|
||||
var isOldBuild = wtvshared.isOldBuild(session_data);
|
||||
var main_data = '';
|
||||
if (!isOldBuild) main_data += `<table cellspacing=0 cellpadding=0 border=0 width=560 bgcolor=#171726>
|
||||
<tr><td>`;
|
||||
|
||||
main_data += `<form ACTION="ValidateReviewAccountInfo" ENCTYPE="x-www-form-encoded" METHOD="POST">
|
||||
var main_data = `<table cellspacing=0 cellpadding=0 border=0 width=560><tr><td>
|
||||
<form ACTION="ValidateReviewAccountInfo" ENCTYPE="x-www-form-encoded" METHOD="POST">
|
||||
<input type=hidden name=registering value="true">
|
||||
<input type=hidden name=subscriber_name value="${request_headers.query.subscriber_name}">
|
||||
<input type=hidden name=subscriber_username value="${request_headers.query.subscriber_username}">
|
||||
@@ -42,10 +38,7 @@ Content-Type: text/html`;
|
||||
<td height=50 width=300 colspan=6 valign=top align=left>
|
||||
<br>
|
||||
Here is your account information. If you need to<br>
|
||||
correct an item, press <b>Back</b>.<p>`;
|
||||
if (isOldBuild) main_data += "<table>";
|
||||
|
||||
main_data += `<tr>
|
||||
correct an item, press <b>Back</b>.<p><table><tr>
|
||||
<td width=260 valign=top align=left colspan=4>
|
||||
<table cellspacing=0 cellpadding=0 border=0 >
|
||||
<img src="images/arrow.gif"> <font size=-2><b>NAME</b></font><br>
|
||||
@@ -69,13 +62,18 @@ correct an item, press <b>Back</b>.<p>`;
|
||||
<tt><font color=#d1d3d3 size=-2><spacer type=horizontal size=17>${request_headers.query.subscriber_contact_method}</font></tt>
|
||||
</table> <P> <P>
|
||||
<td abswidth=20>
|
||||
</tr>`;
|
||||
if (isOldBuild) main_data += '</table>';
|
||||
var form_data = `<shadow>
|
||||
<input selected Value="Sign Up" name="Sign Up" width="110" type=submit Value=Continue name="Continue" borderimage="file://ROM/Borders/ButtonBorder2.bif" text="#dddddd">
|
||||
</shadow>
|
||||
</font>
|
||||
</form>`;
|
||||
data = wtvr.getHTMLTemplate(title, main_data, form_data, isOldBuild);
|
||||
</tr></table></table>`;
|
||||
|
||||
|
||||
var form_data = '';
|
||||
if (hasJS) {
|
||||
form_data += `<script>butt(th,'Sign Up','Sign Up',110)</script>`;
|
||||
}
|
||||
else {
|
||||
form_data += `<shadow><input selected Value="Sign Up" name="Sign Up" width="110" type=submit borderimage="file://ROM/Borders/ButtonBorder2.bif"></shadow>`;
|
||||
}
|
||||
|
||||
form_data += '</form>';
|
||||
data = wtvr.getHTMLTemplate(title, main_data, form_data, hasJS);
|
||||
}
|
||||
}
|
||||
@@ -5,6 +5,7 @@ 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
|
||||
@@ -13,32 +14,39 @@ 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"><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>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
<font size="-2"><b>YOUR CONTACT INFO:</b></font><img src="ROMCache/spacer.gif" width="7">
|
||||
<INPUT NAME="subscriber_contact"
|
||||
</td><td><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">
|
||||
</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">
|
||||
<option value="">Type</option>
|
||||
<option>E-Mail</option>
|
||||
<option>Discord</option>
|
||||
@@ -46,11 +54,13 @@ AutoCaps selected>
|
||||
<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));
|
||||
</td></tr></table>`;
|
||||
var form_data = ``
|
||||
if (hasJS) {
|
||||
form_data += `<script>butt(th,'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);
|
||||
}
|
||||
@@ -51,78 +51,37 @@ if (!request_headers.query.registering ||
|
||||
data = errpage[1];
|
||||
} else {
|
||||
|
||||
var hasJS = session_data.hasCap("client-can-do-javascript")
|
||||
headers = `200 OK
|
||||
Content-Type: text/html`;
|
||||
|
||||
data = `<html>
|
||||
<head>
|
||||
<title>
|
||||
Finished signing up
|
||||
</title>
|
||||
<display nooptions noscroll ClearBack
|
||||
NoScroll
|
||||
>
|
||||
</head>
|
||||
<body noscroll
|
||||
bgcolor="#171726" text="#D1D3D3" link=#FFEA9C vlink=#FFEA9C
|
||||
hspace=0 vspace=0 fontsize="large"
|
||||
>
|
||||
<table cellspacing=0 cellpadding=0 border=0 width=560 bgcolor=#171726>
|
||||
<tr>
|
||||
<td align=middle bgcolor="#5b6c81" border=0 colspan= 3 width="100" height="80">
|
||||
<img src="${minisrv_config.config.service_logo}" WIDTH="87" HEIGHT="67">
|
||||
<td colspan= 6 bgcolor="#5b6c81" border=0 width=100% absheight="80" valign=bottom >
|
||||
<img src="images/head_registration.gif" >
|
||||
<tr>
|
||||
<td bgcolor= "#5b6c81" border=0 rowspan=2 width=21 height= 220></td>
|
||||
<td bgcolor="#171726" border=0 width=9 height=25 align=left valign=top>
|
||||
<img src="images/L_corner.gif" width=8 height=8>
|
||||
<td bgcolor="#171726" border=1 colspan=1 width=70 height=25>
|
||||
<td colspan=6 bgcolor="#171726" border=1 height=25 align=left valign=bottom gradcolor=#262E3D gradangle=90>
|
||||
<font color=#d1d3d3 size=+1>
|
||||
<blackface>
|
||||
You've finished signing up
|
||||
</blackface></font>
|
||||
<tr> <td border=0 width=40 bgcolor="#171726" rowspan="2" >
|
||||
<td absheight=20 width=100 bgcolor="#171726" colspan=6>
|
||||
</tr>
|
||||
</table>
|
||||
<table cellspacing=0 cellpadding=0 border=0 width=560 bgcolor=#171726>
|
||||
<tr>
|
||||
<td bgcolor= "#5b6c81" border=0 rowspan=6 abswidth=21 height= 220></td>
|
||||
<td border=0 abswidth=40 bgcolor="#171726" rowspan="6" >
|
||||
<form action="FinishRegistration"
|
||||
>
|
||||
<td height=230 width= 300 bgcolor="#171726" colspan=5 valign=top align=left>
|
||||
var title = "Finished signing up";
|
||||
var main_data = `<form action="FinishRegistration"
|
||||
<input type=hidden name=registering value="true">
|
||||
<input type=hidden name=subscriber_name value="${request_headers.query.subscriber_name}">
|
||||
<input type=hidden name=subscriber_username value="${request_headers.query.subscriber_username}">
|
||||
<input type=hidden name=subscriber_contact value="${request_headers.query.subscriber_contact}">
|
||||
<input type=hidden name=subscriber_contact_method value="${request_headers.query.subscriber_contact_method}">
|
||||
Thank you for signing up for ${minisrv_config.config.service_name}.
|
||||
<p>
|
||||
You will now go
|
||||
to your <b>Web Home</b> page. You can always
|
||||
connect to the Internet by choosing
|
||||
<b>Web Home</b> on your TV Home page.
|
||||
</font>
|
||||
<td abswidth=20 bgcolor=#171726 >
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign= bottom height=15 colspan=7 bgcolor=#171726>
|
||||
<shadow>
|
||||
<hr size=5 valign=bottom></shadow>
|
||||
</tr>
|
||||
<tr>
|
||||
<td border=2 colspan=4 width=300 height=50 bgcolor=#171726 valign=top align=left>
|
||||
<font size=-1><i>
|
||||
</i></font>
|
||||
<td bgcolor=#171726 height=50 width=150 valign=top align=right>
|
||||
<font size=-1 color=#e7ce4a>
|
||||
<shadow>
|
||||
<input type=submit Value=Continue name="Continue" borderimage="file://ROM/Borders/ButtonBorder2.bif" usestyle width=110>
|
||||
</shadow>
|
||||
</font>
|
||||
</form> <td abswidth=13 absheight=50 bgcolor=#171726>
|
||||
</tr> </table>
|
||||
</body>
|
||||
</html>
|
||||
`;
|
||||
<b>Web Home</b> on your TV Home page.`;
|
||||
|
||||
|
||||
var form_data = '';
|
||||
if (hasJS) {
|
||||
form_data += `<script>butt(th,'Continue','Continue',110)</script>`;
|
||||
}
|
||||
else {
|
||||
form_data += `<shadow><input selected Value="Continue" name="Continue" width="110" type=submit borderimage="file://ROM/Borders/ButtonBorder2.bif"></shadow>`;
|
||||
}
|
||||
|
||||
form_data += '</form>';
|
||||
data = wtvr.getHTMLTemplate(title, main_data, form_data, hasJS);
|
||||
|
||||
headers = `200 OK
|
||||
Content-Type: text/html`;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -8,19 +8,26 @@ var wtvr = new WTVRegister(minisrv_config);
|
||||
var namerand = Math.floor(Math.random() * 100000);
|
||||
var nickname = (minisrv_config.config.service_name + '_' + namerand)
|
||||
var human_name = nickname;
|
||||
var isOldBuild = wtvshared.isOldBuild(session_data);
|
||||
var form_data = `<input type=button action="ValidateAgreement?registering=true&subscriber_name=${human_name}&subscriber_username=${nickname}" text="#dddddd" Value="Quick Reg" name="speedyreg" borderimage="file://ROM/Borders/ButtonBorder2.bif" width=130>`;
|
||||
if (minisrv_config.config.allow_guests) form_data += `<input type=button text="#dddddd" action="BeMyGuest" Value="Sign in as Guest" name="noreg" borderimage="file://ROM/Borders/ButtonBorder2.bif" width=170 >`;
|
||||
var hasJS = session_data.hasCap("client-can-do-javascript");
|
||||
if (hasJS) {
|
||||
var form_data = `<script>butt(th,'Quick Reg','speedyreg',130,'button','action="ValidateAgreement?registering=true&subscriber_name=${human_name}&subscriber_username=${nickname}"');`;
|
||||
if (minisrv_config.config.allow_guests) form_data += `butt(th, 'Sign in as Guest', 'noreg', 170, 'button', 'action="BeMyGuest"')`;
|
||||
form_data += '</script>';
|
||||
} else {
|
||||
var form_data = `<input type=button action="ValidateAgreement?registering=true&subscriber_name=${human_name}&subscriber_username=${nickname}" text="e7ce4a" Value="Quick Reg" name="speedyreg" borderimage="file://ROM/Borders/ButtonBorder2.bif" width=130>`;
|
||||
if (minisrv_config.config.allow_guests) form_data += `<input type=button text="e7ce4a" action="BeMyGuest" Value="Sign in as Guest" name="noreg" borderimage="file://ROM/Borders/ButtonBorder2.bif" width=170 >`;
|
||||
}
|
||||
var main_data = `<form action="ValidateAgreement"
|
||||
ENCTYPE="x-www-form-encoded" METHOD="POST">
|
||||
<input type=hidden name=registering value="true">
|
||||
Welcome to the ${minisrv_config.config.service_name} Mini Service, operated by ${minisrv_config.config.service_owner}.
|
||||
The next screens will lead you through a quick setup process for using this service.<p> Press the "Continue" button below to begin setup.<p>`;
|
||||
if (hasJS) {
|
||||
form_data += `<script>butt(th,'Continue','Continue',110)</script>`;
|
||||
} else {
|
||||
form_data += `<input type=submit Value=Continue name="Continue" text="#e7ce4a" borderimage="file://ROM/Borders/ButtonBorder2.bif" width=110 selected>`;
|
||||
}
|
||||
|
||||
form_data += `<input type=submit Value=Continue name="Continue" text="#dddddd" borderimage="file://ROM/Borders/ButtonBorder2.bif" width=110 selected>
|
||||
</shadow>
|
||||
</font>
|
||||
</form>
|
||||
`;
|
||||
form_data += `</form>`;
|
||||
|
||||
data = wtvr.getHTMLTemplate("Welcome to " + minisrv_config.config.service_name, main_data, form_data, isOldBuild);
|
||||
data = wtvr.getHTMLTemplate("Welcome to " + minisrv_config.config.service_name, main_data, form_data, hasJS);
|
||||