• src/sbbs3/js_file_area.c js_user.c main.cpp sbbs.h sbbs_ini.c src/sbbs

    From Rob Swindell@VERT to Git commit to main/sbbs/master on Friday, January 28, 2022 00:07:46
    https://gitlab.synchro.net/main/sbbs/-/commit/acd808d37895d4ea45a46ba5
    Modified Files:
    src/sbbs3/js_file_area.c js_user.c main.cpp sbbs.h sbbs_ini.c src/sbbs3/scfg/scfgxfr1.c src/sbbs3/scfgdefs.h scfglib2.c scfgsave.c startup.h websrvr.c websrvr.h
    Log Message:
    Use sbbs.ini [web] FileVPathPrefix to configure web filebase prefix

    It bothered Deuce having a web server setting in scfg_t/SCFG->File Options, so I moved this setting to [web_]startup_t and the sbbs.ini file.

    The downside is that file_area.web_file_prefix is no longer available to JS environments outside of the web server and terminal server, but meh, probably not going to use it elsewhere anyway? I can imagine use cases for JSexec scripts to want to generate URLs to filebase files. If that ends up being a need, they'll have to find and parse the "right" sbbs.ini file to determine the vpath prefix.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net