Version 2.3.6
This commit is contained in:
1 parent
a3bb603c96
commit
19b38c7c74
764 files changed
+143731
-118164
No files matched your search
@@ -2,27 +2,17 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Power Board 2.2.2
|
||||
| Invision Power Board
|
||||
| =============================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2006 Invision Power Services, Inc.
|
||||
| http://www.invisionpower.com
|
||||
| =============================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| http://www.ibresource.ru/products/invisionpowerboard/
|
||||
| Time: Monday 05th of March 2007 10:10:54 PM
|
||||
| Release: e3790216629e5a2aaf37070b32237f06
|
||||
| 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: 2006-10-25 07:58:41 -0500 (Wed, 25 Oct 2006) $
|
||||
| > $Revision: 675 $
|
||||
| > $Date: 2007-05-11 17:54:34 -0400 (Fri, 11 May 2007) $
|
||||
| > $Revision: 994 $
|
||||
| > $Author: bfarber $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
@@ -39,7 +29,7 @@
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
{
|
||||
print "<h1>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
|
||||
exit();
|
||||
}
|
||||
|
||||
@@ -66,8 +56,6 @@ class memberlist
|
||||
var $ucp_html = "";
|
||||
var $topic = "";
|
||||
|
||||
var $lib_profile = '';
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// Auto-run
|
||||
/*-------------------------------------------------------------------------*/
|
||||
@@ -100,6 +88,11 @@ class memberlist
|
||||
|
||||
$this->ipsclass->input['showall'] = intval($this->ipsclass->input['showall']);
|
||||
|
||||
if( $this->ipsclass->input['showall'] )
|
||||
{
|
||||
$url[] = 'showall=' . $this->ipsclass->input['showall'];
|
||||
}
|
||||
|
||||
$this->first = intval($this->ipsclass->input['st']);
|
||||
$this->max_results = isset( $this->ipsclass->input['max_results'] ) ? $this->ipsclass->input['max_results'] : '20';
|
||||
$this->sort_key = isset( $this->ipsclass->input['sort_key'] ) ? $this->ipsclass->input['sort_key'] : 'members_display_name';
|
||||
@@ -111,25 +104,6 @@ class memberlist
|
||||
$this->ipsclass->Error( array( 'LEVEL' => 1, 'MSG' => 'no_permission' ) );
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Grab topics.php to parse member
|
||||
//-----------------------------------------
|
||||
|
||||
require_once( ROOT_PATH.'sources/action_public/topics.php' );
|
||||
$this->topic = new topics();
|
||||
$this->topic->ipsclass =& $this->ipsclass;
|
||||
$this->topic->topic_init( 1 );
|
||||
$this->topic->topic['forum_id'] = 0;
|
||||
$this->topic->topic['tid'] = 0;
|
||||
|
||||
//-----------------------------------------
|
||||
// Load profile lib
|
||||
//-----------------------------------------
|
||||
|
||||
require_once( ROOT_PATH . 'sources/action_public/profile.php' );
|
||||
$this->lib_profile = new profile();
|
||||
$this->lib_profile->ipsclass =& $this->ipsclass;
|
||||
|
||||
//-----------------------------------------
|
||||
// Get the member groups, member titles stuff
|
||||
//-----------------------------------------
|
||||
@@ -172,7 +146,7 @@ class memberlist
|
||||
'members_profile_views' => 'm_dd_views',
|
||||
);
|
||||
|
||||
$the_max_results = array(
|
||||
$the_max_results = array(
|
||||
20 => '20',
|
||||
40 => '40',
|
||||
60 => '60',
|
||||
@@ -255,14 +229,18 @@ class memberlist
|
||||
|
||||
$custom_fields = "";
|
||||
|
||||
$this->topic->custom_fields->admin = intval($this->ipsclass->member['g_access_cp']);
|
||||
$this->topic->custom_fields->supmod = intval($this->ipsclass->member['g_is_supmod']);
|
||||
$this->topic->custom_fields->member_id = $this->ipsclass->member['id'];
|
||||
$this->topic->custom_fields->mem_data_id = 0;
|
||||
$this->topic->custom_fields->mem_list = 1;
|
||||
require_once( ROOT_PATH.'sources/classes/class_custom_fields.php' );
|
||||
$this->ipsclass->custom_fields = new custom_fields( $this->ipsclass->DB );
|
||||
|
||||
$this->ipsclass->custom_fields->member_id = $this->ipsclass->member['id'];
|
||||
$this->ipsclass->custom_fields->cache_data = $this->ipsclass->cache['profilefields'];
|
||||
$this->ipsclass->custom_fields->admin = intval($this->ipsclass->member['g_access_cp']);
|
||||
$this->ipsclass->custom_fields->supmod = intval($this->ipsclass->member['g_is_supmod']);
|
||||
$this->ipsclass->custom_fields->mem_data_id = 0;
|
||||
$this->ipsclass->custom_fields->mem_list = 1;
|
||||
|
||||
$this->topic->custom_fields->init_data();
|
||||
$this->topic->custom_fields->parse_to_edit();
|
||||
$this->ipsclass->custom_fields->init_data();
|
||||
$this->ipsclass->custom_fields->parse_to_edit();
|
||||
|
||||
//-----------------------------------------
|
||||
// Quick jump rehash...
|
||||
@@ -362,7 +340,7 @@ class memberlist
|
||||
$query[] = "m.members_l_display_name LIKE '%".$inbit."%'";
|
||||
}
|
||||
}
|
||||
else if ( $in == 'posts' and intval($inbit) > 0 )
|
||||
else if ( $in == 'posts' and is_numeric($inbit) and intval($inbit) > -1 )
|
||||
{
|
||||
$ltmt = $this->ipsclass->input[ $in .'_ltmt' ] == 'lt' ? '<' : '>';
|
||||
$query[] = $tbl. ' '.$ltmt.' '.intval($inbit);
|
||||
@@ -405,9 +383,9 @@ class memberlist
|
||||
// Custom fields?
|
||||
//-----------------------------------------
|
||||
|
||||
if ( count( $this->topic->custom_fields->out_fields ) )
|
||||
if ( count( $this->ipsclass->custom_fields->out_fields ) )
|
||||
{
|
||||
foreach( $this->topic->custom_fields->out_fields as $id => $data )
|
||||
foreach( $this->ipsclass->custom_fields->out_fields as $id => $data )
|
||||
{
|
||||
if ( isset($this->ipsclass->input['field_'.$id]) AND $this->ipsclass->input['field_'.$id] )
|
||||
{
|
||||
@@ -449,6 +427,8 @@ class memberlist
|
||||
// Finish query
|
||||
//-----------------------------------------
|
||||
|
||||
$query[] = "m.members_display_name != ''";
|
||||
|
||||
if ( count( $query ) )
|
||||
{
|
||||
$query_string = implode( " AND ", $query );
|
||||
@@ -478,11 +458,11 @@ class memberlist
|
||||
// Get custom profile information
|
||||
//-----------------------------------------
|
||||
|
||||
if ( count( $this->topic->custom_fields->out_fields ) )
|
||||
if ( count( $this->ipsclass->custom_fields->out_fields ) )
|
||||
{
|
||||
foreach( $this->topic->custom_fields->out_fields as $id => $data )
|
||||
foreach( $this->ipsclass->custom_fields->out_fields as $id => $data )
|
||||
{
|
||||
if ( $this->topic->custom_fields->cache_data[ $id ]['pf_type'] == 'drop' )
|
||||
if ( $this->ipsclass->custom_fields->cache_data[ $id ]['pf_type'] == 'drop' )
|
||||
{
|
||||
$tmp = $this->ipsclass->compiled_templates['skin_mlist']->mlist_custom_field_dropdown( 'field_'.$id, $data );
|
||||
}
|
||||
@@ -491,7 +471,7 @@ class memberlist
|
||||
$tmp = $this->ipsclass->compiled_templates['skin_mlist']->mlist_custom_field_textinput( 'field_'.$id );
|
||||
}
|
||||
|
||||
$custom_fields .= $this->ipsclass->compiled_templates['skin_mlist']->mlist_custom_field_entry( $this->topic->custom_fields->field_names[ $id ], $tmp );
|
||||
$custom_fields .= $this->ipsclass->compiled_templates['skin_mlist']->mlist_custom_field_entry( $this->ipsclass->custom_fields->field_names[ $id ], $tmp );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -519,8 +499,7 @@ class memberlist
|
||||
// Kludgy.. kludge.. must out in IPB 3.0
|
||||
//-----------------------------------------
|
||||
|
||||
#$member = $this->lib_profile->personal_portal_set_information( $member );
|
||||
$member = $this->topic->parse_member( $member );
|
||||
$member = $this->ipsclass->parse_member( $member, 0, 'skin_mlist' );
|
||||
|
||||
# Stop the length check taking into account member title formatting
|
||||
$member['_members_display_name'] = $member['members_display_name'];
|
||||
|
||||
Reference in new issue
Block a user