* initial (very incomplete) work on PC Services Admin (eg csops) * primitive account listing * add ban/unban/delete functionality * fix wtv-tricks theme * fix wtv-tricks theme (cSetup) * better tricks code * fix session_data.getTicketData() * speedtest and other tricks stuff * better protection against direct access to finished url * dependancies update (run `npm update`) * Bump path-to-regexp and express in /zefie_wtvp_minisrv (#29) Bumps [path-to-regexp](https://github.com/pillarjs/path-to-regexp) to 0.1.12 and updates ancestor dependency [express](https://github.com/expressjs/express). These dependencies need to be updated together. Updates `path-to-regexp` from 0.1.10 to 0.1.12 - [Release notes](https://github.com/pillarjs/path-to-regexp/releases) - [Changelog](https://github.com/pillarjs/path-to-regexp/blob/master/History.md) - [Commits](https://github.com/pillarjs/path-to-regexp/compare/v0.1.10...v0.1.12) Updates `express` from 4.21.1 to 4.21.2 - [Release notes](https://github.com/expressjs/express/releases) - [Changelog](https://github.com/expressjs/express/blob/4.21.2/History.md) - [Commits](https://github.com/expressjs/express/compare/4.21.1...4.21.2) --- updated-dependencies: - dependency-name: path-to-regexp dependency-type: indirect - dependency-name: express dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix up path functions * force version 1.2.1 of newsie due to breaking change * remove debug log print for usenet * fix account directory was broken due to previous changes * fix wtv-home:/home was hiding options bar * bump to 0.9.54 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
56 lines
1.3 KiB
JavaScript
56 lines
1.3 KiB
JavaScript
z_nv=null;
|
|
z_th=new Array()
|
|
z_th[0]='HackTV Light'
|
|
z_th[1]='WebTV Dark'
|
|
z_th[2]='Amy<br>Red'
|
|
z_th[3]='Basic Web'
|
|
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 pp(){d.write('<form name=z><input type=hidden name=h value=&pname;></form>');z_nv=d.z.h.value}
|
|
function gB(off){
|
|
if(!z_nv){pp()}
|
|
b=z_nv.charAt(parseInt(off))
|
|
if(b){return chars.indexOf(b)}
|
|
else{return -1}
|
|
}
|
|
function sB(off,dat,raw){
|
|
if(!z_nv){pp()}
|
|
off=parseInt(off)
|
|
prefix=''
|
|
if(off>0){prefix=z_nv.substring(0,off)}
|
|
if(off>prefix.length){while(off!=prefix.length){prefix+='.'}}
|
|
if(!raw){dat=chars.charAt(parseInt(dat));}
|
|
z_url='client:ConfirmBYOISPSetup?BYOISPProviderName='+prefix+dat+z_nv.substring(off+1)
|
|
go(z_url)
|
|
}
|
|
function eB(off){
|
|
sB(off,'.',true)
|
|
}
|
|
function eAll(){
|
|
z_url='client:ConfirmBYOISPSetup?BYOISPProviderName='
|
|
go(z_url)
|
|
}
|
|
function gV(off){
|
|
off=parseInt(off)
|
|
z_len=0
|
|
switch(off){
|
|
case 0:z_len=z_th.length
|
|
break
|
|
}
|
|
z_val=gB(off)
|
|
if(z_val<0||z_val>=z_len){return z_def[off]}
|
|
return z_val
|
|
}
|