Commit Graph
78 Commits
Author SHA1 Message Date
Claude 649b4fc426 geoip: checked against DB-IP's database; ZZ, 6to4 and Teredo; credit
Checked on DB-IP's IP to Country Lite (October 2026) against MaxMind's
own reader: 200,000 addresses, IPv4 and IPv6, every country and name
alike from the .mmdb (plain or gzipped). From its CSV: ZZ (and XX, --)
is no country; IPv6 that carries an IPv4 address (6to4, Teredo) is
looked up by it, as a MaxMind DB's tree does; plainer names for the
countries ISO names formally (Russia, DR Congo, Vatican City...).

[chan] geoip_credit and geoip_credit_url put the credit the database's
licence asks for (DB-IP's CC BY 4.0, GeoLite2's) at each page's foot.
An ID's + is escaped in its attribute: the test reads the page as a
browser does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-14 04:34:04 +00:00
Claude 6ea47bb179 Image boards: poster IDs and country flags
A board with ids gives each poster an ID in each thread, as 4chan's: a
keyed hash of their address, the board and the thread, the same all
through a thread, another in the next. Each has its colour; hovering
counts its posts, clicking marks them.

A board with flags shows each poster's country's flag (an emoji, its
name on hovering), from [chan] geoip: a country database read by the
new internal/geoip, which reads MaxMind DB files (GeoLite2, DB-IP
Lite, IPinfo's...; tested on files made by MaxMind's own writer in
each record size, and broken ones) and CSVs of ranges (DB-IP's,
IP2Location LITE's), plain or gzipped, read again when the file
changes. Country names from ISO 3166.

Both are kept with each post, shown on the terminals by the name, and
given in the JSON as 4chan's id, country and country_name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-14 04:20:29 +00:00
Claude a47cbc946f Image boards: captcha and Options settings, boards for users alone
[chan] captcha_length (4 to 10), captcha_level (easy, normal, hard:
how far the letters turn and wave, the lines and specks) and
captcha_lifetime; options = yes|no for the post form's Options line
(sage, nonoko: without it posts bump, on the web and the terminals).
A board's own captcha and options (yes, no, default) say otherwise
than [chan]'s.

A board's login is now no, post (only users post, as before; yes
still means it) or all: only the BBS's users see the board, its pages
redirecting others to sign in, its JSON refused, its images not
there, its front-page images left out and the board marked (members).
boards.json says login and captcha.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-14 02:40:13 +00:00
Claude 3b04006858 Image boards: captchas for those not signed in; members' posts marked
Posting without signing in takes a captcha, drawn here: crooked
letters over noise, its answer sealed in its token (AES-GCM with the
boards' secret), good once and for ten minutes, a new one by script.
[chan] captcha = yes (the default) or no. Signed-in users and the
terminals' callers post without one.

Posts by signed-in users are marked as a member's (a check by the
name, member in the JSON, [member] on the terminals); ticking Sign it
as NAME posts under the account's own name, which no one else can use
(account in the JSON, [signed] on the terminals). forced_anon boards
mark but never sign.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-14 02:28:14 +00:00
Claude 32529543d6 Image boards on the terminals, with their pictures
The text BBS and 3270s have the image boards (B on the main menu, or a
menu's boards): the boards, threads by bump order, posts read as
messages with who posted, the thread, and the posts that quote them.
Callers post as the web's posters do (names, tripcodes, sage, staff's
capcodes), through the same checks: posting is now Submit, shared by
the web's form and bbs.ImageBoards. A thread's image comes by the
terminal's transfer protocol.

Pictures (view.Picture, on messages and panels) are shown as well as
the terminal can: kitty's graphics protocol (kitty, Ghostty), sixel,
iTerm2's inline images (iTerm2, mintty), or coloured half blocks in 256
colours on other UTF-8 terminals; described in words elsewhere and on
3270s. V shows the image whole; pictures on/off is on the profile. The
web terminal has xterm.js's image addon, so sixel there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-14 02:16:21 +00:00
Claude 465bb0b53d Image boards: oekaki, drawing in the page with stroke replay
A board with oekaki = yes has a drawing board in its post form (pen,
eraser, fill, palette, sizes, undo and redo), in plain JavaScript. The
drawing is posted as a PNG through the usual upload, carrying its
strokes and their timing in a private okST chunk (zlib-compressed
JSON), so the file replays wherever it goes. The server checks the
chunk on every PNG (size, canvas, limits, a guard against bombs) and
takes out a bad one, keeping the picture; a good one gives the post a
Replay link, its drawing time, and on oekaki boards Draw over, which
starts a reply from its strokes. boards.json and posts' JSON say so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-14 01:22:44 +00:00
Claude 67eecc7b4e Image boards at /chan/, after kusaba x and 4chan; trusted proxies
Boards by directory with anonymous posts and images: thumbnails made
in Go (JPEG, PNG, GIF, WebP, told by their bytes), JPEG metadata
stripped, duplicates refused by MD5. Threads bump until a bump limit,
sage, image limits, pruning off the last page, stickies and closed
threads. Tripcodes are 2channel's (a DES crypt(3) of our own, checked
against libc's) and secure ones; greentext, >>quotes with backlinks,
cross-board links, spoilers and code. Index, thread pages, catalog,
password deletion, reports; staff (sysops, a board's mods) delete,
ban by address or range, and post with capcodes. Yotsuba, Yotsuba B,
Futaba, Burichan, Photon and Tomorrow styles, and 4chan's read-only
JSON. bbs chan board|ban on the command line; [chan] in bbs.conf.

[http] trusted_proxies: requests from those take their caller's
address from X-Forwarded-For (Forwarded, X-Real-IP), the last hop that
is not a trusted proxy, for rate limits, logs, the deny lists and the
image boards' bans; a proxy's connections are not held to max_per_ip.
secure_cookies for TLS at the proxy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-14 00:53:47 +00:00
Claude 83e7a56cf8 FidoNet: TIC file echoes, nodelists from a file area, docs
File areas become file echoes (bbs filearea echo AREA TAG). TICs from
links are checked (from, password, size, CRC-32, path, dupes), their
files put in the area and passed on to the other links that carry the
echo; files uploaded here are hatched. Replaces removes older files
that came by a file echo. TICs are sent after their files.

nodelist = area:NAME reads the newest file in a file area. Docs cover
bundles, nodelists, AreaFix/FileFix and file echoes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-13 23:06:46 +00:00
Claude 5502f207d2 FidoNet: AreaFix and FileFix, and echoes made when they come
A link with areafix = yes manages what it has here: netmail to AreaFix
(AreaMgr) or FileFix (FileMgr, AllFix) with its areafix_password as the
subject is answered, not delivered: +TAG, -TAG, patterns (+FSX_*), -ALL,
%LIST, %QUERY, %UNLINKED, %HELP, the answer back by netmail.  Such a
link carries the echoes it has linked (within echoes), kept in the
database; others carry their echoes as before.  Requests from systems
that are not links are dropped.

bbs fido areafix|filefix LINK COMMAND... asks a link's robot (our hub's),
with the password we share; bbs fido subs, link, unlink, filelink and
fileunlink show and set a link's by hand.  create = yes makes the area
for an echo a link sends that is not here (named by its tag).  The
store gains the subscriptions, and file areas' file echo tags and files'
origins, for TIC.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-13 22:58:01 +00:00
Claude b0ee27f649 FidoNet: nodelists
[fido] nodelist = one or more files or patterns (NODELIST.*): the newest
of each is read, as it is or out of an archive (ZIP, ARC, ARJ, LHA),
the lists merged, and read again when a newer one comes.  FTS-5000:
zones, regions, hosts, hubs, Pvt, Hold and Down nodes, flags.

- Netmail is checked before it is written: to a node the list lacks
  (where it has the zone) or has down it is refused, to links always
  taken; when it goes, the caller is told whose system it reached.
- In the inbox, N finds systems by name, place, sysop or address, and
  one picked is written to (its sysop, by netmail).
- A link with host = nodelist is called where its IBN (or INA) flag says.
- bbs fido node ADDRESS and bbs fido nodes WORDS look in it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-13 22:53:07 +00:00
Claude b3b7d93f49 Remove a stray Python wheel committed by mistake
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-13 22:48:06 +00:00
Claude 0c0e5ffd51 FidoNet: ARC, ARJ and LHA bundles, in an archive package of our own
internal/archive reads ZIP, ARC (stored, packed, squeezed, crunched,
squashed), ARJ (methods 0 to 4) and LHA (-lh0-, -lh4- to -lh7-, header
levels 0 to 2) in Go, with no other programs, and writes ARC, ARJ and
LHA stored.  Sizes are checked before memory is given to them and every
entry against its CRC; it was fuzzed, and stressed with 350,000 damaged
archives (none slower than 30 ms).  The test archives were made by the
real programs (arc 5.21q, ARJ32 3.10, jlha), and what is written here
passes their own tests.

Bundles from links are tossed whatever their format (known by their
first bytes, not their names); packer = arc, arj or lha bundles in those
(stored).  A test packs packets with the real programs, compressing,
where they are installed.  The file base lists and takes FILE_ID.DIZ
from ARC, ARJ and LHA archives too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-13 22:47:57 +00:00
Claude 4c787da415 Samples: screens, menus and strings in color with tags
logon, welcome and goodbye .asc (shown to plain terminals, Commodores,
and 3270s without a .3270) in color like bulletins.asc; goodbye.3270
with a second color; bbs.conf.sample's menus with tagged titles and
labels and its [strings] with tagged prompts.  A test reads the samples
and fails on a tag that is not one, so a typo shows in the tests rather
than as braces on a caller's screen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-13 22:08:30 +00:00
Claude e9a600bab1 Tags in menu titles and labels too
A menu's title and labels now carry their tags, marked, to the front
ends as its prompt does.  A text terminal shows them as its escape
sequences, each label fitted to its column by what shows (screens.Fit:
marks take no width) and ending plain so its colors stay in it.  A 3270
shows a label's colors as a .3270 line's (spanFields, shared with
lineFields), and its title plain; a RIP terminal's buttons and Who's
online get them plain.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-13 21:33:02 +00:00
Claude ab7a83648d Tags in braces for text terminals: {clear}, {pause}, colors
Text screens (.asc, .txt), the [strings] and a menu's prompt take tags
such as {clear}, {pause}, {red}, {on blue}, {bright}, {underline} and
{reset}, as .3270 files take {color}: ANSI escape sequences on an ANSI
terminal, bold alone on one without color, a Commodore's colors through
the PETSCII translator, the clears and cursor moves on a VT52, nothing
on a plain terminal.  A 3270 shows a text screen's color tags as its
colors and drops the rest, and .3270 files take the text terminals'
names (magenta, cyan, reset) and {clear}/{pause} too.

Only the sysop's text has tags: values of @-codes (a caller's name) are
never read for them.  Strings carry their tags to the terminal as
control-character marks, which values cannot contain, and are dropped
wherever they cannot be shown (Who's online, the 3270).  .3270 lines now
take their colors from those marks as well, so a caller named "{red}"
no longer colors a 3270 screen.

Text screens keep their lines' indentation (it was trimmed), and a line
holding only a clear or a pause leaves no blank line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-13 21:13:41 +00:00
Claude 8274dad087 Web forum: themes along the YaBB lineage
yabb1 (Gold, as YaBB 1 Gold), yabb2 (Default, as YaBB 2.0-2.4, wearing
yabb1's pages under its own head and board index) and yabb25 (Silver,
as YaBB 2.5, wearing yabb2's with its own head, board index and topic).
Layouts follow the templates and stylesheets in YaBB's releases on
SourceForge, and colors follow those stylesheets and, for 2.5, its
translucent images laid over their colors; the templates and CSS are
written for this BBS and take no code or images from YaBB (folders,
lamps, orbs, stars and icons are drawn in CSS).  Adds YaBB's two date
styles, the second with its ordinal day.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-13 20:45:05 +00:00
Claude db49e3f2af Web forum: themes along the PunBB/FluxBB lineage
pun12 (Oxygen, as PunBB 1.2, which FluxBB 1.2 shares), flux15 (Air, as
FluxBB 1.4 and 1.5, wearing pun12's templates over its stylesheet) and
pun14 (Oxygen as PunBB 1.3 and 1.4 restyled it, with pages of its own).
Colors and proportions follow the styles in PunBB's and FluxBB's
repositories; the templates and CSS are written for this BBS and take
no code or images from either.  Adds a ymd date format.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-13 20:19:37 +00:00
Claude 12d5b24d0d Web forum: themes along the MyBB lineage
mybb12 (original): MyBB 1.0-1.2's look, a white frame on a grey page,
a bold menu and welcome panel, steel-bordered tables with blue gradient
heads and pale blue column rows over two greys, round forum lamps,
Board Statistics, posts as rows with the author on the left and the
date beneath, dashed quote boxes.

mybb16 (classic) wears 1.2's pages as MyBB 1.4-1.6 kept them, with
each post a table of its own: a date strip with "Post: #1", the author
across the top with the counts at the right, plain quote boxes.

mybb18 (flat) wears 1.6's pages with 1.8's head, foot and posts: a
black glossy bar with search and welcome over a grey links row,
rounded tables with deep blue heads and black column rows,
speech-bubble icons, posts with a grey author band, black buttons.

Colors and layouts follow the default themes in MyBB's repository
(install/resources/mybb_theme.xml at 1.0, 1.2, 1.4, 1.6 and 1.8); the
CSS and templates are our own, no code or images taken.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-13 19:26:11 +00:00
Claude 3223b74655 Web forum: themes along the XenForo lineage
xf1 (classic): XenForo 1's look, a deep navy head with tabs opening
onto a pale row of links, arrow-ended breadcrumbs, blue gradient
category strips, speech-bubble forum icons, a side column, posts with
the poster in a pale box whose arrow points at the message.

xf2 (xen): XenForo 2's look, a deep blue head over a lighter navigation
bar and pale section links, flat blocks with blue-tinted heads, comment
icons bright when unread, stacked Threads/Messages counts, an orange
Post thread button, posts with the poster in a tinted cell.

xf23 (light) wears xf2's templates as 2.3 refreshed 2.2: rounder
corners, pill buttons, page links and reactions, round pictures, and a
dark variation when the reader's device asks for one.

No XenForo source was at hand; the looks are drawn from memory of its
default styles, in our own CSS and templates.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-13 13:28:31 +00:00
Claude 84da96726a Web forum: themes along the Simple Machines Forum lineage
smf1 (core): SMF 1's Core look, a blue gradient head box with the
greeting, member strip and news, dark blue tabs hanging below it, blue
category bars over grey-lavender cells, posts with the poster's group
and stars on the left.

smf20 (curve): SMF 2.0's Curve, a slate band fading to a pale page, a
white rounded frame, rounded menu buttons and category bars, orange
board and poster names, an Info Center, Quick Reply.

smf21 (simple) and smf30 (natural) wear Curve's templates as SMF 2.1
and 3.0 grew out of it, each with a stylesheet of its own: 2.1's white
top strip, orange menu pills, boxed breadcrumb, orange-edged title bars
and dark blue foot; 3.0's banded top and menu, slate foot and a dark
scheme when the reader's device asks for one.

Colors and layout follow the Core, Curve, 2.1 and 3.0 default themes in
the SMF repository; the CSS and templates are our own, nothing taken
from SMF.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-13 09:50:53 +00:00
Claude 0c459dd25e bbs.conf.sample: rewrap the forum theme list
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-13 09:30:28 +00:00
Claude a06465f87b Web forum: a theme in the manner of vBulletin 6
vb6 (clean) wears the vb5 theme's templates, as vBulletin 6 restyled
vBulletin 5 Connect, with a stylesheet of its own: a white header with
tabs underlined in blue, rounded cards with soft shadows on a cool grey
page, blue buttons in place of orange, larger type in the system's own
face, and a dark scheme when the reader's device asks for one.  The vb5
layout now links its stylesheet by theme name so the two can share it.

Our own CSS; nothing taken from vBulletin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-13 09:30:19 +00:00
Claude cf57595230 Web forum: a theme in the manner of vBulletin 5 Connect
vb5 (connect): a flat navy header with the board's name and the
member's menu, tabs that open onto a white row of links, flat white
widgets with thin grey-blue edges on a pale page, forum and topic
tables with small uppercase column heads and round photos for the last
posters, orange New Topic and Post Reply buttons, posts with the poster
on the left and small Reply, Quote and Like buttons beneath, Who's
Online and Forum Statistics side by side, a navy foot.

Our own CSS and templates; nothing taken from vBulletin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-13 09:18:19 +00:00
Claude ac49357925 Web forum: a theme in the manner of vBulletin 4
vb4 (steel): a white header with the board's name and a login strip, a
deep blue tab bar over a pale blue row of links, a breadcrumb with a big
page title beneath, blocks with rounded blue gradient heads on a light
grey page, round forum icons that glow blue for new posts, Threads /
Posts and Last Post columns, posts with the poster's details on the
left and text buttons beneath, What's Going On?, Quick Reply.

Our own CSS and templates; nothing taken from vBulletin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-13 07:43:06 +00:00
Claude af7559c18c Web forum: a theme in the manner of Invision Community 5
ipb5 (fresh): a slate header with the board's name, its sections and
the member's menu over a darker band with the breadcrumb and a round
search box, a cool grey page, white boxes with soft corners and
shadows, rounded square forum icons that turn blue for unread content,
round photos, a side column of widgets, posts with the author beside
them and pill-shaped reactions beneath, a slate foot.  Colors follow
IC5's default palette, worked out to plain hex.

Our own CSS and templates; nothing taken from Invision Community.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-13 05:38:05 +00:00
Claude 124096774a Web forum: a theme in the manner of vBulletin 3
vb3 (blue): a white page in a grey one under the board's name, a
breadcrumb box with the welcome or a login form beside it and a strip
of blue menu buttons beneath, navy-bordered tables with steel-blue
gradient category bars and darker column heads over two pale
lavenders, the last thread and poster in the Last Post column, What's
Going On?, each post a table of its own with the poster's details on
the left and small buttons beneath, Quick Reply, a deep blue foot.

Our own CSS and templates; nothing taken from vBulletin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-13 05:27:52 +00:00
Claude 4ac0703b61 Web forum: themes in the manner of vBulletin 2 and vBulletin Lite
vb2 (purple): a white panel in a purple page, an oval logo over grey
pill links, slate-bordered tables with lilac headings and purple
category bars, yellow "v" new-post squares, month-day-year dates with
grey times, posts with user titles, Registered and Posts beside them,
Currently Active Users and a guest login row.

vblite (lavender): a chrome italic logo beside five icon links, navy
headings over two lavenders, bulbs for new posts, italic new thread and
post reply buttons, "Posted by:" with the date above.

Our own CSS and templates; nothing taken from vBulletin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-13 05:06:04 +00:00
Claude 16849362b0 Web forum: a modern theme in the manner of Invision Community 4
ipb4: a community suite of the late 2010s, after IPS Community 4.7's
default theme: a pale page, a white header with the board's name and
the user's menu (a <details>, no script), a blue navigation bar with
white tabs, a secondary row and a search box, breadcrumbs with All
Activity, white boxes with soft shadows, big round forum icons blue
when unread, stacked post counts, the last poster's round photo,
Who's Online and statistics widgets beside the forums, posts with the
author's pane on the left, likes as reactions, a reply box with the
poster's photo, a profile with a cover band.  Its own CSS and
templates; no code or images taken from IPS.

Times as such boards tell them ("2 hours ago", "Yesterday at 11:21
PM"): the ago template function.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-13 04:43:20 +00:00
Claude cef84a0c98 Web forum: prosilver themes in the manner of phpBB 3.1, 3.2 and 3.3
Themes may now have a parent: a theme wears its ancestors' templates
under its own, so versions of one look share their markup and differ
in their stylesheets.

- phpbb31: prosilver made responsive, in a white frame on a pale page;
  the header's search box with icon buttons, Quick links and the user's
  menu as <details> (no script), breadcrumbs, white gradient buttons
  with red words, icon-only post buttons, the last post's subject in
  the forum list, small coloured icons, coloured poll bars, quick reply
- phpbb32 (on phpbb31): its pictures turned to icon-font glyphs, grey
  and link blue, drawn by the BBS (no icon font loaded); names in the
  lists in normal weight
- phpbb33 (on phpbb32): what 3.3 changed in the look, which was little:
  taller list headings

The layout's stylesheet is now the theme's name, so a child theme's
page links its own sheet; the 3.2 and 3.3 sheets @import their
parent's.  Their own CSS and templates; no code or images taken from
phpBB.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-13 00:54:46 +00:00
Claude b730efba97 Web forum: a prosilver theme in the manner of phpBB 3.0
phpbb30: a board of 2007-2014, after phpBB 3.0's prosilver: a rounded
blue gradient header with the board's name and a search box, a pale
blue navigation bar with the Board index trail and small icon links,
forums in rounded blue boxes with uppercase headings and pale gradient
rows, round sheet icons (red when unread), white NEW TOPIC and POST
REPLY buttons, posts in rounded panels with the subject, "by X » date"
and the poster's profile on the right, beige quotes, red poll bars,
Who is online and Statistics, a login box for guests and a quick
reply.  Its own CSS and templates; no code or images taken from phpBB.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-13 00:22:58 +00:00
Claude 22ae906dd9 Web forum: a silver theme in the manner of phpBB 2's subSilver
phpbb2: a PHP board of 2002-2008, after phpBB 2.0's subSilver: a grey
page round a white panel, a rounded logo beside the board's title and
a menu of little icons, tables in a thick blue border with blue
gradient headings in orange, silver category bars fading to white,
rows in three silvers, round-tab folders, "new topic" and "post reply"
pill buttons, Posted / Post subject above each post with quote beside
it and Back to top and profile beneath, Who is Online and a login box
on the index, Goto page and Page N of M.  Its own CSS and templates;
no code or images taken from phpBB.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-13 00:13:17 +00:00
Claude b43ce1102d Web forum: a dark theme in the manner of phpBB 1
phpbb1: a PHP board of 2001, after phpBB 1.4's default theme: a black
page, white text and teal links, a glowing italic logo, glowing New
Topic and Reply buttons in the header, [bracketed] menu links, the
-N- statistics block, near-black table lines with cells alternating
grey and navy, small folder icons, posts between rules with little
labelled links beneath, Goto page.  Its own CSS and templates; no code
or images taken from phpBB.

Layouts now know which page they show (page.Page), for headers that
differ by page, as phpBB 1's did.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-13 00:05:36 +00:00
Claude 4c86b112a7 Web forum: a grey theme in the manner of Ikonboard
ikon: a Perl board of 2001, after Ikonboard 2's default look: a narrow
centered page, grey tables with one-pixel cell lines, a title box with
its menu row, a Welcome box, a brushed-metal logo beside a folder tree
of where you are, dark red links, "» Category" rows, Date/Time/by last
posts, grey bevelled buttons, folder badges and gem topic icons, posts
with their author on the left, small icon links above and Total Posts,
Joined, Posted on beneath.  Its own CSS and templates; no code or
images taken from Ikonboard.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-12 23:57:09 +00:00
Claude 26409ef5b0 Web forum: a retro theme in the manner of IPB 1
ipb1: a board of the early 2000s, after Invision Power Board 1.3's
default skin: tables outlined in slate blue with white cell lines,
bright title bars and blue sub-title bars, a flat menu box with round
icons, a Logged in as box, round forum badges, envelope topic icons,
rounded glossy buttons, posts with Posted on and small pill buttons, a
post links bar, a Back to strip, Fast Reply, a big-name profile.  Its
own CSS and templates; no code or images taken from IPB.

The theme test now checks each theme's own layout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-12 23:51:40 +00:00
Claude ae228616f2 Web forum themes: a classic theme in the manner of IPB 2
The forum can wear more than one look.  A theme is a stylesheet and,
in themes/NAME/, templates of its own for the pages it lays out
differently, parsed over the default's.

- ipb2: a board of the mid-2000s in the manner of Invision Power Board
  2's default skin: white page, navy-outlined boxes, gradient title and
  sub-title bars, pale blue rows, Logged in as / Welcome Guest bars,
  Last Post Info, topic folders, post tables with Member No. and Top,
  quote boxes, big blue buttons, Fast Reply, the footer bar.  Its own
  CSS and templates; no code or images taken from IPB.
- ipb3: the existing look (its stylesheet now ipb3.css)
- a theme chooser at the foot of every page, for guests too, kept in a
  cookie; [http] forum_theme sets the forum's own, checked by bbs check
- docs: Web-Forum themes, configuration, development

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-12 23:39:12 +00:00
Claude 546af1eee3 Web forum: the message areas as a bulletin board in the browser
The HTTP API's server serves /forum/ (and / when it is on): the areas as
categories of forums, topics and posts with their authors beside them,
laid out in the manner of Invision Power Board 3's default skin with CSS
of its own (no code or assets taken from it, no scripts on the pages).

- store: messages carry their topic (thread), set on posting, found for
  messages from before, mended when a topic's first post or a reply's
  parent goes; per-user topic read marks; topic lists and counts
- forum: board index with groups, statistics and who's online; area
  topic lists with unread marks and pages; topics with quotes, likes
  (the BBS's votes), polls, deleting, replies; new topics with polls and
  aliases; profiles, search, who's online, login and sign-up
- logins are the API's session tokens in an HttpOnly, SameSite cookie;
  every logged-in form carries a CSRF token; strict CSP, no framing
- [http] forum and forum_guests settings
- bbs.WrapBody: text typed in paragraphs (the forum, the API's posts and
  mail) wrapped to the terminals' 79 columns instead of cut, quotes
  carried onto wrapped lines
- docs: Web-Forum wiki page, configuration, HTTP API, development

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-12 23:22:17 +00:00
Claude 1e1a1ac049 MRC: Multi Relay Chat, its rooms as the BBS's chat rooms
internal/mrc joins the BBS to MRC as its own connector: one connection
to the MRC server ([mrc]: address, TLS) carries all its users.  The
chat rooms beginning mrc- are MRC's (mrc-lobby is its lobby), so
callers on terminals, 3270s, the web and IRC (#mrc-lobby) chat with
other BBSes there under their names.

The protocol is as Synchronet's mrc-connector.js and mrc-session.js
speak it: the SYSTEM~PLATFORM handshake, INFO, IMALIVE and
CAPABILITIES; IMALIVE to the server's PING; each user's IAMHERE every
minute, NEWROOM:old:new, arrival and leaving notices, LOGOFF; lines as
<name> text and actions; Mystic's pipe colors taken out of what comes.
!COMMAND in a room goes to the MRC server, its answer to the asker
alone; private messages likewise.  A dropped line is retried, those
here put back.  [mrc] require limits who may go in.

The chat hub gains a Relay: told of joins, leaves and lines in the
rooms it carries, giving them what comes (RelayEvent, RelayTo).  On
IRC, MRC's users show as nick_Site!mrc@site, and room notices go to
the channel.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-12 20:17:54 +00:00
Claude 1b3efb78a1 Networked doors: telnet, RLogin, BBSLink and DoorParty
A door may be elsewhere ([door NAME] type = telnet, rlogin, bbslink or
doorparty): the caller's line is joined to it over the network, with
the same time limit, idle time, access and CP437 translation as a door
run here (Door.Run's bridge now drives either).

- telnet: the server's negotiation answered (a binary ANSI terminal of
  the caller's size), none of it shown to the caller; IACs doubled
- rlogin: RFC 1282's start ({user} and the rest filled in)
- bbslink: a token from BBSLink's web server, authenticated with the
  BBS's codes (MD5s with the token), then telnet to games.bbslink.net
- doorparty: an SSH tunnel with DoorParty's account (no connector
  needed), then RLogin through it as [TAG]user with the door's code;
  host_key pins the server's key, else each call logs it

The protocols are as Synchronet's and ENiGMA's modules use them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-12 20:10:52 +00:00
Claude 34d2bae4d3 Permanent chat rooms, held open by BBSServ
The sysop makes a room permanent (BBSServ ROOM ADD #room [topic], or
bbs room add): kept open when empty and across restarts (chat_rooms),
with a topic.  Coming in shows the topic; setting it (BBSServ ROOM
TOPIC, TOPIC in the channel, /topic in the BBS's chat; the sysop only)
tells those in the room.  ROOM DEL lets a room go with its last caller.

On IRC, BBSServ sits in each permanent channel as an operator (NAMES,
WHO, WHOIS's channels), LIST shows the rooms with their topics even
when empty, JOIN and TOPIC give 332; ROOMS lists them for anyone.  On
the BBS, /rooms marks them with their topics.  Numerics' last
parameters are now always trailing, as clients expect of lists.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-12 19:47:43 +00:00
Claude ad2d9b8414 BBSServ: an IRC services bot for a user's own account
/msg BBSServ (or /BS) INFO shows the account: level, location, alias,
signature, settings, unread mail, keys, tokens, the new scan.  SET
changes the profile's fields (location, about, alias, signature) and
the terminal and menu settings, with the BBS's own checks; PASSWD the
password; SCAN the areas of the new scan; KEYS lists, adds (with the
password) and deletes SSH keys; TOKENS lists and revokes API tokens.

Its framework (command table, parameters, HELP, CTCP) is adapted from
ergo's services, under its MIT license.  The bot's nick is [irc]
service (default BBSServ); it answers WHOIS and ISON.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-12 19:33:19 +00:00
Claude 7142bf88ad IRC server: the chat rooms as channels, built on parts of ergo
internal/ircd serves IRC ([irc]: plain and TLS listeners, limits at
once and per address, the deny list and bans).  Users log in with
their BBS names and passwords, by SASL PLAIN or PASS name:password,
throttled and hack-logged like any login; their nicks are their names.
Each connection is a node (via irc): in who's online, reached by node
messages, thrown off by the sysop.

#ROOM is the chat room ROOM: IRC clients talk with callers on
terminals, the web and the API.  PRIVMSG to a nick is a node message;
/me is an emote; pages, mail and notices come as NOTICEs, and a sysop
answers a page by joining #sysop-N.  NAMES, WHO, WHOIS, LIST, ISON,
USERHOST, MOTD, LUSERS; IRCv3 sasl, server-time (history replayed on
join with its times), echo-message, multi-prefix, userhost-in-names.

The protocol's parts are ergo's: messages read and written by its
irc-go library (ircmsg, ircreader, ircfmt), the numerics and the
ISUPPORT list taken from its source under the MIT license
(internal/ircd/LICENSE.ergo).  A node may now be in several rooms at
once (JoinAlso, SayIn, Part) for IRC's channels.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-12 19:23:23 +00:00
Claude 09e9152049 QWK networking: the BBS as a hub, and as a node
As a hub: an account flagged qwk_node (bbs user qwknode NAME, or the
API's qwk_node) is another BBS's.  What its REPs bring is posted under
its writers' names, with its access checked, and its packets leave out
what came from it.

As a node: [qwknet NAME] calls the hub by FTP (FTPS explicit or
implicit) every so often, or on bbs qwknet call and POST
/api/v1/admin/qwknet/call.  It puts a REP of what was written here in
the network's areas since the last call (nothing from before joining,
nothing that came by a network or peer), then takes the hub's packet
and posts it in the areas of its conferences (CONFERENCE = AREA).
Messages are known by conference and number (qwk_msgs), so nothing
comes twice and answers keep their threads.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-12 18:30:41 +00:00
Claude a00b469b5e QWK offline mail: packets of new messages and mail, REP replies
internal/qwk reads and writes QWK packets and REPs: MESSAGES.DAT's
blocks, CONTROL.DAT, conference and personal indexes (MBF floats),
QWKE kludges for long names and subjects, CP437 text.

A caller's packet holds their unread mail (conference 0) and the new
messages of the areas in their new scan (an area's ID its conference);
they count as read only once the packet has gone.  A REP's messages are
posted and mailed as the caller, with their access checked; one brought
twice posts once (qwk_seen, kept 90 days).  BBSID: qwk_id, or made of
the name.

Offline mail is O on the main menu (qwk in the sysop's menus): by
X/Y/ZMODEM or Kermit on the text BBS, IND$FILE GET and PUT on a 3270,
/qwk over FTP, and GET /api/v1/qwk, POST /api/v1/qwk/rep.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-12 18:21:59 +00:00
Claude bccdf2cc6a Deepen the message base: threads, votes, polls, aliases, signatures, groups, retention
For every front end (internal/app), the API and the CLI:

- Threads: from a message, the one it answers (O, PF2) and its whole
  thread (T, PF6), replies under what they answer; GET
  /messages/{id}/thread.
- Votes: up, down or none on a message (V, PF1), shown by its number;
  POST /messages/{id}/vote.
- Polls: a question and 2 to 10 answers posted in an area (L, PF9),
  answered (A, PF12) and shown with each answer's share; POST with
  "poll", POST /messages/{id}/answer.
- Aliases: a user's alias (checked like a new name, no one's name or
  alias) posted under in areas that allow it; the message's From is the
  alias everywhere, newsgroup articles included (they used the real
  name), while the sysop keeps whose it is.
- Signatures: up to three lines under posts and mail written on the BBS.
- Groups: areas listed by group, with a Group column.
- Retention: an area keeps its newest N messages and/or those of the
  last D days, purged hourly and by bbs area purge.

Tested on SQLite, PostgreSQL, MySQL and MariaDB.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-12 18:06:52 +00:00
Claude a93a2cf303 Add the sysop's tools: watching nodes, chat, users, statistics, events
A sysop's main menu has * (and custom menus a sysop action), on every
terminal:

- Watch a node: what a text caller is sent, as it is sent (the text
  terminal's connection echoes to bbs.Node.Echo; a slow watcher misses
  some, never slows the caller).  A key stops; the caller leaving ends
  it.  Text terminals only.
- Chat with a node: the caller is told and taken into a private chat
  (their page's room) at their next menu; the sysop waits there.
- Kick a node.
- Users: level, flags, lock, sysop rights, a new password (not one's
  own lock or rights).
- Statistics: totals, and calls, new users, posts and uploads for each
  of the last 14 days as bars.
- The bans (lifted by number) and the hack log.
- Scheduled events ([event NAME]: a program run without a shell, daily
  at a time or every N minutes, with a timeout; internal/events): when
  they run next, the last run's end and output, run now.
- Available: whether pages reach the sysop; when not, a caller who pages
  may leave a message.

The API: GET /admin/events, POST /admin/events/{name}/run, PUT
/admin/available.  Sysop-Tools is the wiki page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-12 17:45:05 +00:00
Claude dd788e26a3 Add the last callers, feedback, user details, a line about oneself, expert menus
- Last callers (L, and a callers menu action): each login is recorded
  (calls: the newest 10000 kept); GET /api/v1/callers.
- Feedback to the sysop (K, a feedback action): mail any caller may
  send, whatever their level allows.
- The user list picks a user: their details (a sysop sees their access
  and files too), and mail to them from there.
- A line about oneself, on the profile (Y; - clears it) and PATCH /me's
  about, shown with one's details.
- Expert menus (the expert setting, X on a text terminal's profile): a
  menu is its prompt, "Command (? for the menu): ", and ? shows it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-12 17:33:55 +00:00
Claude 8ab9e8a24b Keep callers out: deny lists, bans, a name filter, the hack log, telnet over TLS
[security] in bbs.conf (internal/guard):

- deny_file: addresses and networks (IPv4, IPv6, CIDR) whose
  connections every service closes at once: the terminal listeners and
  SSH, FTP, NNTP, the HTTP API, finger, gopher and binkp.  Read again
  when it changes; bbs check warns of bad lines.  Unix-socket callers
  (modem servers, menus) are never refused.
- ban_minutes: an address the login throttle turns away is banned from
  every service for that long.  The API lists bans and lifts them.
- name_deny_file: name patterns (* wildcards, any case) no new account,
  nor one an upstream menu makes, may take; the text BBS says so as the
  name is typed.
- hack_log: failed logins and the names tried, locked accounts,
  throttles, bans, refused connections and names, one a line; the API
  shows its end.

A telnet or raw listener with tls_cert and tls_key is telnet over TLS
(1.2 or later; port 992), with 15 seconds for the handshake.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-12 17:27:43 +00:00
Claude 1805fcbd13 Add JavaScript scripting: the sysop's own screens, on every terminal
A script (scripts_dir/NAME.js, run by a menu's script:NAME, and logon.js
after each login) draws the BBS's shared screens through ui (menus,
tables, forms, panels, messages, the editor, confirmations), so one
script works on text, RIP and 3270 terminals.  It acts as its caller,
with their access: msg (areas, messages, posting, mail), node (who's
online, node messages, its activity), user, bbs; and keeps JSON values
in data, for everyone or (data.user) for the caller, in the database
(script_data).

goja runs it in strict mode, with no files, network or processes.  A
watchdog stops a script that computes more than two seconds between
screens (the caller's time at a screen is not counted); the caller
hanging up ends a script whatever it catches; failures are logged and
told (to a sysop, with why).  Scripts are compiled once, again when
changed; bbs check refuses scripts that do not compile and menus naming
missing ones.

goja is pinned to its June 2026 commit (the last that builds with Go
1.24; it is changing quickly now).

scripts.sample has one-liners and a poll; both are tested, the
one-liners on a text terminal and on a 3270 (s3270).  That test found
3270 forms broken since the shared screens: the input field began
under its label's last character, whose attribute byte erased it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-12 14:52:12 +00:00
Claude 0cce335b88 Deepen the file base: DIZ, archive views, new files, search, batches, ratios
- FILE_ID.DIZ: an archive uploaded by any way (the BBS, IND$FILE, FTP,
  the API, the CLI) is described by its DIZ, kept as the file's longer
  description (CP437 decoded, colors and control characters out, at
  most 20 lines); its first line that says something is the description
  unless the uploader gave one.
- Archives: what is in a ZIP, tar or tar.gz, from a file's details (V,
  PF6) and GET /files/{id}/listing.
- New files since the caller's last call (N, PF5) and finding files by
  name and descriptions (F, PF10), across the areas they may see; the
  API's GET /files?since= and ?q=.
- A batch: files tagged (T, by numbers such as 1 3 5-7, or from a
  file's details) download together by YMODEM, ZMODEM or Kermit; a file
  counts once the protocol has gone on past it.  Frontend.Download takes
  a list of files.
- Ratios: [level] ratio and ratio_free (files downloadable for each
  upload, and before the ratio counts), checked with the day's limit for
  a whole batch.  Users' lifetime downloads and uploads are counted.

The store gains a {plain} token: PostgreSQL's LIKE refuses the
case-insensitive collation of {name} columns.  Tested on SQLite,
PostgreSQL, MySQL and MariaDB.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-12 14:41:19 +00:00
Claude 05022e2a82 Choose the new scan's areas, list messages to you, find messages
In the message areas, for every front end (internal/app):

- Scan setup (S, PF11): which areas the new scan goes through, kept per
  user (scan_off: the areas left out; all are in until taken out).
- To you (T, PF4): the newest 100 messages addressed to the caller, in
  any case, in the areas they read, unread ones marked.
- Find (F, PF10): messages whose subject, text or author has the words,
  in any case, newest first; LIKE's wildcards are taken as text.

Reading what these found leaves the areas' last-read points as they
were.  A 3270's key line closes up when a screen has many actions.

Tested through internal/app and in the store on SQLite, PostgreSQL,
MySQL and MariaDB.  Message-Areas is the callers' wiki page for the
areas.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-12 14:26:54 +00:00