code wiki / _hdl_build / nx_adnet_submit.nx
nx_adnet_submit.nx
buildroot/runtime/_hdl_build/nx_adnet_submit.nx
about
nx_adnet_submit.nx -- LIB: the SELF-SERVE advertiser intake SURFACE (server-rendered, ZERO JS) for the
sovereign ad network. Completes the "businesses sign up to advertise" census axis with a real, frontend-
testable page: GET renders the form; POST parses the urlencoded body (the DRY nx_http_form_get_field the
login route uses), builds a full inventory row, VALIDATES it with the exact same fail-closed validators
the serving slot enforces (ass_valid_row: first-party img only, http(s)/path click only, clean slug), and
STAGES it to an operator-review journal. STAGED IS NOT LIVE: nothing an advertiser submits ever serves
until the operator approves it (ass_approve, a separate operator lane). B2B only; the schema has NO visitor
field -> no visitor identity can transit this path by construction. All reflected input is HTML-escaped.
license_tier: ORIGINAL
dependencies 3 imports · 2 importers
imports: nx_syscalls.nxnx_http_form.nxnx_adnet_selfserve.nx
imported by: nx_adnet_submit_gate.nxnx_sites_daemon_v2.nx
structs
| none |
consts
| none |
functions
| 15 | func asf_cat_esc(dst: *u8, off: i64, s: *u8, cap: i64) -> i64 |
| 35 | func asf_render(out: *u8, cap: i64, msg: *u8, slug: *u8, adv: *u8, img: *u8, click: *u8, section: *u8) -> i64 |
| 68 | func asf_form_page(out: *u8, cap: i64) -> i64 |
| 76 | func asf_post(body: *u8, body_n: i64, subs_path: *u8, out: *u8, cap: i64) -> i64 |