code wiki / _hdl_build / nx_cms_admin_gate.nx

nx_cms_admin_gate.nx

buildroot/runtime/_hdl_build/nx_cms_admin_gate.nx

5617 B106 linesdepth 6pulls 10 transitivereach 0 importersview sourcekind gate/prooftopic cms
docsdependenciesstructsconstsfunctions

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

nx_http_client.nx nx_sha256.nx nx_syscalls.nx nx_cms_admin_gate.nx

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

main g_setpw sys_mmap sha256_digest sys_mmap ↻ sha256_init sys_mmap ↻ sha256_k sha256_update sha256_compress_ni_blocks blk_set_byte sha256_compress sha256_compress_ni blk_word blk_byte sha256_final blk_set_byte ↻ sha256_compress ↻ sys_openat_wr sys_write sys_close sys_fork sys_mmap ↻ sys_execve sys_exit g_get sys_mmap ↻ nx_http_client_sockaddr_ip nx_http_client_get sys_socket nx_connect_bounded nx_fcntl sys_connect sys_mmap ↻ sys_poll sys_close ↻ sys_mmap ↻ nx_http_client_build_reque hc_put_caps sys_mmap ↻

structs

none

consts

10const G_PORT: i64 = 8093
11const G_SITE: *u8 = "/mnt/c/Users/elder/AppData/Local/Temp/awcms" as *u8
12const G_ADMIN: *u8 = "/tmp/nx_cms_admin.sov.elf" as *u8
13const G_ADMINPW: *u8 = "/mnt/c/Users/elder/AppData/Local/Temp/awcms/admin_pw.sha256" as *u8
14const G_CLIENTPW: *u8 = "/mnt/c/Users/elder/AppData/Local/Temp/awcms/client_pw.sha256" as *u8

functions

17func g_setpw(outpath: *u8, pw: *u8) -> i64
32func 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 }
called by 2: g_rowmain calls 1: sys_write
33func 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 }
called by 2: g_rowmain calls 2: sys_mmapsys_write
34func 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
35func g_find(buf: *u8, n: i64, pat: *u8, plen: i64) -> i64
called by 1: main
41func g_get(path: *u8, buf: *u8, cap: i64) -> i64
47func g_row(id: i64, ok: i64, label: *u8) -> i64
called by 1: main calls 2: g_wg_num
54func main() -> i64