If you look at our codebase, we have this powerful function called printfile_random(). What it does is take the basename of the file, checks in gfiles/ directory if a file with the basename and .0 "extension" exists. If a dot-zero file exists, it will check for files with extension .{number-here} then display one of these randomly.
In our codebase, it is used only ONCE, in lilo.cpp when it displays the WELCOME file. If you put a bunch of welcome.0 welcome.1 welcome.2 files in gfiles, it will randomly show one of those.
We can mod our source to allow for this kind of behavior for all sorts of files that we display in our BBS.
-x
A .-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-.
/*\ | /\liens' /\lcove! WWIV on Linux, Taguig, Metro Manila, Philippines |
/ v \`-=-=-=-=-=-=-=-=-=-=-=-[ WWIV Development ]-=-=--=-=-=-=-=-=-=-=-=-=-'
--- WWIVToss v.1.52
* Origin:
http://www.weather-station.org * Bel Air, MD -USA (11:1/101.0)