function logcontentresolved() { for file in $(find $1/$3 -name '????.??.00.gz' -type f -mindepth 1 -maxdepth 1 -follow); do zcat $file; done; for file in $(find $1/$3 -name '????.??.00' -type f -mindepth 1 -maxdepth 1 -follow); do cat $file; done; }
function logcontent() { for file in $(find $1/$3 -name '????.??.??.gz' ! -name '*00.gz' -type f -mindepth 1 -maxdepth 1 -follow); do zcat $file; done; for file in $(find $1/$3 -name '????.??.??' ! -name '*00' -type f -mindepth 1 -maxdepth 1 -follow); do cat $file; done; }
function host() { cat $2/VIRTUAL/$3/hostname || exit1 "Unable to get hostname for virtual host."; }
function domain() { cat $2/VIRTUAL/$3/domainname || exit1 "Unable to get domainname for virtual host."; }
function analog_cfg() { echo /etc/analog_$3.conf; }
function rmagic_cfg() { echo /etc/rmagic/rmagic_$3.conf; }
function webalizer_cfg() { echo /etc/webalizer_$3.conf; }
function pre_init() { true; }
function post_init() { true; }
function pre_update() { true; }
function post_update() { true; }
# The above can be overridden in /etc/local/www
. /etc/local/www || exit1 "Unable to read prefs file"
# variables and functions too boring to be configurable