Mercurial > hgrepos > hgweb.cgi > s4
comparison scripts/s4-sns.case @ 701:fdd9c98f0888
Remove some debug output and include timestamp in err()
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Fri, 22 May 2020 08:35:05 +0900 |
parents | dd7bedb6a83c |
children | d1f60cdc3e1a d368b937956e |
comparison
equal
deleted
inserted
replaced
700:f2971e549199 | 701:fdd9c98f0888 |
---|---|
1 case $stage in | 1 case $stage in |
2 home|"") | 2 home|"") |
3 contenttype; echo | 3 contenttype; echo |
4 err HOME: just in rowid=`getpar rowid` | |
5 [ -n "`getpar rowid`" ] && par2table $formdir/user.def | 4 [ -n "`getpar rowid`" ] && par2table $formdir/user.def |
6 showhome ${2:-$user} | 5 showhome ${2:-$user} |
7 ;; | 6 ;; |
8 login) | 7 login) |
9 contenttype; echo | 8 contenttype; echo |
31 blog_addentry $2 | 30 blog_addentry $2 |
32 ;; | 31 ;; |
33 "replyblog") | 32 "replyblog") |
34 contenttype; echo | 33 contenttype; echo |
35 rowid=${2%%[!A-Z0-9a-z_]*} | 34 rowid=${2%%[!A-Z0-9a-z_]*} |
36 ## err ROWid=$rowid, '$2'=$2 | |
37 . ./s4-blog.sh | 35 . ./s4-blog.sh |
38 err blog_reply2 $rowid | |
39 blog_reply $rowid | 36 blog_reply $rowid |
40 ;; | 37 ;; |
41 aid[1-9]*) | 38 aid[1-9]*) |
42 arid=${1#aid} | 39 arid=${1#aid} |
43 arid=${arid%%[!0-9]*} | 40 arid=${arid%%[!0-9]*} |
44 . ./s4-blog.sh | 41 . ./s4-blog.sh |
45 err b_r_a "$arid" | |
46 blog_reply_article "$arid" | 42 blog_reply_article "$arid" |
47 ;; | 43 ;; |
48 reload*) # Dirty workaround for reloading page just after submit | 44 reload*) # Dirty workaround for reloading page just after submit |
49 newurl="$urlbase?replyblog+${stage#*/}#bottom" | 45 newurl="$urlbase?replyblog+${stage#*/}#bottom" |
50 echo "Refresh: 0; $newurl"; echo | 46 echo "Refresh: 0; $newurl"; echo |