/usr/share/IlohaMail/include/as_update.DB.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 | <?php
/********************************************************
include/as_update.DB.inc
(C)2002-2003 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:
Update session table with latest send operation.
********************************************************/
// delete this session and any old unclosed ones
include_once("../conf/db_conf.php");
//connect to db
include_once("../include/idba.$DB_TYPE.inc");
$db = new idba_obj;
if ($db->connect()){
$numSent = $numSent+$num_recepients;
$sql = "UPDATE $DB_SESSIONS_TABLE";
$sql.= " SET lastSend=".time().", numSent=$numSent";
$sql.= " WHERE sid='$sid'";
if ($db->query($sql)) echo "as updated done.<br>\n";
else echo "as update failed: $sql <br>\n";
}else{
echo "DB connection failed.<br>\n";
}
?>
|