Skip to content
Snippets Groups Projects
  1. Jan 20, 2022
    • Rob Swindell's avatar
      Use the progress() interval argument as the time interval · db05ca40
      Rob Swindell authored
      Default the progress time interval to 500 milliseconds (twice a second).
      
      Don't specify a count/call interval in the call-sites, since we really want to use time-based progress updates now only and the default probably will work fine everywhere.
      db05ca40
    • Rob Swindell's avatar
      Don't display progress() updates more than twice a second · 2ff64a3e
      Rob Swindell authored
      To send less text over slow (e.g. 4800bps) modems. For Nelgin.
      
      This makes the interval argument unnecessary I think.
      2ff64a3e
    • Rob Swindell's avatar
      Add JS methods for vetting filenames (e.g. for upload by users) · ce8aa6e3
      Rob Swindell authored
      system.illegal_filename() - check if contains illegal chars/sequences
      system.safest_filename() - check if contains only safest chars
      system.allowed_filename() - check if meets criteria from SCFG->File Options
      system.check_filename() - check if legal and meets configured criteria and is not in file.can
      bbs.check_filename() - ditto, except will display badfile.msg as appropriate
      
      Now scripts can utilize the sysop-controlled filename criteria and security of the BBS.
      ce8aa6e3
  2. Jan 19, 2022
  3. Jan 18, 2022
    • Rob Swindell's avatar
      Don't display "blank" extended description in listings · 3d1827ad
      Rob Swindell authored
      If an extended description contains nothing but Ctrl-A codes and white-space, don't display it in a file listing (in place of the normal short description).
      3d1827ad
    • Rob Swindell's avatar
      UTF-8 encode/decode support, from martylake · bafe9e60
      Rob Swindell authored
      Based largley on martylake's provided patch set. By default, assumes
      all IRC messages are UTF-8 encoded and will translate to CP-437 if
      appropriate or send as UTF-8 if the user's terminal supports it.
      Set utf8_support=false in the [irc] section of your ctrl/modopts.ini
      file if you wish to disable this behavior.
      bafe9e60
    • Rob Swindell's avatar
      A bit of re-sync with actual keys · 0d822725
      Rob Swindell authored
      Remove JavaScriptContextStack (no longer used).
      Add *Sound keys to the [Global] section.
      0d822725
    • Rob Swindell's avatar
      Fix problem saving HangupSound setting in sbbs.ini · d42803ca
      Rob Swindell authored
      Apparent copy/paste error in sbbs_set_sound_settings() - I was wondering why the HangupSound key wasn't saving to the sbbs.ini file from SBBSCTRL.
      d42803ca
    • Rob Swindell's avatar
      Provide more help for the "Access to Sub-directories" feature · df580ac0
      Rob Swindell authored
      This is an experimental feature that's been in the code for quite a while without any supporting help/docs (there was the original commit message, I'm sure). I'm not sure how much value this feature is without providing automatic access to the *files* within the sub-directories, but there you have it.
      df580ac0
  4. Jan 17, 2022
  5. Jan 16, 2022
    • Rob Swindell's avatar
      335acfd6
    • Rob Swindell's avatar
      cd588ff0
    • Rob Swindell's avatar
      Add JS properties to assist with web-access to filebase · db0607ca
      Rob Swindell authored
      file_area.web_vpath_prefix
      file-metadata-object (return value of FileBase.get()).vpath
      db0607ca
    • Rob Swindell's avatar
      Correct JSDOCS for get_path, get_size, and get_time methods · 546fabe4
      Rob Swindell authored
      These methods also (optionally) accept a file-meta-object as an argument.
      546fabe4
    • Rob Swindell's avatar
      Add support for web request path aliases (defined in web_alias.ini) · 96e1bedc
      Rob Swindell authored
      Similar to the ctrl/ftpalias.cfg file, the new ctrl/web_alias.ini file (optional) can be used to map a portion (the first portion, only) of a web request path to a different physical or virtual path. For example, I'm using it to map:
      /Synchronet/ = /files/main/sbbs/
      for filebase access to my main->sbbs directory of Vertrauen's filebase using a /Synchronet/* web request (i.e. for slightly prettier or shorter custom URLs, if desired).
      96e1bedc
    • Rob Swindell's avatar
      Merge branch 'dd_area_choosers_name_collapsing' into 'master' · 37e828e1
      Rob Swindell authored
      Now supports message sub-board & file directory name collapsing
      
      See merge request !134
      37e828e1
    • Rob Swindell's avatar
      Add direct filebase access from the web server (optional) · b035257e
      Rob Swindell authored
      By setting SCFG->File Options->Web File Virtual Path Prefix to something (e.g. "/files/"), all HTTP or HTTPS requests to the Synchronet Web Server with request paths beginning with this prefix will be interpreted as filebase access requests (with full access control enforcement). This is configured here (in SCFG) rather than, say, the [web] section of sbbs.ini, because I have plans for the terminal server to use this prefix to generate Web-URLs for files to display or email to users.
      
      Currently, only requests to *files* (for download) are supported (no index generation, file information, etc. and definitely no upload support). Full access control (using HTTP auth, not cookies) is used for libraries and directories with controlled access. Credits are deducted and awarded and uploaders are notified of downloads, as one would expect. Requests to any dynamic-web-content files (e.g. .SSJS, .XJS, etc.) will be treated as static file download requests (no script will be executed).
      
      I'm reusing the same virtual path parsing logic from the FTP server (moved to the userdat lib), so the virtual path to a file for download would be, for example, http://yourdomain/files/lib/dir-code/filename.ext
      
      The main motivation for this feature is: FTP-links in email and web pages are just not useful to many users these days and I don't think that sysops should have to rely on a SSJS web UI (e.g. ecWebv4, cool as it is), to provide web-access to the filebases. Using this feature, you can share simpler/shorter web links to your files that will be more enduring.
      b035257e
    • Eric Oulashin's avatar
      Now supports message sub-board & file directory name collapsing, allowing simplified · 9722f091
      Eric Oulashin authored
      file directory and message sub-board lists for ones with common groups, adding a 3rd
      tier of options.  For example, if you have the following file directory structure:
      BBS files
        DOS: BBS software
        DOS: BBS doors
        DOS: BBS utilities
        Windows: BBS software
        Windows: BBS doors
        Windows: BBS utilities
      
      With directory name collapsing, the selection will be come 3 tiers, as follows:
      BBS files
        DOS
          BBS software
          BBS doors
          BBS utilities
        Windows
          BBS software
          BBS doors
          BBS utilities
      9722f091
  6. Jan 14, 2022
  7. Jan 13, 2022
  8. Jan 12, 2022
  9. Jan 11, 2022
Loading