Skip to content
Snippets Groups Projects
  1. Mar 24, 2022
    • Rob Swindell's avatar
    • Rob Swindell's avatar
      byte-count to string routines type unsigned 64-bit int now · 3b6491c5
      Rob Swindell authored
      We don't have a use case negative byte values in strings anywhere that I can think of.
      
      Created wrapper for MSFT _ui64toa_() - unsigned 64-bit integer to ASCII string.
      
      Add Petabyte (actually, Pebibyte) support to byte_count_to_str()  and byte_estimate_to_str().
      
      Removed 'B' suffix from byte_estimate_to_str() output for values < 1024. Callers may display this returned string followed by "bytes" (or similar) and thus the 'B' suffix is redundant in that case. If the caller needs a 'B' suffix, they can detect no suffix and add it.
      3b6491c5
  2. Mar 21, 2022
  3. Mar 20, 2022
    • Rob Swindell's avatar
    • Rob Swindell's avatar
    • Rob Swindell's avatar
      Linux needs strlcpy() defined in xpdev · eb111915
      Rob Swindell authored
      eb111915
    • Rob Swindell's avatar
      Add dynamic file area/base indexing to web server · 8f730cc3
      Rob Swindell authored
      By setting sbbs.ini [web] FileIndexScript to an SSJS or XJS script filename, that script (by default, from your exec directory) will be executed when a file area/base listing has been http[s]-requested. File area/base requests are of the form <vpath_prefix> (for the list of libraries), <vpath_prefix>/<lib-name>/ (for list of directories of a library) or <vpath_prefix>/<lib-name>/<dir-code-suffix>/ (for a list of files in a directory). The new http_request "lib" and "dir" properties indicate that a library or directory listing was requested (if neither are defined, that's a request for the root / list of libs). The same configured script is executed to handle all 3 types of index/list requests.
      
      A sample script (webfileindex.ssj) will be committed soon.
      
      Authentication (via HTTP-AUTH) will be required if user #0 does not have access to all libraries or all directories within a required library.
      
      file_area.lib[].link has been changed from "/<vdir>/" to just "<vdir>" (no slashes) and renamed to "vdir".
      
      file_area.dir[].link has been changed from "/<vpath>/" to "<vpath>/" (no leading slash) and renamed to "vpath".
      
      Added file_area.dir[].vdir property that contains just the directory's virtual directory name.
      
      I don't think anyone was using these "link" properties since the dynamic FTP HTML index scripting feature is no longer supported.
      
      Added can_user_access_lib() to insure that the user has access to at least one directory of a library before allowing access to the library (e.g. via JS). Something similar should be created for message groups.
      8f730cc3
    • Rob Swindell's avatar
      Use JS_ValueToECMAUint32 for full 32-bit time_t values · c6f12bff
      Rob Swindell authored
      Resolves issue with filelist.js trying to pass 4294967295 (-1) to system.datestr() resulting in:
      !JavaScript  /sbbs/exec/filelist.js line 13: Error: can't convert t to an integer
      c6f12bff
  4. Mar 19, 2022
  5. Mar 18, 2022
  6. Mar 17, 2022
  7. Mar 16, 2022
    • Rob Swindell's avatar
      Optional channel list per server configured in modopts.ini · 9c29ea47
      Rob Swindell authored
      So you have multiple IRC servers configured in modopts.ini and
      you want different channel list per server? Just add more
      keys to the modopts.ini [chat_sec] section of the form:
      <server>=<channel_list>
      
      Where <server> is the IRC server's host name (e.g. irc.synchro.net)
      and <channel_list> is a comma-separated list of channels to override
      the default list of channels (set with the "irc_channel" key).
      
      For DesotoFireflite (VALHALLA)
      9c29ea47
  8. Mar 15, 2022
  9. Mar 14, 2022
Loading