Version 1.1.1

This commit is contained in:
Neo committed 2025-12-19 00:16:25 -08:00
1 parent aabfdc1f57
commit 7ef3d1712a
179 files changed
+57457 -44972

No files matched your search

+71 -17
View File
@@ -2,10 +2,10 @@
/*
+--------------------------------------------------------------------------
| IBFORUMS v1
| Invision Board v1.1
| ========================================
| by Matthew Mecham and David Baxter
| (c) 2001,2002 IBForums
| by Matthew Mecham
| (c) 2001,2002 Invision Power Services
| http://www.ibforums.com
| ========================================
| Web: http://www.ibforums.com
@@ -54,9 +54,7 @@ class Online {
$ibforums->lang = $std->load_words($ibforums->lang, 'lang_online', $ibforums->lang_id);
require "./Skin/".$ibforums->skin_id."/skin_online.php";
$this->html = new skin_online();
$this->html = $std->load_template('skin_online');
$this->base_url = "{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}";
@@ -138,7 +136,9 @@ class Online {
$DB->free_result();
$t_time = time() - 900;
$cut_off = ($ibforums->vars['au_cutoff'] != "") ? $ibforums->vars['au_cutoff'] * 60 : 900;
$t_time = time() - $cut_off;
$DB->query("SELECT COUNT(id) as total_sessions FROM ibf_sessions WHERE login_type <> 1 AND running_time > $t_time");
$max = $DB->fetch_row();
@@ -158,9 +158,38 @@ class Online {
// Grab all the current sessions.
$DB->query("SELECT s.id, s.member_name, s.member_id, s.running_time, s.location, s.member_group, g.prefix, g.suffix FROM ibf_sessions s, ibf_groups g WHERE login_type <> 1 AND running_time > $t_time AND s.member_group=g.g_id ORDER BY running_time DESC LIMIT ".$this->first.",25");
$final = array();
$tid_array = array();
while( $sess = $DB->fetch_row() ) {
$topics = array();
$DB->query("SELECT s.id, s.in_forum, s.in_topic, s.member_name, s.member_id, s.ip_address, s.running_time, s.location, s.login_type, s.member_group, g.prefix, g.suffix FROM ibf_sessions s, ibf_groups g WHERE s.running_time > $t_time AND s.member_group=g.g_id ORDER BY running_time DESC LIMIT ".$this->first.",25");
while( $r = $DB->fetch_row() )
{
$final[] = $r;
if ($r['in_topic'] != "")
{
$tid_array[] = $r['in_topic'];
}
}
if ( count($tid_array) > 0 )
{
$tid_string = implode( ",", $tid_array );
$DB->query("SELECT tid, title FROM ibf_topics WHERE tid IN ($tid_string)");
while ( $t = $DB->fetch_row() )
{
$topics[ $t['tid'] ] = $t['title'];
}
}
foreach( $final as $idx => $sess )
{
//----------------------------------------------------
// Is this a member, and have we seen them before?
@@ -169,6 +198,20 @@ class Online {
// their IP address changes.
//----------------------------------------------------
$inv = '';
if ($sess['login_type'] == 1)
{
if ( ($ibforums->member['mgroup'] == $ibforums->vars['admin_group']) and ($ibforums->vars['disable_admin_anon'] != 1) )
{
$inv = '*';
}
else
{
continue;
}
}
if (! empty($sess['member_name']) )
{
if (isset($this->seen_name[ $sess['member_name'] ]) )
@@ -186,7 +229,9 @@ class Online {
$line = "";
list($act, $fid, $tid, $pid) = explode( ",", $sess['location'] );
list($act, $pid) = explode( ",", $sess['location'] );
$fid = $sess['in_forum'];
$tid = $sess['in_topic'];
if (isset($act))
{
@@ -195,7 +240,7 @@ class Online {
}
if ($fid != "")
if ($fid != "" and ($act == 'SF' or $act == 'ST' or $act == 'Post'))
{
$pass = 0;
@@ -210,9 +255,9 @@ class Online {
if ($pass == 1)
{
if ($tid != "")
if ($tid > 0)
{
$line .= " <a href='{$this->base_url}&act=ST&f=$fid&t=$tid'>{$this->forums[ $fid ]['name']}</a>";
$line .= " <a href='{$this->base_url}&act=ST&f=$fid&t=$tid'>{$topics[$tid]}</a>";
}
else
{
@@ -221,7 +266,7 @@ class Online {
}
else
{
$line .= " ".$ibforums->lang['n_a'];
$line = " <a href='{$this->base_url}'>{$ibforums->lang['board_index']}</a>";
}
}
@@ -234,9 +279,18 @@ class Online {
$sess['where_line'] = $line;
if ( ($ibforums->member['mgroup'] == $ibforums->vars['admin_group']) and ($ibforums->vars['disable_online_ip'] != 1) )
{
$sess['ip_address'] = " ( ".$sess['ip_address']." )";
}
else
{
$sess['ip_address'] = "";
}
if (isset($sess['member_id']))
{
$sess['member_name'] = "<a href='{$this->base_url}&act=Profile&CODE=03&MID={$sess['member_id']}'>{$sess['prefix']}{$sess['member_name']}{$sess['suffix']}</a>";
$sess['member_name'] = "<a href='{$this->base_url}&act=Profile&CODE=03&MID={$sess['member_id']}'>{$sess['prefix']}{$sess['member_name']}{$sess['suffix']}</a>$inv {$sess['ip_address']}";
}
$sess['running_time'] = $std->get_date( $sess['running_time'], 'LONG' );
@@ -257,11 +311,11 @@ class Online {
if ($sess['member_name'] and $sess['member_id'])
{
$sess['msg_icon'] = "<a href='{$this->base_url}&act=Msg&CODE=04&MID={$sess['member_id']}'>{$ibforums->skin['P_MSG']}</a>";
$sess['msg_icon'] = "<a href='{$this->base_url}&act=Msg&CODE=04&MID={$sess['member_id']}'><{P_MSG}></a>";
}
else
{
$sess['member_name'] = $sess['prefix'].$ibforums->lang['guest'].$sess['suffix'];
$sess['member_name'] = $sess['prefix'].$ibforums->lang['guest'].$sess['suffix']." ".$sess['ip_address'];
$sess['msg_icon'] = '&nbsp;';
}