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

+22 -24
View File
@@ -2,25 +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 ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
+---------------------------------------------------------------------------
| > $Date: 2006-10-26 12:58:53 -0500 (Thu, 26 Oct 2006) $
| > $Revision: 678 $
| > $Date: 2008-04-23 15:02:02 -0400 (Wed, 23 Apr 2008) $
| > $Revision: 1254 $
| > $Author: bfarber $
+---------------------------------------------------------------------------
|
@@ -36,8 +28,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 topic_display
@@ -52,7 +44,6 @@ class topic_display
var $topic = array();
var $mod_action = array();
var $poll_html = "";
var $parser = "";
var $mimetypes = "";
var $nav_extra = "";
var $mod_panel_html = "";
@@ -307,6 +298,8 @@ class topic_display
$poster = $return['poster'];
$row = $return['row'];
$this->output .= $this->ipsclass->compiled_templates['skin_topic']->RenderRow( $row, $poster );
//-----------------------------------------
// Are we giving this bloke a good ignoring?
//-----------------------------------------
@@ -323,8 +316,6 @@ class topic_display
}
}
$this->output .= $this->ipsclass->compiled_templates['skin_topic']->RenderRow( $row, $poster );
if ( ! $this->printed and $num_rows > 1 )
{
$this->output .= $this->ipsclass->compiled_templates['skin_topic']->topic_end_first_post( array( 'TOPIC' => $this->topic, 'FORUM' => $this->forum ), 1 );
@@ -415,13 +406,13 @@ class topic_display
if ( $this->structured_pids[ $post['post_parent'] ][$last_id] == $post['pid'] )
{
$this->depth_guide[ $depth ] = '<img src="style_images/<#IMG_DIR#>/spacer.gif" width="20" height="16">';
$post['depthguide'] .= '<img src="style_images/<#IMG_DIR#>/to_post_no_children.gif" />';
$this->depth_guide[ $depth ] = '<img src="style_images/<#IMG_DIR#>/spacer.gif" alt="" width="20" height="16">';
$post['depthguide'] .= '<img src="style_images/<#IMG_DIR#>/to_post_no_children.gif" alt="-" />';
}
else
{
$this->depth_guide[ $depth ] = '<img src="style_images/<#IMG_DIR#>/to_down_pipe.gif">';
$post['depthguide'] .= '<img src="style_images/<#IMG_DIR#>/to_post_with_children.gif" />';
$this->depth_guide[ $depth ] = '<img src="style_images/<#IMG_DIR#>/to_down_pipe.gif" alt="|" />';
$post['depthguide'] .= '<img src="style_images/<#IMG_DIR#>/to_post_with_children.gif" alt="-" />';
}
}
@@ -429,8 +420,15 @@ class topic_display
{
if ( $this->ipsclass->vars['post_showtext_notitle'] )
{
$post_text = $this->lib->parser->strip_all_tags( $post['post'] );
require_once( ROOT_PATH."sources/handlers/han_parse_bbcode.php" );
$this->lib->parser = new parse_bbcode();
$this->lib->parser->ipsclass = $this->ipsclass;
$this->lib->parser->allow_update_caches = 1;
$this->lib->parser->bypass_badwords = intval($this->ipsclass->member['g_bypass_badwords']);
$post_text = $this->lib->parser->strip_all_tags( strip_tags( $this->ipsclass->my_br2nl( $post['post'] ) ) );
if ( strlen($post_text) > 50 )
{
$post['post_title'] = substr( $post_text, 0, 50 ).'...';
@@ -457,11 +455,11 @@ class topic_display
$post['formatted_date'] = $this->ipsclass->get_date( $post['post_date'], 'LONG' );
$post['new_post'] = '<img src="style_images/<#IMG_DIR#>/to_post_off.gif" />';
$post['new_post'] = '<img src="style_images/<#IMG_DIR#>/to_post_off.gif" alt="-" />';
if ( $post['post_date'] > $this->lib->last_read_tid )
{
$post['new_post'] = '<img src="style_images/<#IMG_DIR#>/to_post.gif" />';
$post['new_post'] = '<img src="style_images/<#IMG_DIR#>/to_post.gif" alt="-" />';
}
//$post['post_debug'] = "{ID: {$post['pid']}} Last Array Index: $last_id - Last id in tree{$this->structured_pids[ $post['post_parent'] ][$last_id]}, DEPTH: $depth, [parent: {$post['post_parent']}]";