Version 2.0.0

This commit is contained in:
Neo committed 2025-12-19 00:19:56 -08:00
1 parent 5699abfc0e
commit 0eecc172d9
696 files changed
+120723 -77160

No files matched your search

+32 -23
View File
@@ -2,16 +2,15 @@
/*
+--------------------------------------------------------------------------
| Invision Power Board v1.3.1 Final
| ========================================
| Invision Power Board v2.0.0
| =============================================
| by Matthew Mecham
| (c) 2001 - 2003 Invision Power Services
| (c) 2001 - 2004 Invision Power Services, Inc.
| http://www.invisionpower.com
| ========================================
| =============================================
| Web: http://www.invisionboard.com
| Time: Thu, 23 Sep 2004 23:05:01 GMT
| Release: 3cb325c445e1909182084806ae7f8226
| Email: matt@invisionpower.com
| Time: Tue, 21 Sep 2004 16:34:28 GMT
| Release: 150aa7a702c3c8b6f6eb90ad49305d2f
| Licence Info: http://www.invisionboard.com/?license
+---------------------------------------------------------------------------
|
@@ -44,22 +43,22 @@ class chat_functions
$this->server = str_replace( 'http://', '', $ibforums->vars['chat_server_addr'] );
}
//-----------------------------------------------
//-----------------------------------------
// register_class($class)
//
// Register a $this-> with this class
//
//-----------------------------------------------
//-----------------------------------------
function register_class(&$class)
{
$this->class = $class;
}
//-----------------------------------------------
//-----------------------------------------
// Print online list
//
//-----------------------------------------------
//-----------------------------------------
function get_online_list()
{
@@ -70,9 +69,9 @@ class chat_functions
return;
}
//----------------------------------
//-----------------------------------------
// Get details from the DB
//----------------------------------
//-----------------------------------------
$DB->query("SELECT * FROM ibf_cache_store WHERE cs_key='chatstat'");
@@ -80,13 +79,14 @@ class chat_functions
list( $hits, $time ) = explode( '&', $row['cs_extra'] );
//----------------------------------
//-----------------------------------------
// Do we need to update?
//----------------------------------
//-----------------------------------------
$final = "";
$time_is_running_out = time();
$member_ids = array();
$new = array();
if ( $time < time() - ( $ibforums->vars['chat_who_save'] * 60 ) )
{
@@ -99,17 +99,26 @@ class chat_functions
$hits_left = array_shift($data);
}
$name_string = strtolower( implode( '","', str_replace( '"', '&quot;', str_replace( '_', ' ', $data ) ) ) );
if ( count($data) > 0 )
foreach( $data as $t )
{
$DB->query("SELECT m.id, m.name, g.g_id, g.prefix, g.suffix FROM ibf_members m
LEFT JOIN ibf_groups g ON (m.mgroup=g.g_id)
$t = strtolower(trim($t));
$t = str_replace( '_', ' ', $t );
$t = str_replace( '"', '&quot;', $t );
$new[] = $t;
}
$name_string = implode( '","', $new );
if ( count($new) > 0 )
{
$DB->query("SELECT m.id, m.name, m.mgroup FROM ibf_members m
WHERE lower(name) IN (\"".$name_string."\") ORDER BY m.name");
while ( $m = $DB->fetch_row() )
{
$member_ids[] = "<a href=\"{$ibforums->base_url}showuser={$m['id']}\">{$m['prefix']}{$m['name']}{$m['suffix']}</a>";
$g = $ibforums->cache['group_cache'][ $m['mgroup'] ];
$member_ids[] = "<a href=\"{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?showuser={$m['id']}\">{$g['prefix']}{$m['name']}{$g['suffix']}</a>";
}
$final = implode( ",\n", $member_ids );
@@ -123,9 +132,9 @@ class chat_functions
}
}
//----------------------------------
//-----------------------------------------
// Any members to show?
//----------------------------------
//-----------------------------------------
$ibforums->vars['chat_height'] += $ibforums->vars['chat_poppad'] ? $ibforums->vars['chat_poppad'] : 50;
$ibforums->vars['chat_width'] += $ibforums->vars['chat_poppad'] ? $ibforums->vars['chat_poppad'] : 50;