Version 3.3.4
This commit is contained in:
1 parent
78706903a2
commit
fb6b5baabc
2206 files changed
+409828
-382984
No files matched your search
@@ -3,12 +3,12 @@
|
||||
* @file plugin_banned.php Moderator control panel plugin: banned members
|
||||
*~TERABYTE_DOC_READY~
|
||||
* $Copyright: (c) 2001 - 2011 Invision Power Services, Inc.$
|
||||
* $License: This is NULLED!
|
||||
* $Author: bfarber $
|
||||
* $License: http://www.invisionpower.com/company/standards.php#license$
|
||||
* $Author: mmecham $
|
||||
* @since 2/17/2011
|
||||
* $LastChangedDate: 2011-08-29 22:12:22 -0400 (Mon, 29 Aug 2011) $
|
||||
* @version v3.2.3
|
||||
* $Revision: 9425 $
|
||||
* $LastChangedDate: 2012-01-24 11:56:40 -0500 (Tue, 24 Jan 2012) $
|
||||
* @version v3.3.4
|
||||
* $Revision: 10180 $
|
||||
*/
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
@@ -102,7 +102,7 @@ class plugin_members_banned
|
||||
*/
|
||||
public function canView( $permissions )
|
||||
{
|
||||
if( $this->memberData['g_is_supmod'] OR ( $this->memberData['is_mod'] AND $permissions['allow_warn'] AND $this->settings['warn_mod_ban'] ) )
|
||||
if( $this->memberData['g_is_supmod'] OR ( $this->memberData['is_mod'] AND $permissions['allow_warn'] ) )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -134,23 +134,17 @@ class plugin_members_banned
|
||||
// Get 10 banned members
|
||||
//-----------------------------------------
|
||||
|
||||
$members = array();
|
||||
$_bannedGroup = '';
|
||||
|
||||
if( $this->settings['banned_group'] )
|
||||
{
|
||||
$_bannedGroup = " OR m.member_group_id=" . $this->settings['banned_group'];
|
||||
}
|
||||
$members = array();
|
||||
|
||||
$st = intval($this->request['st']);
|
||||
$total = $this->DB->buildAndFetch( array( 'select' => 'count(*) as members', 'from' => 'members', 'where' => "member_banned=1" . str_replace( 'm.', '', $_bannedGroup ) ) );
|
||||
$total = $this->DB->buildAndFetch( array( 'select' => 'count(*) as members', 'from' => 'members', 'where' => "member_banned=1" ) );
|
||||
|
||||
$this->DB->build( array(
|
||||
'select' => 'm.*',
|
||||
'from' => array( 'members' => 'm' ),
|
||||
'order' => 'm.joined DESC',
|
||||
'limit' => array( $st, 10 ),
|
||||
'where' => "m.member_banned=1" . $_bannedGroup,
|
||||
'where' => "m.member_banned=1",
|
||||
'add_join' => array(
|
||||
array(
|
||||
'select' => 'pp.*',
|
||||
|
||||
Reference in new issue
Block a user