diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2024-12-07 19:36:18 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-12-07 19:36:18 +0800 |
commit | a42ea5a5814113e6952b97f597a78d1061a3f9ea (patch) | |
tree | 5b864d6b281e08193ca9a94383326d3882496e04 /bin | |
parent | 88f3ecd4e6c00db30befc4f6f1a7cf1a85748fe3 (diff) |
Update
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/mail/comment.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/bin/mail/comment.sh b/bin/mail/comment.sh index 8d36e32..20ecb1e 100755 --- a/bin/mail/comment.sh +++ b/bin/mail/comment.sh | |||
@@ -25,6 +25,20 @@ | |||
25 | # </div> | 25 | # </div> |
26 | # <!-- END OF COMMENT BLOCK --> | 26 | # <!-- END OF COMMENT BLOCK --> |
27 | 27 | ||
28 | # 0. Work as CGI {{{ | ||
29 | |||
30 | # Print this script as HTTP Response | ||
31 | if [ -n "$REQUEST_METHOD" ]; then | ||
32 | <<-RESPONSE cat | ||
33 | Status: 200 | ||
34 | Content-Type: text/plain | ||
35 | |||
36 | $(cat $0) | ||
37 | RESPONSE | ||
38 | exit 0 | ||
39 | fi | ||
40 | |||
41 | # }}} | ||
28 | # 1. Check mail is for comment {{{ | 42 | # 1. Check mail is for comment {{{ |
29 | 43 | ||
30 | # Restore mail into variables | 44 | # Restore mail into variables |