| Current Path : /var/www/html/mmishra/iws8/html/indem/phq/admin/ |
| Current File : /var/www/html/mmishra/iws8/html/indem/phq/admin/accesslog.php |
<b>Access Log</b>
<?php
$tbl = 'access_log';
?>
<table width='100%'>
<tr><th nowrap>UserName<br>SystemIP</th><th nowrap>URLAccessed<br>AccessTime</th><th>SQLExecuted</th></tr>
<?php
if (isset($_REQUEST['user_name'])){
$rs = mysql_query("select * from access_log where user_name='" . $_REQUEST['user_name'] . "' order by time_of_access", $link);
}else{
$rs = mysql_query("select * from access_log order by time_of_access", $link);
}
while ($o = mysql_fetch_object($rs)){
echo "<tr valign='top'><td nowrap><a href='$PHP_SELF?url=$url&user_name=$o->user_name'>$o->user_name</a><br>$o->system_ip</td>";
echo "<td nowrap>$o->url_accessed<br>$o->time_of_access</td><td>$o->sql_executed</td></tr>";
}
?>
</table>