interplane.Get Omega
Read in your language

interplane-forge

INTERPLANE Forge

Brought by drakestapleton

branch main Branches Tags History

interplane-forge / social / 50route.om

65 lines · 1246 bytes Raw Blame History
1note social/50route.om: soroute (the social pages and POST actions) and the fragments the server
2note and ForgeBrowse call (sobar, sofolbar, sostarsof, counts). HTML only through fput/fesc/fnum/
3note fputb/flink; every link and form action starts at the base (X-Forge-Base).
4note ---- small output helpers
5fn soerr code ulong m view uchar * to long
6put fkind 0 0
7fsetti tsterr
8fput tshe1
9fesc m
10fput tshe2
11ret long code
12end
13fn sopis t view uchar * to bool
14if ne get fpathl 0 len t
15ret false
16end
17for i ulong len t bound 64
18if ne get fpath i get t i
19ret false
20end
21end
22ret true
23end
24fn sorestis t view uchar * to bool
25if ne get frestl 0 len t
26ret false
27end
28for i ulong len t bound 64
29if ne get frest i get t i
30ret false
31end
32end
33ret true
34end
35note sooutid: escaped bytes of string id s from offset a
36fn sooutid s ulong a ulong to void
37o = get gsso s
38l = get gssl s
39if ge a l
40ret
41end
42for i ulong sub l a bound 4096
43fescc get gsstr add add o a i
44end
45end
46note souser: a user link (display name) or the shortened DID
47fn souser d ulong to void
48fput tsrepo1
49fputb
50sonmout d
51fput tsha2
52if ne get gsnm d 0
53sonmout d
54fput tsha3
55ret
56end
57fput tscode1
58o = get gsso d
59for i ulong 16
60fescc get gsstr add add o len tsdidp i
61end
62fput tsell
63fput tscode2
64fput tsha3
65end