function events($text) { $logFile = "/var/log/artica-postfix/artica-status.debug"; $f = new debuglogs(); $f->debuglogs($text); }
function events($text) { if (!isset($GLOBALS["ARTICALOGDIR"])) { $GLOBALS["ARTICALOGDIR"] = @file_get_contents("/etc/artica-postfix/settings/Daemons/ArticaLogDir"); if ($GLOBALS["ARTICALOGDIR"] == null) { $GLOBALS["ARTICALOGDIR"] = "/var/log/artica-postfix"; } } if ($GLOBALS["VERBOSE"]) { echo $text . "\n"; } include_once dirname(__FILE__) . "/framework/class.unix.inc"; $logFile = "{$GLOBALS["ARTICALOGDIR"]}/artica-status.debug"; $f = new debuglogs(); $f->debuglogs($text); }
function events($text) { include_once dirname(__FILE__) . "/framework/class.unix.inc"; $logFile = "/var/log/artica-postfix/artica-status.debug"; $f = new debuglogs(); $f->debuglogs($text); }