Version 2.3.6
This commit is contained in:
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-12-04 10:31:02 -0600 (Mon, 04 Dec 2006) $
|
||||
| > $Revision: 757 $
|
||||
| > $Author: matt $
|
||||
| > $Date: 2007-09-11 12:38:15 -0400 (Tue, 11 Sep 2007) $
|
||||
| > $Revision: 1102 $
|
||||
| > $Author: bfarber $
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > Posting RTE Editor
|
||||
@@ -63,8 +53,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 class_editor_module extends class_editor
|
||||
@@ -232,7 +222,7 @@ class class_editor_module extends class_editor
|
||||
//-----------------------------------------
|
||||
// Fix...
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
$txt = str_replace( "<br>" , "\n" , $txt );
|
||||
$txt = str_replace( "<br />" , "\n" , $txt );
|
||||
$txt = str_replace( "<br>" , "\n" , $txt );
|
||||
@@ -340,7 +330,7 @@ class class_editor_module extends class_editor
|
||||
{
|
||||
$t = strip_tags( $t, '<h1><h2><h3><h4><h5><h6><font><span><div><br><p><img><a><li><ol><ul><b><strong><em><i><u><strike><blockquote><sub><sup>' );
|
||||
}
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// WYSI-Weirdness #1: Named anchors
|
||||
//-----------------------------------------
|
||||
@@ -366,6 +356,12 @@ class class_editor_module extends class_editor
|
||||
|
||||
$t = preg_replace( "#<(h[0-9])>(.+?)</\\1>#is", "\n[b]\\2[/b]\n", $t );
|
||||
|
||||
//-----------------------------------------
|
||||
// WYSI-Weirdness #2.1324613: Font tags
|
||||
//-----------------------------------------
|
||||
|
||||
$t = preg_replace( "#<font (color|size|face)=\"([a-zA-Z0-9\s\#\-]*?)\">(\s*)</font>#is", " ", $t );
|
||||
|
||||
//-----------------------------------------
|
||||
// WYSI-Weirdness #2.5: Fix up smilies
|
||||
//-----------------------------------------
|
||||
@@ -668,7 +664,7 @@ class class_editor_module extends class_editor
|
||||
//-----------------------------------------
|
||||
// Check for inline style moz may have added
|
||||
//-----------------------------------------
|
||||
|
||||
|
||||
$this->_parse_style_attributes( $opening_tag, $start_tags, $end_tags );
|
||||
|
||||
return $start_tags . $this->_recurse_and_parse( 'span', $between_text, '_parse_span_tag' ) . $end_tags;
|
||||
@@ -786,7 +782,7 @@ class class_editor_module extends class_editor
|
||||
//-----------------------------------------
|
||||
|
||||
$style = $this->_get_value_of_option( 'style', $opening_tag );
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// Convert RGB to hex
|
||||
//-----------------------------------------
|
||||
@@ -1311,7 +1307,7 @@ class class_editor_module extends class_editor
|
||||
}
|
||||
else
|
||||
{
|
||||
preg_match( "#$option(\s+?)?\=(\s+?)?[\"']?(.+?)([\"']|(\s+?)|$|>)#is", $text, $matches );
|
||||
preg_match( "#$option(\s*?)?\=(\s*?)?[\"']?(.+?)([\"']|$|\s|>)#is", $text, $matches );
|
||||
}
|
||||
|
||||
//preg_match( "#$option(\s+?)?\=(\s+?)?[\"']?(.+?)([\"']|$|>|\s)#is", $text, $matches );
|
||||
|
||||
Reference in new issue
Block a user