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

+75 -29
View File
@@ -1,26 +1,18 @@
<?php
/*
+--------------------------------------------------------------------------
| 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-16 07:01:42 -0500 (Mon, 16 Oct 2006) $
| > $Revision: 649 $
| > $Author: matt $
| > $Date: 2007-12-17 18:07:20 -0500 (Mon, 17 Dec 2007) $
| > $Revision: 1149 $
| > $Author: bfarber $
+---------------------------------------------------------------------------
|
| > Handler for BBCode parsing
@@ -31,7 +23,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 'admin.php'.";
exit();
}
@@ -90,7 +82,10 @@ class parse_bbcode
// Get the correct class
//-----------------------------------------
$this->_load_classes();
if ( ! $this->classes_loaded )
{
$this->_load_classes();
}
//-----------------------------------------
// Check the DB cache
@@ -142,7 +137,10 @@ class parse_bbcode
// Get the correct class
//-----------------------------------------
$this->_load_classes();
if ( ! $this->classes_loaded )
{
$this->_load_classes();
}
//-----------------------------------------
// Decide the settings...
@@ -180,16 +178,18 @@ class parse_bbcode
//-----------------------------------------
// Check the DB cache
// { Dont need this, for this }
//-----------------------------------------
///$this->check_caches();
$this->check_caches();
//-----------------------------------------
// Get the correct class
//-----------------------------------------
$this->_load_classes();
if ( ! $this->classes_loaded )
{
$this->_load_classes();
}
//-----------------------------------------
// Decide the settings...
@@ -232,7 +232,10 @@ class parse_bbcode
// Get the correct class
//-----------------------------------------
$this->_load_classes();
if ( ! $this->classes_loaded )
{
$this->_load_classes();
}
//-----------------------------------------
// Ensure no slashy slashy
@@ -244,6 +247,7 @@ class parse_bbcode
//-----------------------------------------
// Convert <>
//-----------------------------------------
if( $this->parse_nl2br ) { $t = str_replace( "<br />", "\n", $t ); }
$t = str_replace( '<', '&lt;', $t );
$t = str_replace( '>', '&gt;', $t );
@@ -259,6 +263,7 @@ class parse_bbcode
//-----------------------------------------
$t = $this->pre_db_parse( $t );
$t = $this->bbclass->clean_ipb_html( $t );
return $t;
@@ -274,7 +279,10 @@ class parse_bbcode
// Get the correct class
//-----------------------------------------
$this->_load_classes();
if ( ! $this->classes_loaded )
{
$this->_load_classes();
}
return $this->bbclass->clean_ipb_html( $t );
}
@@ -283,15 +291,39 @@ class parse_bbcode
// Passthrough function: Strip all tags
/*-------------------------------------------------------------------------*/
function strip_all_tags( $t )
function strip_all_tags( $t, $pre_edit_parse=1 )
{
//-----------------------------------------
// Check the DB cache
//-----------------------------------------
$this->check_caches();
//-----------------------------------------
// Get the correct class
//-----------------------------------------
$this->_load_classes();
if ( ! $this->classes_loaded )
{
$this->_load_classes();
}
return $this->bbclass->strip_all_tags( $t );
//-----------------------------------------
// Decide the settings...
//-----------------------------------------
$this->bbclass->bypass_badwords = $this->bypass_badwords ? $this->bypass_badwords : intval($this->ipsclass->member['g_bypass_badwords']);
$this->bbclass->parse_smilies = $this->parse_smilies;
$this->bbclass->parse_html = $this->parse_html;
$this->bbclass->parse_bbcode = $this->parse_bbcode;
$this->bbclass->strip_quotes = $this->ipsclass->vars['strip_quotes'];
$this->bbclass->parse_nl2br = $this->parse_nl2br;
$this->bbclass->parse_wordwrap = $this->ipsclass->vars['post_wordwrap'];
$this->bbclass->max_embed_quotes = $this->ipsclass->vars['max_quotes_per_post'];
$this->bbclass->parse_custombbcode = $this->parse_custombbcode;
$this->bbclass->parsing_signature = $this->parsing_signature;
return $this->bbclass->strip_all_tags( $t, $pre_edit_parse );
}
/*-------------------------------------------------------------------------*/
@@ -304,7 +336,12 @@ class parse_bbcode
// Get the correct class
//-----------------------------------------
$this->_load_classes();
if ( ! $this->classes_loaded )
{
$this->_load_classes();
}
$this->check_caches();
$this->bbclass->bypass_badwords = isset( $this->bypass_badwords ) ? $this->bypass_badwords : intval($this->ipsclass->member['g_bypass_badwords']);
@@ -321,7 +358,10 @@ class parse_bbcode
// Get the correct class
//-----------------------------------------
$this->_load_classes();
if ( ! $this->classes_loaded )
{
$this->_load_classes();
}
//-----------------------------------------
// [url]http://www.index.com[/url]
@@ -350,7 +390,10 @@ class parse_bbcode
// Get the correct class
//-----------------------------------------
$this->_load_classes();
if ( ! $this->classes_loaded )
{
$this->_load_classes();
}
return $this->bbclass->_make_quote_safe( $t );
}
@@ -365,7 +408,10 @@ class parse_bbcode
// Get the correct class
//-----------------------------------------
$this->_load_classes();
if ( ! $this->classes_loaded )
{
$this->_load_classes();
}
return $this->bbclass->strip_quotes( $t );
}
@@ -393,7 +439,7 @@ class parse_bbcode
$this->ipsclass->cache['emoticons'][] = $r;
}
@usort( $this->ipsclass->cache['emoticons'] , array( 'class_bbcode_core', 'smilie_length_sort' ) );
@usort( $this->ipsclass->cache['emoticons'] , array( &$this->bbclass, 'smilie_length_sort' ) );
if ( $this->allow_update_caches )
{
@@ -441,7 +487,7 @@ class parse_bbcode
if( count($this->ipsclass->cache['badwords']) )
{
@usort( $this->ipsclass->cache['badwords'] , array( 'class_bbcode_core', 'word_length_sort' ) );
@usort( $this->ipsclass->cache['badwords'] , array( &$this->bbclass, 'word_length_sort' ) );
}
if ( $this->allow_update_caches )