Version 2.3.6

This commit is contained in:
Neo committed 2025-12-19 00:26:08 -08:00
1 parent a3bb603c96
commit 19b38c7c74
764 files changed
+143731 -118164

No files matched your search

+27 -22
View File
@@ -2,24 +2,14 @@
/*
+--------------------------------------------------------------------------
| 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: 2005-10-10 09:08:54 -0400 (Mon, 10 Oct 2005) $
| > $Revision: 23 $
@@ -40,8 +30,8 @@
if ( ! defined( 'IN_IPB' ) )
{
print "<h1>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
exit();
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();
}
class task_item
@@ -57,8 +47,9 @@ class task_item
function run_task()
{
$mids = array();
$vids = array();
$mids = array();
$vids = array();
$emails = array();
// If enabled, remove validating new_reg members & entries from members table
@@ -69,7 +60,7 @@ class task_item
$this->ipsclass->DB->build_query( array( 'select' => 'v.vid, v.member_id',
'from' => array( 'validating' => 'v' ),
'where' => 'v.new_reg=1 AND v.coppa_user<>1 AND v.entry_date < '.$less_than.' AND v.lost_pass<>1',
'add_join' => array( 0 => array( 'select' => 'm.posts, m.mgroup',
'add_join' => array( 0 => array( 'select' => 'm.posts, m.mgroup, m.email',
'from' => array( 'members' => 'm' ),
'where' => 'm.id=v.member_id',
'type' => 'left'
@@ -81,17 +72,18 @@ class task_item
while( $i = $this->ipsclass->DB->fetch_row($outer) )
{
if( $i['mgroup'] != $this->ipsclass->vars['auth_group'] )
{
{
// No longer validating?
$this->ipsclass->DB->do_delete( 'validating', "v.vid='{$i['vid']}'" );
$this->ipsclass->DB->do_delete( 'validating', "vid='{$i['vid']}'" );
continue;
}
if ( intval($i['posts']) < 1 )
{
$mids[] = $i['member_id'];
$vids[] = "'".$i['vid']."'";
$mids[] = $i['member_id'];
$emails[ $i['member_id'] ] = $i['email'];
$vids[] = "'".$i['vid']."'";
}
}
@@ -99,11 +91,24 @@ class task_item
if ( count($mids) > 0 )
{
$this->ipsclass->DB->simple_exec_query( array( 'delete' => 'members_converge', 'where' => "converge_id IN(".implode(",",$mids).")" ) );
$this->ipsclass->DB->simple_exec_query( array( 'delete' => 'members_converge', 'where' => "converge_email IN('".implode("','",$emails)."')" ) );
$this->ipsclass->DB->simple_exec_query( array( 'delete' => 'members' , 'where' => "id IN(".implode(",",$mids).")" ) );
$this->ipsclass->DB->simple_exec_query( array( 'delete' => 'member_extra' , 'where' => "id IN(".implode(",",$mids).")" ) );
$this->ipsclass->DB->simple_exec_query( array( 'delete' => 'pfields_content' , 'where' => "member_id IN(".implode(",",$mids).")" ) );
$this->ipsclass->DB->simple_exec_query( array( 'delete' => 'validating' , 'where' => "vid IN(".implode(",",$vids).")" ) );
$this->ipsclass->DB->simple_exec_query( array( 'delete' => 'message_text' , 'where' => "msg_author_id IN(".implode( ",",$mids ).")" ) );
$this->ipsclass->DB->simple_exec_query( array( 'delete' => 'message_topics' , 'where' => "mt_owner_id IN(".implode( ",",$mids ).")" ) );
$this->ipsclass->DB->simple_exec_query( array( 'delete' => 'contacts' , 'where' => "member_id IN(".implode( ",",$mids ).") or contact_id IN(".implode( ",",$mids ).")" ) );
$this->ipsclass->DB->simple_exec_query( array( 'delete' => 'warn_logs' , 'where' => "wlog_mid IN(".implode( ",",$mids ).")" ) );
$this->ipsclass->DB->do_update( 'profile_comments', array( 'comment_by_member_id' => 0 ), "comment_by_member_id IN(".implode( ",",$mids ).")" );
$this->ipsclass->DB->do_update( 'profile_ratings', array( 'rating_by_member_id' => 0 ), "rating_by_member_id IN(".implode( ",",$mids ).")" );
$this->ipsclass->DB->do_delete( 'profile_comments', "comment_for_member_id IN(".implode( ",",$mids ).")" );
$this->ipsclass->DB->do_delete( 'profile_ratings', "rating_for_member_id IN(".implode( ",",$mids ).")" );
$this->ipsclass->DB->do_delete( 'profile_portal', "pp_member_id IN(".implode( ",",$mids ).")" );
$this->ipsclass->DB->do_delete( 'profile_friends', "friends_member_id IN(".implode( ",",$mids ).")" );
$this->ipsclass->DB->do_delete( 'profile_friends', "friends_friend_id IN(".implode( ",",$mids ).")" );
if ( USE_MODULES == 1 )
{
@@ -120,7 +125,7 @@ class task_item
// Log to log table - modify but dont delete
//-----------------------------------------
$this->class->append_task_log( $this->task, 'Óäàëåíî '.count($mids).' íå ïîäòâåðäèâøèõ ðåãèñòðàöèþ ïîëüçîâàòåëåé' );
$this->class->append_task_log( $this->task, count($mids).' old validating members pruned' );
}
//-----------------------------------------