Section One BBS

Welcome, Guest.


Subject: src/sbbs3/js_file_area.c js_user.c main.cpp sbbs.h sbbs_ini.c src/sbbs Date: Fri Jan 28 2022 12:07 am
From: Rob Swindell To: Git commit to main/sbbs/master

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 w
ebsrvr.h
Log Message:
Use sbbs.ini [web] FileVPathPrefix to configure web filebase prefix
                                                                   
                                                                   It bothered D
euce having a web server setting in scfg_t/SCFG->File Options, so I moved this s
etting to [web_]startup_t and the sbbs.ini file.
                                                
                                                The downside is that file_area.w
eb_file_prefix is no longer available to JS environments outside of the web serv
er 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.

---
 ■ SynchronetVertrauen Home of Synchronet [vert/cvs/bbs].synchro.net

Previous Message       Next Message