1 / 80

; *****************************************************************

; *****************************************************************. ; * *. ; * DISPWHEN V 1.10 *. ; * *.

trinh
Télécharger la présentation

; *****************************************************************

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ; *****************************************************************

  2. ; * *

  3. ; * DISPWHEN V 1.10 *

  4. ; * *

  5. ; * Written in PPL for PCBoard *

  6. ; * *

  7. ; * Designed By: Gary Meeker *

  8. ; * *

  9. ; * Began development: 04-03-93 *

  10. ; * *

  11. ; *****************************************************************

  12. ;

  13. ; This .PPE checks day, time & security level and displays a file if applicable.

  14. ; Usage:

  15. ;

  16. ; !DispWhen.PPE LowSec;HighSec;StartTime;EndTime;Days;DisplayFile

  17. ;

  18. ; Where:

  19. ; LowSec is the lowest level to display the file to

  20. ; HighSec is the highest level to display the file to

  21. ; StartTime is the Earliest time to display the file

  22. ; EndTime is the latest time to display the file

  23. ; Days is the day flags to display the file SMTWTFS (Y or N for each)

  24. ; DisplayFile is the file to be displayed

  25. ;

  26. ; Example:

  27. ;

  28. ; !DispWhen.PPE 10;80;06:00;08:00;NYYYYYN;C:\PCB\GEN\NoWay

  29. ;

  30. ; The file C:\PCB\GEN\NoWay will be displayed to any caller with a security

  31. ; level between 10 and 80 (inclusive) between the hours 6am to 8am on a

  32. ; weekday (M-F).

  33. ;

  34. ; DispWhen will properly Handle time ranges where the EndTime falls before the

  35. ; StartTime. ie.

  36. ;

  37. ; !DispWhen.PPE 10;80;23:00;01:00;;C:\PCB\GEN\NoWay

  38. ;

  39. ; Also, Days maybe left blank (as above example) and YYYYYYY will be assumed.

  40. ; (Y will be assumed for any days not specified ie NN becomes NNYYYYY)

  41. ;

  42. STRING StartTimeSt, EndTimeSt, DaySt, DisplayFile

  43. INTEGER SecLow, SecHigh

  44. TIME StartTime, EndTime, CurrentTime

  45. ;Parse the command line

  46. GETTOKEN SecLow

  47. GETTOKEN SecHigh

  48. GETTOKEN StartTimeSt

  49. GETTOKEN EndTimeSt

  50. GETTOKEN DaySt

More Related