slitaz-forge rev 641
More fixes to sdt plugin
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Feb 11 23:19:19 2017 +0100 (2017-02-11) |
parents | 01a0c06f87b6 |
children | f56d6ce4c4c7 |
files | scn/plugins/sdt/sdt.cgi |
line diff
1.1 --- a/scn/plugins/sdt/sdt.cgi Sat Feb 11 23:12:31 2017 +0100 1.2 +++ b/scn/plugins/sdt/sdt.cgi Sat Feb 11 23:19:19 2017 +0100 1.3 @@ -8,6 +8,8 @@ 1.4 # sdt.txt & using | as separator for easy parsing. 1.5 # 1.6 1.7 +sdtdb="$tiny/$content/sdt/sdt.txt" 1.8 + 1.9 sdt_summary() { 1.10 cat << EOT 1.11 <pre> 1.12 @@ -56,7 +58,6 @@ 1.13 case " $(GET sdt) " in 1.14 *\ add\ *) 1.15 sdt_check_ua 1.16 - sdtdb="../../content/sdt/sdt.txt" 1.17 date="$(date +%Y%m%d)" 1.18 user=$(GET user) 1.19 release=$(GET release) 1.20 @@ -93,7 +94,6 @@ 1.21 1.22 *\ sdt\ *) 1.23 d="SliTaz Distro Tracker" 1.24 - sdtdb="$tiny/$content/sdt/sdt.txt" 1.25 header 1.26 html_header 1.27 user_box 1.28 @@ -114,7 +114,6 @@ 1.29 1.30 *\ raw\ *) 1.31 # Plain text stats 1.32 - sdtdb="../../content/sdt/sdt.txt" 1.33 header "Content-Type: text/plain" 1.34 cat << EOT 1.35 Server time : $(date)