Location: PHPKode > projects > RadhikaGB > radhikagb_f2505100832/admin/online.php
<?php
//||_____________________RadhikaGB_____________________||//
//||---------------------------------------------------||//
//||Page ID  :  online.php(ADMIN)                      ||//
//||Build ID :  2505100832                             ||//
//||Support  :  http://softacme.com/radhikagb          ||//
//||          Jai Shri RADHA RANI...                   ||//
//||---------------------------------------------------||//
?>
<?php
		if(file_exists("../connect.php")){
						require_once("../connect.php");
						}else{
						header("location: ../self-help.php?error=1");
						}
		if($RadhikaGB_install != okay){ 
						header('Location: ../self-help.php?error=3');
						}
$uo_sessionTime = 5; 
$xuip = $_SERVER['REMOTE_ADDR'];
$uo_query = "DELETE FROM users_online WHERE unix_timestamp() - lastvisit >= $uo_sessionTime * 60";
mysql_query($uo_query);
$uo_query = "SELECT lastvisit FROM users_online WHERE visitor = '$xuip'";
$uo_result = mysql_query($uo_query);
if(mysql_num_rows($uo_result) == 0) {
	$uo_query = "INSERT INTO users_online VALUES('$xuip', unix_timestamp())";
	mysql_query($uo_query);
} else { 
	$uo_query = "UPDATE users_online SET lastvisit = unix_timestamp() WHERE visitor = '$xuip'";
	mysql_query($uo_query);
}
if($uo_keepquiet == FALSE) {
	$uo_query = "SELECT count(*) FROM users_online";
	$uo_result = mysql_query($uo_query);
	$uo_count = mysql_fetch_row($uo_result);
	echo $uo_count[0];
}
?>
Return current item: RadhikaGB