/usr/share/IlohaMail/include/write_sinc.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 43 44 45 46 47 48 49 50 51 52 53 54 | <?php
/////////////////////////////////////////////////////////
//
// include/write_sinc.inc
//
// (C)Copyright 2000-2002 Ryo Chijiiwa <Ryo@IlohaMail.org>
//
// This file is part of IlohaMail. IlohaMail is free software released
// under the GPL license. See enclosed file COPYING for details, or
// see http://www.fsf.org/copyleft/gpl.html
//
/////////////////////////////////////////////////////////
/********************************************************
PURPOSE:
Shell for write_sinc.backend.inc.
Gets config from ../conf/conf.inc
********************************************************/
include("../conf/conf.inc");
$user_name = strtolower($user_name);
$host = strtolower($host);
if ($backend!="FS") $backend = "DB";
include("../include/write_sinc.".$backend.".inc");
/**** Backend agnostic code ***/
if (empty($error)){
//prep uploads dir
$uploadDir = $UPLOAD_DIR;
if (empty($uploadDir)) $uploadDir = "../uploads/";
if (!is_dir(realpath($uploadDir))) $error .= "Invalid uploads directory<br>\n";
else{
$uploadDir = $uploadDir.ereg_replace("[\\/]", "", $user_name.".".$host);
if (!is_dir(realpath($uploadDir))) mkdir($uploadDir, 0700);
}
//prep cache dir
if (empty($CACHE_DIR)) $CACHE_DIR = "../cache/";
if (is_dir(realpath($CACHE_DIR))){
$cacheDir = $CACHE_DIR.ereg_replace("[\\/]", "", $user_name.".".$host);
if (!is_dir(realpath($cacheDir))) mkdir($cacheDir, 0700);
}
if (!file_exists(realpath($uploadDir))) $error .= "Invalid uploads directory<br>\n";
include_once("../include/cache.inc");
cache_clear_all($loginID, $host);
}
?>
|