📄 index.php
字号:
<?
include_once("inc/auth.php");
include_once("inc/utility_all.php");
include_once("inc/ip2add.php");
$query = "SELECT * from USER where USER_ID='$LOGIN_USER_ID'";
$cursor= exequery($connection,$query);
if($ROW=mysql_fetch_array($cursor))
{
$USER_NAME=$ROW["USER_NAME"];
}
?>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body class="bodycolor" topmargin="5">
<table border="0" width="90%" cellspacing="0" cellpadding="3" class="small">
<tr>
<td class="Big"><img src="/images/green_arrow.gif" WIDTH="22" HEIGHT="20" align="absmiddle"><span class="big3"> 最近20条系统安全日志</span><br>
</td>
</tr>
</table>
<?
$query = "SELECT * from SYS_LOG where (TYPE='1' or TYPE='2' or TYPE='14') and USER_ID='$LOGIN_USER_ID' order by TIME desc";
$cursor= exequery($connection,$query);
if(mysql_num_rows($cursor)==0)
{
Message("","无系统安全日志记录");
exit;
}
?>
<table border="0" cellspacing="1" width="70%" align="center" class="small" bgcolor="#000000" cellpadding="3">
<tr class="TableHeader">
<td align="center">用户</td>
<td align="center">时间</td>
<td align="center">IP地址</td>
<td align="center">IP所在地</td>
<td align="center">类型</td>
<td align="center">备注</td>
</tr>
<?
$LOG_COUNT=0;
while($ROW=mysql_fetch_array($cursor))
{
$LOG_COUNT++;
if($LOG_COUNT>20)
break;
$TIME=$ROW["TIME"];
$IP=$ROW["IP"];
$TYPE=$ROW["TYPE"];
$REMARK=$ROW["REMARK"];
$IP_ADD=convertip($IP);
$TYPE_DESC=get_code_name($TYPE,"SYS_LOG");
if($LOG_COUNT%2==1)
$TableLine="TableLine1";
else
$TableLine="TableLine2";
?>
<tr class="<?=$TableLine?>">
<td nowrap align="center"><?=$USER_NAME?></td>
<td nowrap align="center"><?=$TIME?></td>
<td nowrap align="center"><?=$IP?></td>
<td nowrap align="center"><?=$IP_ADD?></td>
<td nowrap align="center"><?=$TYPE_DESC?></td>
<td align="left"><?=$REMARK?></td>
</tr>
<?
}
?>
</table>
<br>
<div align="center">
<input type="button" value="返回" class="BigButton" onClick="location='../'">
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -