Version 2.2.0 RC-1
This commit is contained in:
1 parent
f73f8bff6d
commit
22f1b963ee
1034 files changed
+178610
-70897
No files matched your search
@@ -2,27 +2,17 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board 2.1.7
|
||||
| Invision Power Board
|
||||
| =============================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2005 Invision Power Services, Inc.
|
||||
| (c) 2001 - 2006 Invision Power Services, Inc.
|
||||
| http://www.invisionpower.com
|
||||
| =============================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| http://www.ibresource.ru/products/invisionpowerboard/
|
||||
| Time: Tuesday 18th of July 2006 05:56:00 PM
|
||||
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
| http://www.ibresource.ru/license
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD IS NOT FREE / OPEN SOURCE!
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
||||
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
||||
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
||||
+---------------------------------------------------------------------------
|
||||
| > $Date: 2005-10-10 14:08:54 +0100 (Mon, 10 Oct 2005) $
|
||||
| > $Revision: 23 $
|
||||
| > $Date: 2006-10-13 15:14:01 +0100 (Fri, 13 Oct 2006) $
|
||||
| > $Revision: 641 $
|
||||
| > $Author: matt $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
@@ -50,8 +40,6 @@ class chat_functions
|
||||
|
||||
function chat_functions()
|
||||
{
|
||||
global $DB, $std, $ibforums;
|
||||
|
||||
$this->server = str_replace( 'http://', '', $this->ipsclass->vars['chat_server_addr'] );
|
||||
}
|
||||
|
||||
@@ -74,8 +62,6 @@ class chat_functions
|
||||
|
||||
function get_online_list()
|
||||
{
|
||||
global $DB, $std, $ibforums;
|
||||
|
||||
if ( ! $this->ipsclass->vars['chat_who_on'] )
|
||||
{
|
||||
return;
|
||||
@@ -85,9 +71,7 @@ class chat_functions
|
||||
// Get details from the DB
|
||||
//-----------------------------------------
|
||||
|
||||
$this->ipsclass->DB->query("SELECT * FROM ibf_cache_store WHERE cs_key='chatstat'");
|
||||
|
||||
$row = $this->ipsclass->DB->fetch_row();
|
||||
$row = $this->ipsclass->DB->build_and_exec_query( array( 'select' => '*', 'from' => 'cache_store', 'where' => "cs_key='chatstat'" ) );
|
||||
|
||||
list( $hits, $time ) = explode( '&', $row['cs_extra'] );
|
||||
|
||||
@@ -124,13 +108,17 @@ class chat_functions
|
||||
|
||||
if ( count($new) > 0 )
|
||||
{
|
||||
$this->ipsclass->DB->query("SELECT m.id, m.name, m.mgroup FROM ibf_members m
|
||||
WHERE lower(name) IN (\"".$name_string."\") ORDER BY m.name");
|
||||
$this->ipsclass->DB->build_query( array( 'select' => 'id, members_display_name, mgroup',
|
||||
'from' => 'members',
|
||||
'where' => "members_l_username IN (\"".$name_string."\")",
|
||||
'order' => 'members_display_name' ) );
|
||||
$this->ipsclass->DB->exec_query
|
||||
|
||||
while ( $m = $this->ipsclass->DB->fetch_row() )
|
||||
{
|
||||
$g = $this->ipsclass->cache['group_cache'][ $m['mgroup'] ];
|
||||
$member_ids[] = "<a href=\"{$this->ipsclass->vars['board_url']}/index.{$this->ipsclass->vars['php_ext']}?showuser={$m['id']}\">{$g['prefix']}{$m['name']}{$g['suffix']}</a>";
|
||||
$m['members_display_name'] = $this->ipsclass->make_name_formatted( $m['members_display_name'], $m['mgroup'] );
|
||||
|
||||
$member_ids[] = "<a href=\"{$this->ipsclass->vars['board_url']}/index.{$this->ipsclass->vars['php_ext']}?showuser={$m['id']}\">{$m['members_display_name']}</a>";
|
||||
}
|
||||
|
||||
$final = implode( ",\n", $member_ids );
|
||||
@@ -138,7 +126,7 @@ class chat_functions
|
||||
$final .= '|&|'.intval(count($member_ids));
|
||||
}
|
||||
|
||||
$this->ipsclass->DB->query("UPDATE ibf_cache_store SET cs_value='".addslashes($final)."', cs_extra='{$hits_left}&{$time_is_running_out}' WHERE cs_key='chatstat'");
|
||||
$this->ipsclass->DB->do_update( 'cache_store', array( 'cs_value' => addslashes($final), 'cs_extra' => "{$hits_left}&{$time_is_running_out}" ), 'where' => "cs_key='chatstat'" );
|
||||
|
||||
$row['cs_value'] = $final;
|
||||
}
|
||||
@@ -173,13 +161,5 @@ class chat_functions
|
||||
return $this->html;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
?>
|
||||
Reference in new issue
Block a user