Location: PHPKode > projects > RadhikaGB > radhikagb_f2505100832/admin/logs.php
<?php
//||_____________________RadhikaGB_____________________||//
//||---------------------------------------------------||//
//||Page ID  :  logs.php(ADMIN)                        ||//
//||Build ID :  2505100832                             ||//
//||Support  :  http://softacme.com/radhikagb          ||//
//||          Jai Shri RADHA RANI...                   ||//
//||---------------------------------------------------||//
?>
<?php
require_once("data.php");
?>
<head>
<html>
<title>View Logining Logs - RadhikaGB</title>
</head>
<body>
<?php
$txt="<br /><font size=\"1\" face=\"arial\" color=\"red\">*Current Activity</font>";
$IPS	 = $_SERVER["REMOTE_ADDR"]; 
if($_GET[logs] == logs){
$sql = mysql_query("SELECT * FROM logins  order by id desc  LIMIT 5");
echo"<table cellspacing=\"0\" cellpadding=\"0\" border=\"1\"> ";
while($res = mysql_fetch_array($sql))
{
$id			=	$res['id'];
$ip			=	$res['ip'];
$time		=	$res['date'];
$browser	=	$res['browser'];
$time		=  date(' M jS, Y : g:i A',$time);
echo"<tr><td>$ip</td><td> $time</td>";
if($IPS == $ip){
echo"<td>*</td>";
echo"</tr>";
}
}echo"</table>";
echo"<a href=\"logs.php\">click here to view all <b>Raw access logs</b>&raquo;</a>";

}else{
$sql = mysql_query("SELECT * FROM logins  order by id desc");
echo"<table cellspacing=\"0\" cellpadding=\"0\" border=\"1\"> ";
while($res = mysql_fetch_array($sql))
{
$id			=	$res['id'];
$ip			=	$res['ip'];
$time		=	$res['date'];
$browser	=	$res['browser'];
$time		=  date(' M jS, Y : g:i A',$time);
echo"<tr><td>$ip</td><td> $time</td><td>$browser</td>";
if($IPS == $ip){
echo"<td>*</td>";
echo"</tr>";
}}echo"</table>";
}echo"$txt";
?>
</body>
Return current item: RadhikaGB