AmendHub

jcs

/

subtext

/

amendments

/

db.h

Amendments on September 21, 2022

session: Stop persisting tally, prune old session logs

Prune after 21 days of logs by default, every morning. The db was
getting quite large and each new login or recent call check was
taking a long time.
We're stable now so we don't have to persist the call log tally to
disk, just keep it in memory.
jcs made amendment 255 about 1 year ago

Amendments on September 16, 2022

board: Store each user's 'via' in each post

I saw this on another BBS and thought it was kind of neat to see
how each person connected when they made a post.
jcs made amendment 253 about 1 year ago

Amendments on September 14, 2022

*: Add Message of the Day support

Track the highest MOTD id each user has seen and only show it on
login if the current one is higher than the user's highest seen.
Also, in migrations, we can't iterate through users while modifying
each one, because the order will change as we save and write a new
user in the map.
jcs made amendment 250 about 1 year ago

Amendments on July 19, 2022

*: Add session signoff view, remove session_output_template

All remaining uses of session_output_template can use session_printf
which still does {{B}} and {{/B}} parsing.
Change session_output_view to session_output_view_or_printf to make it
easier to print a view and fallback to a string, rather than having to
check the result of session_output_view everywhere.
jcs made amendment 218 about 1 year ago

Amendments on July 16, 2022

*: Properly handle running out of sessions

Limit sessions to the number of uthreads we can handle, and then
reserve 1 session for the console.
In telnet, allocate one extra node so we can print a message to the
client that we have no free nodes, and then disconnect. Add a view
for this to make it editable.
In console, handle getting a null session back from session_create.
jcs made amendment 211 about 1 year ago

Amendments on July 14, 2022

telnet: When banning an IP, optionally send it via UDP to trusted proxy

If the new trusted_proxy_udp_port config option is set, send a UDP
packet containing the IP to the trusted_proxy_ip host so it can ban
it more aggressively.
jcs made amendment 204 about 1 year ago

Amendments on July 13, 2022

serial: Add config setting for port speed

jcs made amendment 202 about 1 year ago

Amendments on June 30, 2022

*: Hook up folders

jcs made amendment 179 about 1 year ago

Amendments on June 22, 2022

telnet: Add trusted proxy IP setting for web gateway, unblock IPs

When a telnet connection comes from the configured proxy IP, allow the
REMOTE_ADDR environment variable passed to be used as the connection's
IP. Also don't auto-ban connections from the proxy.
Request TSPEED and store it as the session's terminal speed, just for
showing up in 'who' output.
Automatically unban IPs after 30 minutes by tracking the ban time.
jcs made amendment 166 about 1 year ago

Amendments on June 21, 2022

blanker: Add a simple screen blanker

This will trigger after the configured number of idle seconds, when
there are no active sessions. A mouse click or key press will unblank
right away, otherwise it will unblank automatically after the
configured number of runtime seconds.
This is a more CPU-friendly alternative to a normal screen saver, and
it will only run for a short amount of time to do its job of blanking
the screen to prevent burn-in.
jcs made amendment 159 about 1 year ago

Amendments on June 13, 2022

db: Add max_login_seconds to be shorter than max_idle_minutes

jcs made amendment 140 about 1 year ago

Amendments on June 7, 2022

db: Fix IDs for views

jcs made amendment 126 about 1 year ago

session: Implement persistent days-per-call tallying

Stub out file area response in main menu for now
jcs made amendment 124 about 1 year ago

sysop: Add user management

Also wire up new/signup login to direct there upon login, adding a
setting to the global config to allow it.
jcs made amendment 123 about 1 year ago

Amendments on May 24, 2022

db: Add timezone field to config

This is just for printing in timestamps and doesn't affect any
date/time calculation
jcs made amendment 108 about 1 year ago

Amendments on May 23, 2022

*: Lots of deck chair rearranging

Move things from db files to their respective areas
Make username map contain normal username, just do strcasecmp check
during user_find_by_username.
jcs made amendment 107 about 1 year ago

Amendments on May 15, 2022

session: Add session_menu, use it everywhere

Start on sysop board management
jcs made amendment 100 about 1 year ago

Amendments on May 12, 2022

settings: Move to interactive text-based menu for sysops

This will allow remote administration and have a reusable component
for editing structs for users, boards, etc.
jcs made amendment 99 about 1 year ago

Amendments on April 14, 2022

focusable: Move code to separate file, fix a bunch of bugs here

Fix drawing on the wrong window, drawing in the wrong font, crash at
exit, etc.
jcs made amendment 92 over 2 years ago

Amendments on March 17, 2022

serial: Start on serial modem support

jcs made amendment 88 over 2 years ago