slitaz-dev-tools diff tazwikiss/rootfs/var/www/wiki/index.sh @ rev 301
tazwikiss: replaced blank in curdate() in index.sh by T to display filenames properly in history
author | Hans-G?nter Theisgen |
---|---|
date | Fri Apr 28 14:08:02 2017 +0100 (2017-04-28) |
parents | 81bd63f2a1a1 |
children | a6b28f1e53eb |
line diff
1.1 --- a/tazwikiss/rootfs/var/www/wiki/index.sh Wed May 25 16:08:06 2016 +0200 1.2 +++ b/tazwikiss/rootfs/var/www/wiki/index.sh Fri Apr 28 14:08:02 2017 +0100 1.3 @@ -86,12 +86,12 @@ 1.4 1.5 curdate() 1.6 { 1.7 - date '+%Y-%m-%d %H:%M' 1.8 + date '+%Y-%m-%dT%H:%M' 1.9 } 1.10 1.11 filedate() 1.12 { 1.13 - stat -c %y $1 | sed -e 's|-|/|g' -e 's/\(:..\):.*/\1/' 1.14 + stat -c %y $1 | sed -e 's/\(:..\):.*/\1/' 1.15 } 1.16 1.17 AUTH=$(GET auth) 1.18 @@ -219,7 +219,7 @@ 1.19 HISTORY="$HISTORY_BUTTON" 1.20 CONTENT="$NO_HISTORY" 1.21 if [ -d $complete_dir ]; then 1.22 - CONTENT="<form method=\"GET\" action=\"$urlbase\">\n<input type=hidden name=action value=diff><input type=hidden name=page value=\"$PAGE_TITLE\">" 1.23 + CONTENT="<form method=\"GET\" action=\"$urlbase\"><input type=hidden name=action value=diff><input type=hidden name=page value=\"$PAGE_TITLE\">" 1.24 for file in $(ls $complete_dir | sort -r); do 1.25 CONTENT="$CONTENT 1.26 <input type=radio name=f1 value=$file><input type=radio name=f2 value=$file />