Viewing file: userlog-details.php (2.97 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php // $Revision: 1.1 $
/************************************************************************/
/* phpAdsNew 2 */
/* =========== */
/* */
/* Copyright (c) 2001 by the phpAdsNew developers */
/* http://sourceforge.net/projects/phpadsnew */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
// Include required files
require ("config.php");
// Security check
phpAds_checkAccess(phpAds_Admin);
/*********************************************************/
/* HTML framework */
/*********************************************************/
phpAds_PageHeader("5.2.1");
phpAds_ShowSections(array("5.2.1"));
// Load translations
require ("../language/".strtolower($phpAds_config['language'])."/userlog.lang.php");
/*********************************************************/
/* Main code */
/*********************************************************/
$res = phpAds_dbQuery("
SELECT
*
FROM
".$phpAds_config['tbl_userlog']."
WHERE
userlogid = ".$userlogid."
");
if ($row = phpAds_dbFetchArray($res))
{
echo "<br>";
echo "<table cellpadding='0' cellspacing='0' border='0'>";
echo "<tr height='20'><td><b>".$strDate."</b>: </td>";
echo "<td>".strftime($date_format, $row['timestamp']).", ".strftime($minute_format, $row['timestamp'])."</td></tr>";
echo "<tr height='20'><td><b>".$strUser."</b>: </td><td>";
switch ($row['usertype'])
{
case phpAds_userDeliveryEngine: echo "<img src='images/icon-generatecode.gif' align='absmiddle'> ".$strDeliveryEngine; break;
case phpAds_userMaintenance: echo "<img src='images/icon-time.gif' align='absmiddle'> ".$strMaintenance; break;
case phpAds_userAdministrator: echo "<img src='images/icon-client.gif' align='absmiddle'> ".$strAdministrator; break;
}
echo "</td></tr>";
$action = $strUserlog[$row['action']];
$action = str_replace ('{id}', $row['object'], $action);
echo "<tr height='20'><td><b>".$strAction."</b>: </td><td>".$action."</td></tr>";
echo "</table>";
phpAds_ShowBreak();
echo "<br><br>";
echo "<pre>".$row['details']."</pre>";
echo "<br><br>";
}
/*********************************************************/
/* HTML framework */
/*********************************************************/
phpAds_PageFooter();
?>
|