home *** CD-ROM | disk | FTP | other *** search
/ Total Network Tools 2002 / NextStepPublishing-TotalNetworkTools2002-Win95.iso / Archive / Web Server / Xitami Multithreaded Web Server.exe / FTPMESG.GSL < prev    next >
Encoding:
Text File  |  2000-01-01  |  3.6 KB  |  90 lines

  1. .-----------------------------------------------------------------------------
  2. .-
  3. .-  ftpmesg.gsl - GSL script to format FTP welcome/sign-in messages
  4. .-
  5. .-  Written:  1999/05/31  Xitami team
  6. .-  Revised:  2000/02/01  Xitami team
  7. .-
  8. .-  If you want to modify this script, copy it, and modify the copy.  Then
  9. .-  change the ftp:message-script option to refer to your new script.
  10. .-
  11. .-  The root item has these attributes:
  12. .-      date                current date, 'yyyy/mm/dd'
  13. .-      time                current time, 'hh:mm:ss'
  14. .-      server_software     name of the web server
  15. .-      server_version      the server version in use
  16. .-      server_name         the current host name
  17. .-      server_port         port on which the web server is running
  18. .-      remote_user         authorised username, if any, else "-"
  19. .-      remote_host         remote host name, "xxx.xxx.xxx.xxx"
  20. .-      status              FTP status, 220, 221, or 230
  21. .-      curusers            Number of users connected including current
  22. .-      maxusers            Maximum permitted number of users - 0 = no limit
  23. .-      use_quotas          1 when quotas are enabled for this user, else 0
  24. .-      soft_quota          User's soft quota, if any, in bytes
  25. .-      hard_quota          User's hard quota, if any, in bytes
  26. .-      disk_usage          User's current disk usage, in bytes
  27. .-
  28. .-  To debug changes to this script, start Xitami in debug mode (server:debug
  29. .-  option) and provoke an error.  This creates a file 'ftpmesg.xml' that you
  30. .-  can feed to gslgen by hand:
  31. .-
  32. .-      gslgen -script:templates/myfile.sch ftpmesg.xml
  33. .-
  34. .-----------------------------------------------------------------------------
  35. .-
  36. .- Status 220 is 'Connected, ready for login'
  37. .-
  38. .if status = "220"
  39. Welcome to this Xitami FTP server, running version $(server_version) of Xitami.
  40. .   if maxusers > 0
  41. You are user number $(curusers) of a permitted $(maxusers) users.
  42. .   else
  43. You are user number $(curusers) on this system.
  44. .   endif
  45. .-
  46. .- Status 221 is 'Disconnecting'
  47. .-
  48. .elsif status = "221"
  49.  
  50. Thank you for using this Xitami webserver.
  51. .   if use_quotas
  52. Your account is using $(disk_usage) bytes, out of a quota of $(soft_quota).
  53. .   endif
  54. .-
  55. .- Status 230 is 'Logged-in'
  56. .-
  57. .elsif status = "230"
  58. Logged in from $(remote_host) as $(remote_user:) on $(date), $(time).
  59. .   if use_quotas
  60. Your account is using $(disk_usage) bytes, out of a quota of $(soft_quota).
  61. .   endif
  62.  
  63. Welcome to the FTP service of ftp.funkychicken-the-movie.com, hosted
  64. on a Googol system running GoogOS version 6.5.  Your server today is
  65. Xitami, the fast 'n free web/ftp server from iMatix Corporation, who
  66. will be happy to take your order at http://www.imatix.com.  In case of
  67. problems please contact the webmaster (joe@funkychicken-the-movie.com).
  68.  
  69. This system is for the use of authorised users only.  Individuals
  70. using this computer system without authority, or in excess of their
  71. auhority are subject to having all their activities on this system
  72. monitored and recorded by system personnel.
  73.  
  74. In the course of monitoring individuals improperly using this system,
  75. or in the course of system maintenance, the activities of authorised
  76. users may be monitored.  Anyone using this system expressly consents
  77. to such monitoring and is advised that if such monitoring reveals
  78. possible evidence of criminal activity, system personnel may provide
  79. the evidence of such monitoring to law enforcement officials.
  80.  
  81. Have a really lovely day!
  82. .else
  83. .-
  84. .-  We should not have anything else
  85. .-
  86. ERROR: invalid FTP status passed to $(script).
  87. .echo "ERROR: invalid FTP status passed to $(script)."
  88. .endif
  89.  
  90.