code wiki / _hdl_build / nx_cms_admin_gate.nx
nx_cms_admin_gate.nx
buildroot/runtime/_hdl_build/nx_cms_admin_gate.nx
about
nx_cms_admin_gate.nx -- SOVEREIGN front-end gate for the andelinwest CMS admin: spawns the admin
daemon (fork/exec /tmp/nx_cms_admin.sov.elf) against the local dev site, then over REAL HTTP (sovereign
nx_http_client) asserts the THREE login surfaces render: home has both login links, /admin = lawyer/staff
login, /portal = client login. This is the "verify/gate" stage of local->dev->live -- repeatable, no curl.
Exit 0 iff all rows pass; appends a verdict line to knowledge/status/cms_admin_gate.log. license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_http_client.nxnx_sha256.nxnx_syscalls.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 10 | const G_PORT: i64 = 8093 |
| 11 | const G_SITE: *u8 = "/mnt/c/Users/elder/AppData/Local/Temp/awcms" as *u8 |
| 12 | const G_ADMIN: *u8 = "/tmp/nx_cms_admin.sov.elf" as *u8 |
| 13 | const G_ADMINPW: *u8 = "/mnt/c/Users/elder/AppData/Local/Temp/awcms/admin_pw.sha256" as *u8 |
| 14 | const G_CLIENTPW: *u8 = "/mnt/c/Users/elder/AppData/Local/Temp/awcms/client_pw.sha256" as *u8 |
functions
| 17 | func g_setpw(outpath: *u8, pw: *u8) -> i64 |
| 32 | func g_w(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 33 | func g_num(v: i64) -> i64 { let b: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m}; let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48;k=1}; while m>0{t[k]=48+(m%10);m=m/10;k=k+1}; var i: i64=0; while i<k{b[i]=t[k-1-i];i=i+1}; sys_write(1,b,k); return 0 } |
| 34 | func g_len(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } called by 1: g_get |
| 35 | func g_find(buf: *u8, n: i64, pat: *u8, plen: i64) -> i64 called by 1: main |
| 41 | func g_get(path: *u8, buf: *u8, cap: i64) -> i64 |
| 47 | func g_row(id: i64, ok: i64, label: *u8) -> i64 |
| 54 | func main() -> i64 |