Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 01:26 pm EST
Geeklog Forums
problems with mod plot ip
Status: offline
Guida
Forum User
Newbie
Registered: 10/21/02
Posts: 12
Hi everyone,
I tried to install mod plot ip.. and after i got a blank page..
so i went to check the error log on apache..
it says..
[error] PHP Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/md/public_html/geeklog/public_html/lib-common.php on line 4005
[Tue Oct 29 15:10:14 2002] [error] PHP Fatal error: Cannot instantiate non-existent class: template in /home/md/public_html/geeklog/public_html/lib-common.php on line 607
ok.. here is the code for line 607 and 4005
607 --> $header = new Template( $_CONF['path_layout'] );
4005 --> $hour_options .= '<option value="' . $hval . '" '"'"';
it is under function COM_getHourFormOptions( $selected = '' )
Can someone help me out plz? thanks in advance.. by the way i'm using GL v1.3.6
* This lovable little red monster is curious about everything *
* This lovable little red monster is curious about everything *
9
7
Quote
Status: offline
efarmboy
Forum User
Moderator
Registered: 02/26/02
Posts: 147
This is most likely caused by a missing ; at the end of a line or out of place quotes. Check the lines that you edited in lib-common and for testing - replace lib-common.php with the original before your editing.
Blaine
7
11
Quote
Status: offline
Guida
Forum User
Newbie
Registered: 10/21/02
Posts: 12
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 *
* This lovable little red monster is curious about everything *
7
6
Quote
All times are EST. The time is now 01:26 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content