I did replace my old lib-common.php, but still show me the blank page..
i replaced this function
--- CODE BEGINS ---
/**
* Shows a who is online
*
*/
// BL: July 2002 Modified to add PLot-I feature, added table to format display.
// Optionlly, you can have rotating globe (globe_12.gif)for registered users or remove the if stmt
function phpblock_whosonline()
{
global $_CONF,$_TABLES;
$expire_time = time() - $_CONF['whosonline_threshold'];
//$result = DB_query("SELECT DISTINCT {$_TABLES['sessions']}.uid, username,photo FROM {$_TABLES['sessions']},{$_TABLES['users']} WHERE {$_TABLES['users']}.uid = {$_TABLES['sessions']}.uid AND start_time >= $expire_time AND {$_TABLES['sessions']}.uid <> 1 ORDER BY username"
;
// BL: July 2002 Modified query to retrieve remote IP and display all sessions including anonymous users
$result = DB_query("SELECT DISTINCT {$_TABLES['sessions']}.uid, username,photo,remote_ip FROM {$_TABLES['sessions']},{$_TABLES['users']} WHERE {$_TABLES['users']}.uid = {$_TABLES['sessions']}.uid AND start_time >= $expire_time AND {$_TABLES['sessions']}.uid <> 0 ORDER BY username"
;
$nrows = DB_numRows($result);
$retval .= '<table width=100% border=0>';
for ($i = 1; $i <= $nrows; $i++) {
$A = DB_fetchArray($result);
$retval .= '<tr><td width=80%><a href="' . $_CONF['site_url'] . '/users.php?mode=profile&uid=' . $A['uid'] . '">' . $A['username']. '</a></td>';
if (!empty($A['photo']) AND $_CONF['allow_user_photo'] == 1) {
$retval .= '<td width=10%><a href="' . $_CONF['site_url'] . '/users.php?mode=profile&uid=' . $A['uid'] . '"><img src="' . $_CONF['layout_url'] . '/images/smallcamera.gif" border="0"></a></td>';
} else {
$retval .= '<td width=10%></td>';
}
if ($A['uid'] >1) {
$retval .= '<td width=10%><a href="' . $_CONF['site_url'] . '/mod_plot-ip/plot.php?address='.$A['remote_ip'] .'"><img src="' . $_CONF['site_url'] . '/images/icons/globe_1.gif" border="0"></a></td>';
} else {
$retval .= '<td width=10%><a href="' . $_CONF['site_url'] . '/mod_plot-ip/plot.php?address='.$A['remote_ip'] .'"><img src="' . $_CONF['site_url'] . '/images/icons/globe_2.gif" border="0"></a></td>';
}
$retval .= '</tr>';
}
$retval .= '</table>';
$num_anon = DB_query("SELECT DISTINCT uid,remote_ip FROM {$_TABLES['sessions']} WHERE uid = 1"
;
$num_anon = DB_numRows($num_anon);
if ($num_anon > 0) {
$retval .= 'Guest Users: ' . $num_anon . '<br>';
}
return $retval;
}
--- CODE ENDS ---
to the function phpblock_whosonline() that exist on lib-common.php...
* This lovable little red monster is curious about everything *