ziproxy_genhtml_stats.sh (ziproxy-3.3.1) | : | ziproxy_genhtml_stats.sh (ziproxy-3.3.2.tar.bz2) | ||
---|---|---|---|---|
skipping to change at line 105 | skipping to change at line 105 | |||
# ziproxy head banner | # ziproxy head banner | |||
printf '<table border=0 cellpadding=2 cellspacing=2 width='${GLOBAL_WIDTH }'><tr><td bgcolor="#000000">\n' | printf '<table border=0 cellpadding=2 cellspacing=2 width='${GLOBAL_WIDTH }'><tr><td bgcolor="#000000">\n' | |||
printf '<table border=0 cellpadding=0 cellspacing=0 width="100%%"><tr><td bgcolor="#ffffff">\n' | printf '<table border=0 cellpadding=0 cellspacing=0 width="100%%"><tr><td bgcolor="#ffffff">\n' | |||
# | # | |||
printf '<table border=0 cellpadding=0 cellspacing=0><tr>\n' | printf '<table border=0 cellpadding=0 cellspacing=0><tr>\n' | |||
printf '<td bgcolor="#ffffff"><font size=1><b>ZIP</b></font></td>' | printf '<td bgcolor="#ffffff"><font size=1><b>ZIP</b></font></td>' | |||
printf '<td bgcolor="#ffffff"><font size=3><b>ROXY</b></font></td>' | printf '<td bgcolor="#ffffff"><font size=3><b>ROXY</b></font></td>' | |||
printf '</table>' | printf '</table>' | |||
# | # | |||
printf '<font size=1>\n' | printf '<font size=1>\n' | |||
printf 'Copyright (c)2005-2014 Daniel Mealha Cabrita<br>\n' | printf 'Copyright (c)2005-2021 Daniel Mealha Cabrita<br>\n' | |||
printf 'Licensed under the GNU GPL v2 or later version<br>\n' | printf 'Licensed under the GNU GPL v2 or later version<br>\n' | |||
printf '</font>' | printf '</font>' | |||
printf '</td></tr></table>\n' | printf '</td></tr></table>\n' | |||
printf '</td></tr></table>\n' | printf '</td></tr></table>\n' | |||
printf '<br>\n\n' | printf '<br>\n\n' | |||
} | } | |||
html_end () | html_end () | |||
{ | { | |||
skipping to change at line 430 | skipping to change at line 430 | |||
cat ${LOG_FILE} | top_bottom_by_in_bytes 10 0 "Top 10 hosts by incoming ( pre-compression) bytes" | cat ${LOG_FILE} | top_bottom_by_in_bytes 10 0 "Top 10 hosts by incoming ( pre-compression) bytes" | |||
cat ${LOG_FILE} | top_bottom_by_in_bytes 10 1 "Bottom 10 hosts by incomin g (pre-compression) bytes" | cat ${LOG_FILE} | top_bottom_by_in_bytes 10 1 "Bottom 10 hosts by incomin g (pre-compression) bytes" | |||
# | # | |||
printf "</tr></tr>" | printf "</tr></tr>" | |||
block_end | block_end | |||
html_end | html_end | |||
} | } | |||
if [ "$1" = "-h" ]; then | if [ "$1" = "-h" ]; then | |||
printf "Ziproxy HTML stats generator 1.0.2\nCopyright (c)2006-2014 Daniel Mealha Cabrita\nLicensed under GNU GPL license. See documentation for details.\ n\n" | printf "Ziproxy HTML stats generator 1.0.2\nCopyright (c)2006-2021 Daniel Mealha Cabrita\nLicensed under GNU GPL license. See documentation for details.\ n\n" | |||
printf "Usage: ziproxy_genhtml_stats.sh <log_filename> [page_title]\n\n" | printf "Usage: ziproxy_genhtml_stats.sh <log_filename> [page_title]\n\n" | |||
exit 0 | exit 0 | |||
fi | fi | |||
generate_page "$1" "$2" | generate_page "$1" "$2" | |||
# (end) | # (end) | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added |