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

@@ -2,28 +2,18 @@
/*
+--------------------------------------------------------------------------
| 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: 2006-09-22 05:28:54 -0500 (Fri, 22 Sep 2006) $
| > $Revision: 567 $
| > $Author: matt $
| > $Date: 2008-02-29 18:09:47 -0500 (Fri, 29 Feb 2008) $
| > $Revision: 1197 $
| > $Author: bfarber $
+---------------------------------------------------------------------------
|
| > Topic display in printable format module
@@ -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();
}
@@ -55,7 +45,7 @@ class printpage {
var $mem_titles = array();
var $mod_action = array();
var $poll_html = "";
var $parser = "";
var $sort = 'pid';
/*-------------------------------------------------------------------------*/
//
@@ -72,13 +62,6 @@ class printpage {
$this->ipsclass->load_language('lang_printpage');
$this->ipsclass->load_template('skin_printpage');
require_once( ROOT_PATH."sources/handlers/han_parse_bbcode.php" );
$this->parser = new parse_bbcode();
$this->parser->ipsclass = $this->ipsclass;
$this->parser->allow_update_caches = 1;
$this->parser->bypass_badwords = intval($this->ipsclass->member['g_bypass_badwords']);
//-----------------------------------------
// Check the input
//-----------------------------------------
@@ -91,6 +74,8 @@ class printpage {
$this->ipsclass->Error( array( LEVEL => 1, MSG => 'missing_files') );
}
$this->sort = $this->ipsclass->vars['post_order_column'];
//-----------------------------------------
// Get the forum info based on the
// forum ID, get the category name, ID,
@@ -138,6 +123,11 @@ class printpage {
$this->ipsclass->forums->forums_check_access( $this->forum['id'], 1, 'topic' );
if( !$this->topic['approved'] AND !( $this->ipsclass->member['g_is_supmod'] OR $this->ipsclass->member['_moderator'][ $this->topic['forum_id'] ]['topic_q'] ) )
{
$this->ipsclass->Error( array( LEVEL => 1, MSG => 'no_view_topic') );
}
//-----------------------------------------
//
// Main logic engine
@@ -220,7 +210,7 @@ class printpage {
$this->ipsclass->DB->simple_construct( array ( 'select' => '*',
'from' => 'posts',
'where' => "topic_id={$this->topic['tid']} and queued=0",
'order' => 'pid',
'order' => $this->sort,
'limit' => array(0, $max_posts)
) );
$this->ipsclass->DB->simple_exec();
@@ -387,10 +377,7 @@ class printpage {
{
if ($row['use_sig'] == 1)
{
$this->parser->parse_html = intval($this->ipsclass->vars['sig_allow_html']);
$this->parser->parse_nl2br = 1;
$row['signature'] = $this->ipsclass->compiled_templates['skin_global']->signature_separator( $this->parser->pre_display_parse($poster['signature']) );
$row['signature'] = $this->ipsclass->compiled_templates['skin_global']->signature_separator( $poster['signature'] );
}
}
@@ -398,11 +385,6 @@ class printpage {
// Parse HTML tag on the fly
//-----------------------------------------
$this->parser->parse_html = ( $this->forum['use_html'] and $this->ipsclass->cache['group_cache'][ $poster['mgroup'] ]['g_dohtml'] and $row['post_htmlstate'] ) ? 1 : 0;
$this->parser->parse_nl2br = $row['post_htmlstate'] == 2 ? 1 : 0;
$row['post'] = $this->parser->pre_display_parse( $row['post'] );
$posts_html .= $this->ipsclass->compiled_templates['skin_printpage']->pp_postentry( $poster, $row );
}