/usr/share/IlohaMail/include/log.syslog.inc is in ilohamail 0.8.14-0rc3sid6.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | <?php
/********************************************************
include/log.syslog.inc
Copyright (C) 2001-2002 Ryo Chijiiwa <Ryo@IlohaMail.org>
Copyright (C) 2002 Ziberex andf Torben Rybner
This file is part of IlohaMail, and released under GPL.
See COPYING, or http://www.fsf.org/copyleft/gpl.html
PURPOSE:
Add log entry into system log.
PRE-CONDITIONS:
$log_time : date & time
$log_timestamp : unix timestamp
$log_ip : client IP address
$log_account : User's account (user name @ host)
$log_comment : error message or other comment
********************************************************/
$log_entry = $log_template;
$log_entry = str_replace("date", $log_time, $log_entry);
$log_entry = str_replace("acct", $log_account, $log_entry);
$log_entry = str_replace("ip", $log_ip, $log_entry);
$log_entry = str_replace("action", $log_action, $log_entry);
if (! empty($log_comment))
$log_entry = str_replace("comment", "($log_comment)", $log_entry);
else
$log_entry = str_replace("comment", "", $log_entry);
$log_priority = 6; // 7 = debug, 6 = info, 5 = notice, 4 = warning, 3 = err, 2 = crit, 1 = alert, 0 = emerg
syslog($log_priority, $log_entry);
?>
|