- Timestamp:
- 05/11/08 09:52:17 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/gauche/irc-logger/trunk/htdocs/logview.cgi
r43 r46 5 5 (require "../setting") 6 6 (require "../lib/rawlog") 7 8 (use srfi-19) 7 9 8 10 (define (it s) #`"<i>,|s|</i>") … … 40 42 (define query-string (sys-getenv "QUERY_STRING")) 41 43 42 (unless (and query-string (rxmatch #/^20[0-9][0-9]-[01][0-9]-[0-3][0-9]$/ query-string)) 43 (display "Content-type: text/html") (newline) (newline) 44 (error "invalid query string")) 45 46 (define date-str query-string) 44 (define date-str (if (and query-string (rxmatch #/^20[0-9][0-9]-[01][0-9]-[0-3][0-9]$/ query-string)) 45 query-string 46 (date->string (current-date) "~Y-~m-~d"))) 47 47 48 48 (display "Content-type: text/html\r\n\r\n")