Version 2.2.2

This commit is contained in:
Neo committed 2025-12-19 00:24:35 -08:00
1 parent 22f1b963ee
commit a3bb603c96
858 files changed
+479463 -188140

No files matched your search

+73 -58
View File
@@ -1,17 +1,27 @@
<?php
/*
+--------------------------------------------------------------------------
| Invision Power Board
| Invision Power Board 2.2.2
| =============================================
| 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
+---------------------------------------------------------------------------
| > $Date: 2006-09-26 17:13:44 +0100 (Tue, 26 Sep 2006) $
| > $Revision: 575 $
| INVISION POWER BOARD IS NOT FREE / OPEN SOURCE!
+---------------------------------------------------------------------------
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
+---------------------------------------------------------------------------
| > $Date: 2006-12-04 10:31:02 -0600 (Mon, 04 Dec 2006) $
| > $Revision: 757 $
| > $Author: matt $
+---------------------------------------------------------------------------
|
@@ -26,7 +36,7 @@
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.";
print "<h1>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
exit();
}
@@ -590,17 +600,19 @@ class forum_functions
{
foreach( $this->forum_cache[ $root_id ] as $data )
{
if ($data['last_post'] > $forum_data['last_post'])
if ( $data['last_post'] > $forum_data['last_post'] )
{
$forum_data['last_post'] = $data['last_post'];
$forum_data['fid'] = $data['id'];
$forum_data['last_id'] = $data['last_id'];
$forum_data['last_title'] = $data['last_title'];
$forum_data['password'] = isset($data['password']) ? $data['password'] : '';
$forum_data['last_post'] = $data['last_post'];
$forum_data['fid'] = $data['id'];
$forum_data['last_id'] = $data['last_id'];
$forum_data['last_title'] = $data['last_title'];
$forum_data['password'] = isset($data['password']) ? $data['password'] : '';
$forum_data['password_override'] = isset($data['password_override']) ? $data['password_override'] : '';
$forum_data['last_poster_id'] = $data['last_poster_id'];
$forum_data['last_poster_name'] = $data['last_poster_name'];
$forum_data['status'] = $data['status'];
$forum_data['last_poster_id'] = $data['last_poster_id'];
$forum_data['last_poster_name'] = $data['last_poster_name'];
# Bug http://forums.invisionpower.com/index.php?autocom=bugtracker&code=show_bug&bug_title_id=3931&bug_cat_id=3
#$forum_data['status'] = $data['status'];
//-----------------------------------------
// Is this forum last post > current last post
@@ -710,55 +722,58 @@ class forum_functions
{
$jump_string = "";
foreach( $this->forum_cache['root'] as $forum_data )
if( is_array($this->forum_cache['root']) AND count($this->forum_cache['root']) )
{
if ( $forum_data['sub_can_post'] or ( isset($this->forum_cache[ $forum_data['id'] ]) AND is_array($this->forum_cache[ $forum_data['id'] ]) AND count($this->forum_cache[ $forum_data['id'] ]) ) )
foreach( $this->forum_cache['root'] as $forum_data )
{
$forum_data['redirect_on'] = isset($forum_data['redirect_on']) ? $forum_data['redirect_on'] : 0;
if( $remove_redirects == 1 AND $forum_data['redirect_on'] == 1 )
if ( $forum_data['sub_can_post'] or ( isset($this->forum_cache[ $forum_data['id'] ]) AND is_array($this->forum_cache[ $forum_data['id'] ]) AND count($this->forum_cache[ $forum_data['id'] ]) ) )
{
continue;
}
$selected = "";
if ($html == 1 or $override == 1)
{
if ($this->ipsclass->input['f'] and $this->ipsclass->input['f'] == $forum_data['id'])
$forum_data['redirect_on'] = isset($forum_data['redirect_on']) ? $forum_data['redirect_on'] : 0;
if( $remove_redirects == 1 AND $forum_data['redirect_on'] == 1 )
{
$selected = ' selected="selected"';
continue;
}
}
$jump_string .= "<option value=\"{$forum_data['id']}\"".$selected.">".$forum_data['name']."</option>\n";
$depth_guide = $this->depth_guide;
if ( array_key_exists( $forum_data['id'], $this->forum_cache ) AND is_array( $this->forum_cache[ $forum_data['id'] ] ) )
{
foreach( $this->forum_cache[ $forum_data['id'] ] as $forum_data )
$selected = "";
if ($html == 1 or $override == 1)
{
if( $remove_redirects == 1 AND $forum_data['redirect_on'] == 1 )
if ($this->ipsclass->input['f'] and $this->ipsclass->input['f'] == $forum_data['id'])
{
continue;
}
if ($html == 1 or $override == 1)
{
$selected = "";
if ($this->ipsclass->input['f'] and $this->ipsclass->input['f'] == $forum_data['id'])
{
$selected = ' selected="selected"';
}
$selected = ' selected="selected"';
}
$jump_string .= "<option value=\"{$forum_data['id']}\"".$selected.">&nbsp;&nbsp;&#0124;".$depth_guide." ".$forum_data['name']."</option>\n";
if( $this->ipsclass->vars['short_forum_jump'] == 0 OR $override == 1 )
}
$jump_string .= "<option value=\"{$forum_data['id']}\"".$selected.">".$forum_data['name']."</option>\n";
$depth_guide = $this->depth_guide;
if ( array_key_exists( $forum_data['id'], $this->forum_cache ) AND is_array( $this->forum_cache[ $forum_data['id'] ] ) )
{
foreach( $this->forum_cache[ $forum_data['id'] ] as $forum_data )
{
$jump_string = $this->forums_forum_jump_internal( $forum_data['id'], $jump_string, $depth_guide . $this->depth_guide, $html, $override, $remove_redirects );
if( $remove_redirects == 1 AND $forum_data['redirect_on'] == 1 )
{
continue;
}
if ($html == 1 or $override == 1)
{
$selected = "";
if ($this->ipsclass->input['f'] and $this->ipsclass->input['f'] == $forum_data['id'])
{
$selected = ' selected="selected"';
}
}
$jump_string .= "<option value=\"{$forum_data['id']}\"".$selected.">&nbsp;&nbsp;&#0124;".$depth_guide." ".$forum_data['name']."</option>\n";
if( $this->ipsclass->vars['short_forum_jump'] == 0 OR $override == 1 )
{
$jump_string = $this->forums_forum_jump_internal( $forum_data['id'], $jump_string, $depth_guide . $this->depth_guide, $html, $override, $remove_redirects );
}
}
}
}
@@ -904,6 +919,11 @@ class forum_functions
function forums_new_posts($forum_data)
{
if ( ! $forum_data['status'] )
{
return "<{C_LOCKED}>";
}
$sub = 0;
if ( isset($forum_data['subforums']) AND count($forum_data['subforums']) )
@@ -941,11 +961,6 @@ class forum_functions
if ($sub == 0)
{
if ( ! $forum_data['status'] )
{
return "<{C_LOCKED}>";
}
$sub_cat_img = '';
}
else