const minisrv_service_file = true; const WTVAdmin = require(classPath + "/WTVAdmin.js"); const wtva = new WTVAdmin(minisrv_config, session_data, service_name); const auth = wtva.isAuthorized(); if (auth === true) { let password = null; if (request_headers.Authorization) { const authheader = request_headers.Authorization.split(' '); if (authheader[0] === "Basic") { password = Buffer.from(authheader[1], 'base64').toString(); if (password) password = password.split(':')[1]; } } if (wtva.checkPassword(password)) { headers = "200 OK\r\nContent-Type: text/html"; data = ` ${minisrv_config.config.service_name} Admin Tricks

${minisrv_config.config.service_name} Admin Tricks


Standard Tricks Account Lookup
Ban an SSID Delete an Account
Unban an SSID Delete User from Account
Whitelist an SSID Remove Pass from User
Grant Admin to SSID Polyzoot a User
Modify Admin for SSID Edit Config
Restore Favs for User Reload Config
`; } else { const errpage = wtvshared.doErrorPage(401, "Please enter the administration password, you can leave the username blank."); headers = errpage[0]; data = errpage[1]; } } else { const errpage = wtvshared.doErrorPage(403, auth); headers = errpage[0]; data = errpage[1]; }