Oh, if you can use UBB's library it's much easier... Copy the beginning of ubb_calendar_ssi.cgi (from the beginning until "use strict;", EXCEPT for the UNLESS line) to ubb_lib_calendar.cgi, then add:
Then change the &sub_that_etc_etc to their real names, and use ubb_lib_calendar.cgi (but you'll have to edit every public_calendar_X and public_new_calendar_event to use ubb_lib_calendar, and if needed also use COMMAND instead of UBB in
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.