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

+26 -29
View File
@@ -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: 2007-02-21 14:35:34 -0500 (Wed, 21 Feb 2007) $
| > $Revision: 855 $
| > $Date: 2008-04-23 15:02:02 -0400 (Wed, 23 Apr 2008) $
| > $Revision: 1254 $
| > $Author: bfarber $
+---------------------------------------------------------------------------
|
@@ -38,7 +28,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();
}
@@ -193,6 +183,14 @@ class login
if ($this->ipsclass->member['id'])
{
if ( USE_MODULES == 1 )
{
$this->modules->register_class($this);
$this->modules->on_login($member);
}
$this->ipsclass->my_setcookie('session_id', '0', -1 );
if ($method == 'show')
{
$this->ipsclass->print->redirect_screen( $true_words, "" );
@@ -227,13 +225,15 @@ class login
# Check for funny business
if ( $key != $this->ipsclass->md5_check )
{
{
$this->ipsclass->Error( array( 'LEVEL' => 1, 'MSG' => 'no_permission' ) );
}
}
if (is_array($_COOKIE))
{
$this->ipsclass->vars['cookie_id'] = preg_quote( $this->ipsclass->vars['cookie_id'] );
foreach( $_COOKIE as $cookie => $value)
{
if (preg_match( "/^(".$this->ipsclass->vars['cookie_id']."ipbforum.*$)/i", $cookie, $match))
@@ -303,7 +303,6 @@ class login
$forum_data = $this->ipsclass->forums->forum_by_id[ $forum_id ];
$children = $this->ipsclass->forums->forums_get_children( $forum_data['id'] );
$save = array();
$delete = array();
//-----------------------------------------
// Check
@@ -326,8 +325,6 @@ class login
{
$this->ipsclass->forum_read[ $id ] = time();
$delete[] = $id;
$save[ $id ] = array( 'marker_forum_id' => $id,
'marker_member_id' => $this->ipsclass->member['id'],
'marker_last_update' => time(),
@@ -343,8 +340,6 @@ class login
$this->ipsclass->forum_read[ $forum_data['id'] ] = time();
$delete[] = $forum_data['id'];
$save[ $forum_data['id'] ] = array( 'marker_forum_id' => $forum_data['id'],
'marker_member_id' => $this->ipsclass->member['id'],
'marker_last_update' => time(),
@@ -357,14 +352,11 @@ class login
if ( $this->ipsclass->vars['db_topic_read_cutoff'] and $this->ipsclass->member['id'] )
{
if ( count( $delete ) )
if ( count( $save ) )
{
$this->ipsclass->DB->build_and_exec_query( array( 'delete' => 'topic_markers',
'where' => 'marker_member_id='.$this->ipsclass->member['id'].' AND marker_forum_id IN ('.implode(',',$delete ).')' ) );
foreach( $save as $data )
{
$this->ipsclass->DB->do_insert( 'topic_markers', $data );
$this->ipsclass->DB->do_replace_into( 'topic_markers', $data, array('marker_member_id','marker_forum_id'), TRUE );
}
}
}
@@ -567,10 +559,13 @@ class login
$username = strtolower( trim( $this->ipsclass->input['UserName'] ) );
}
/*
I see no reason to limit how long the password can be...
if ( $this->ipsclass->txt_mb_strlen( $_POST['PassWord'] ) > 32)
{
$this->ipsclass->Error( array( LEVEL => 1, MSG => 'pass_too_long' ) );
}
}*/
$password = md5( $this->ipsclass->input['PassWord'] );
@@ -602,8 +597,8 @@ class login
if( $this->han_login->account_unlock )
{
$time = time() - $this->han_login->account_unlock;
$time = $this->ipsclass->vars['ipb_bruteforce_period'] - ceil( $time / 60 );
$time = ( $this->ipsclass->vars['ipb_bruteforce_period'] - ceil( $time / 60 ) > 0 ) ? $this->ipsclass->vars['ipb_bruteforce_period'] - ceil( $time / 60 ) : 1;
$extra = sprintf( $this->ipsclass->lang['bruteforce_account_unlock'], $time );
}
@@ -662,7 +657,7 @@ class login
if ( $this->ipsclass->input['CookieDate'] )
{
$this->ipsclass->my_setcookie("member_id" , $member['id'] , 1);
$this->ipsclass->my_setcookie("member_id" , $member['id'] , 1 );
$this->ipsclass->my_setcookie("pass_hash" , $member['member_login_key'], $_sticky, $_days );
}
@@ -889,6 +884,8 @@ class login
if ( is_array($_COOKIE) )
{
$this->ipsclass->vars['cookie_id'] = preg_quote( $this->ipsclass->vars['cookie_id'] );
foreach( $_COOKIE as $cookie => $value )
{
if ( preg_match( "/^(".$this->ipsclass->vars['cookie_id']."ipbforumpass_.*$)/i", $cookie, $match) )