Version 3.2.3

This commit is contained in:
Neo committed 2025-12-19 00:34:03 -08:00
1 parent ae5c01cc78
commit 78706903a2
2641 files changed
+228363 -201264

No files matched your search

@@ -1,32 +1,14 @@
<?php
/**
* <pre>
* Invision Power Services
* IP.Board v3.1.4
* Define the default memberlist section
* Last Updated: $Date: 2010-01-15 10:18:44 -0500 (Fri, 15 Jan 2010) $
* </pre>
*
* @author $Author: bfarber $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license http://www.invisionpower.com/community/board/license.html
* @package IP.Board
* @subpackage Members
* @link http://www.invisionpower.com
* @file defaultSection.php Define the default section for the 'list' module
*~TERABYTE_DOC_READY~
* $Copyright: (c) 2001 - 2011 Invision Power Services, Inc.$
* $License: This is NULLED!
* $Author: ips_terabyte $
* @since 20th February 2002
* @version $Rev: 5713 $
*
* $LastChangedDate: 2011-05-05 12:40:49 -0400 (Thu, 05 May 2011) $
* @version v3.2.3
* $Revision: 8655 $
*/
if ( ! defined( 'IN_IPB' ) )
{
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();
}
/**
* Very simply returns the default section if one is not
* passed in the URL
*/
$DEFAULT_SECTION = 'view';
$DEFAULT_SECTION = 'view';
@@ -5,6 +5,6 @@
<hr>
You have reached this page in error, please use your back button to return to the forum.
<hr>
<a href="http://www.invisionboard.com/">IP.Board</a>
<a href="http://www.invisionpower.com">IP.Board</a>
</body>
</html>
@@ -3,19 +3,19 @@
/**
* <pre>
* Invision Power Services
* IP.Board v3.1.4
* IP.Board v3.2.3
* Member list
* Last Updated: $Date: 2010-10-06 12:00:52 -0400 (Wed, 06 Oct 2010) $
* Last Updated: $Date: 2011-10-11 21:18:16 -0400 (Tue, 11 Oct 2011) $
* </pre>
*
* @author $Author: mmecham $
* @author $Author: bfarber $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license http://www.invisionpower.com/community/board/license.html
* @license This is NULLED!
* @package IP.Board
* @subpackage Members
* @link http://www.invisionpower.com
* @link http://hatynka.in
* @since 20th February 2002
* @version $Revision: 6949 $
* @version $Revision: 9599 $
*
*/
@@ -30,7 +30,6 @@ class public_members_list_view extends ipsCommand
/**
* Custom fields object
*
* @access public
* @var object
*/
public $custom_fields;
@@ -38,7 +37,6 @@ class public_members_list_view extends ipsCommand
/**
* Temporary stored output HTML
*
* @access public
* @var string
*/
public $output;
@@ -46,65 +44,57 @@ class public_members_list_view extends ipsCommand
/**
* DB result start point
*
* @access private
* @var integer
*/
private $first = 0;
protected $first = 0;
/**
* Maximum results per page
*
* @access private
* @var integer
*/
private $max_results = 20;
protected $max_results = 20;
/**
* Key to sort on
*
* @access private
* @var string
*/
private $sort_key = 'members_display_name';
protected $sort_key = 'members_display_name';
/**
* Sort order (desc or asc)
*
* @access private
* @var string
*/
private $sort_order = 'asc';
protected $sort_order = 'asc';
/**
* Filter
*
* @access private
* @var string
*/
private $filter = 'ALL';
protected $filter = 'ALL';
/**
* Member titles
*
* @access private
* @var array
*/
private $mem_titles = array();
protected $mem_titles = array();
/**
* Member groups
*
* @access private
* @var array
*/
private $mem_groups = array();
protected $mem_groups = array();
/**
* Class entry point
*
* @access public
* @param object Registry reference
* @return void [Outputs to screen/redirects]
* @return @e void [Outputs to screen/redirects]
*/
public function doExecute( ipsRegistry $registry )
{
@@ -130,14 +120,14 @@ class public_members_list_view extends ipsCommand
$see_groups = array();
$the_filter = array( 'ALL' => $this->lang->words['show_all'] );
$the_members = array();
$query = array();
$query = array( "m.members_l_display_name !='' AND m.members_l_display_name " . $this->DB->buildIsNull(false) );
$url = array();
$pp_rating_real = isset($this->request['pp_rating_real']) ? intval( $this->request['pp_rating_real'] ) : 0;
$this->first = isset($this->request['st']) ? intval($this->request['st']) : 0;
$this->max_results = ( isset($this->request['max_results']) AND $this->request['max_results'] ) ? $this->request['max_results'] : '20';
$this->sort_key = ( isset($this->request['sort_key']) AND $this->request['sort_key'] ) ? $this->request['sort_key'] : 'members_display_name';
$this->sort_order = ( isset($this->request['sort_order']) AND $this->request['sort_order'] ) ? $this->request['sort_order'] : 'asc';
$this->filter = ( isset($this->request['filter']) AND $this->request['filter'] ) ? ( $this->request['filter'] == 'ALL' ? 'ALL' : intval( $this->request['filter'] ) ) : 'ALL';
$this->max_results = !empty($this->request['max_results']) ? $this->request['max_results'] : $this->max_results;
$this->sort_key = !empty($this->request['sort_key']) ? $this->request['sort_key'] : 'members_display_name';
$this->sort_order = !empty($this->request['sort_order']) ? $this->request['sort_order'] : 'asc';
$this->filter = !empty($this->request['filter']) ? ( $this->request['filter'] == 'ALL' ? 'ALL' : intval( $this->request['filter'] ) ) : 'ALL';
$this->request['showall'] = isset($this->request['showall']) ? intval( $this->request['showall'] ) : 0;
$this->request['name_box'] = isset($this->request['name_box']) ? $this->request['name_box'] : '';
@@ -197,7 +187,7 @@ class public_members_list_view extends ipsCommand
$the_sort_key = array(
'members_l_display_name' => 'sort_by_name',
'posts' => 'sort_by_posts',
'posts' => 'pcount',
'joined' => 'sort_by_joined',
'members_profile_views' => 'm_dd_views',
);
@@ -226,7 +216,7 @@ class public_members_list_view extends ipsCommand
'sort_key' => $this->sort_key,
'sort_order' => $this->sort_order,
'max_results' => $this->max_results,
'photoonly' => ( isset($this->request['photoonly']) AND $this->request['photoonly'] ) ? 1 : 0,
'photoonly' => !empty($this->request['photoonly']) ? 1 : 0,
);
//-----------------------------------------
@@ -245,7 +235,7 @@ class public_members_list_view extends ipsCommand
$classToLoad = IPSLib::loadLibrary( IPS_ROOT_PATH . 'sources/classes/customfields/profileFields.php', 'customProfileFields' );
$this->custom_fields = new $classToLoad();
$this->custom_fields->initData( 'edit', 1 );
$this->custom_fields->parseToEdit();
$this->custom_fields->parseToEdit( 'mlist' );
//-----------------------------------------
// Member Groups...
@@ -295,7 +285,7 @@ class public_members_list_view extends ipsCommand
foreach( $mapit as $in => $tbl )
{
$this->request[$in] = ( isset($this->request[ $in ]) AND $this->request[ $in ] ) ? $this->request[ $in ] : '';
$this->request[$in] = !empty($this->request[ $in ]) ? $this->request[ $in ] : '';
$inbit = IPSText::parseCleanValue( trim( urldecode( IPSText::stripslashes( $this->request[ $in ] ) ) ) );
$url[ $in ] = $in . '=' . urlencode($this->request[ $in ]);
@@ -363,8 +353,22 @@ class public_members_list_view extends ipsCommand
{
foreach( $this->custom_fields->out_fields as $id => $data )
{
if ( isset($this->request[ 'field_' . $id ]) AND $this->request[ 'field_' . $id ] )
if ( !empty($this->request[ 'field_' . $id ]) )
{
if( is_array($this->request[ 'field_' . $id ]) )
{
foreach( $this->request[ 'field_' . $id ] as $k => $v )
{
$this->request[ 'field_' . $id ][ $k ] = urldecode($v);
$url[ $in ] = "field_{$id}[{$k}]=" . $v;
}
}
else
{
$url[ $in ] = "field_{$id}=" . $this->request[ 'field_' . $id ];
$this->request[ 'field_' . $id ] = urldecode($this->request[ 'field_' . $id ]);
}
if( $this->custom_fields->cache_data[ $id ]['pf_type'] == 'drop' )
{
$query[] = "p.field_{$id}='" . $this->request[ 'field_' . $id ] . "'";
@@ -383,8 +387,6 @@ class public_members_list_view extends ipsCommand
{
$query[] = $this->custom_fields->cache_data[ $id ]['pf_search_type'] == 'loose' ? "p.field_{$id} LIKE '%" . $this->request[ 'field_' . $id ] . "%'" : "p.field_{$id} = '" . $this->request[ 'field_' . $id ] . "'";
}
$url[ $in ] = "field_{$id}=" . $this->request[ 'field_' . $id ];
}
}
}
@@ -474,7 +476,7 @@ class public_members_list_view extends ipsCommand
$members[$id] = $_members[$id];
}
}
$max = $_max['cnt'];
if( is_array($members) AND count($members) )
@@ -498,9 +500,6 @@ class public_members_list_view extends ipsCommand
}
}
/* Data Hook Location */
IPSLib::doDataHooks( $the_members, 'memberListData' );
/* make sure URL doesn't contain empty params */
$_url = $url;
$url = array();