/usr/share/IlohaMail/include/log.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 37 38 39 40 41 42 | <?php
/********************************************************
include/log.inc
(C)Copyright 2001-2002 Ryo Chijiiwa <Ryo@IlohaMail.org>
This file is part of IlohaMail, and released under GPL.
See COPYING, or http://www.fsf.org/copyleft/gpl.html
PURPOSE:
Shell for log.backend.inc
********************************************************/
include_once("../conf/conf.inc");
if ($log_active){
if (empty($log_backend))
$log_backend = $backend;
if ($log_backend != "FS"){
include_once("../conf/db_conf.php");
if ((!isset($DB_LOG_TABLE)) || (empty($DB_LOG_TABLE))) $log_backend = "FS";
else $log_backend = "DB";
}
if (($log_backend =="FS")&&(empty($log_file))) $log_backend ="";
$log_comment = str_replace("<br>", "", $log_comment);
$log_comment = str_replace("\n", "", $log_comment);
if (!empty($log_backend)){
if (!empty($log_action)){
$log_time = date("M d Y H:i:s", time());
$log_timestamp = time();
$log_ip = $_SERVER["REMOTE_ADDR"];
$log_account = $user_name."@".$host;
$log_comment = $log_comment.$error;
include("../include/log.".$log_backend.".inc");
}
}
}
?>
|