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

+16 -6
View File
@@ -2,17 +2,27 @@
/*
+--------------------------------------------------------------------------
| 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-22 11:28:54 +0100 (Fri, 22 Sep 2006) $
| > $Revision: 567 $
| INVISION POWER BOARD IS NOT FREE / OPEN SOURCE!
+---------------------------------------------------------------------------
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
+---------------------------------------------------------------------------
| > $Date: 2006-10-31 05:08:21 -0600 (Tue, 31 Oct 2006) $
| > $Revision: 686 $
| > $Author: matt $
+---------------------------------------------------------------------------
|
@@ -81,8 +91,8 @@
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.";
exit();
print "<h1>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
exit();
}
class class_editor
@@ -236,7 +246,7 @@ class class_editor
$url = str_replace( '>', '&gt;', $url );
$url = str_replace( ' ', '%20' , $url );
return $type.'="'.$url.'"';
return '<'.$type.'="'.$url.'"';
}
/*-------------------------------------------------------------------------*/
@@ -2,17 +2,27 @@
/*
+--------------------------------------------------------------------------
| 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-10-04 11:22:28 +0100 (Wed, 04 Oct 2006) $
| > $Revision: 605 $
| 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 $
+---------------------------------------------------------------------------
|
@@ -53,8 +63,8 @@
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.";
exit();
print "<h1>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
exit();
}
class class_editor_module extends class_editor
@@ -172,9 +182,69 @@ class class_editor_module extends class_editor
//$t = str_replace( '&nbsp;&nbsp;&nbsp;&nbsp;', "\t", $t );
//$t = str_replace( '&nbsp;&nbsp;' , " ", $t );
//-----------------------------------------
// Clean up code tags
//-----------------------------------------
$t = preg_replace_callback( "#\[(code)\](.+?)\[/code\]#is", array( &$this, 'clean_ipb_html_code_tag' ), $t );
//-----------------------------------------
// Clean up quote tags (remove many <br />s
//-----------------------------------------
$t = preg_replace( "#(\[quote([^\]]+?)\])(<br />){1,}#is", "\\1<br />", $t );
//-----------------------------------------
// Clean up the rest of the tags
//-----------------------------------------
$t = $this->ipsclass->txt_htmlspecialchars( $t );
//-----------------------------------------
// Fix up stuff
//-----------------------------------------
$t = str_replace( "&lt;#IMG_DIR#&gt;", "<#IMG_DIR#>", $t );
$t = str_replace( "&lt;#EMO_DIR#&gt;", "<#EMO_DIR#>", $t );
return $t;
}
/*-------------------------------------------------------------------------*/
// Clean up code tags for RTE body
/*-------------------------------------------------------------------------*/
/**
* Remove quote tags
*
* @param array Array of matches
* @return string Converted text
*/
function clean_ipb_html_code_tag( $matches )
{
//-----------------------------------------
// INIT
//-----------------------------------------
$tag = $matches[1];
$txt = $matches[2];
//-----------------------------------------
// Fix...
//-----------------------------------------
$txt = str_replace( "&lt;br&gt;" , "\n" , $txt );
$txt = str_replace( "&lt;br /&gt;" , "\n" , $txt );
$txt = str_replace( "<br>" , "\n" , $txt );
$txt = str_replace( "<br />" , "\n" , $txt );
$txt = str_replace( "<" , "&lt;" , $txt );
$txt = str_replace( ">" , "&gt;" , $txt );
$txt = str_replace( "&#60;" , "&lt;" , $txt );
$txt = str_replace( "&#62;" , "&gt;" , $txt );
return '['. $tag . ']'.nl2br($txt).'[/'. $tag .']';
}
/*-------------------------------------------------------------------------*/
// Process the raw post with BBCode before saving
/*-------------------------------------------------------------------------*/
@@ -245,14 +315,13 @@ class class_editor_module extends class_editor
// Make URLs safe (prevent tag stripping)
//-----------------------------------------
$t = preg_replace_callback( '#<(a href|img src)=([\'"])([^>]+?)(\\3)#is', array( $this, 'unhtml_url' ), $t );
$t = preg_replace_callback( '#<(a href|img src)=([\'"])([^>]+?)(\\2)#is', array( &$this, 'unhtml_url' ), $t );
//-----------------------------------------
// Make EMOids safe (prevent tag stripping)
//-----------------------------------------
$t = preg_replace_callback( '#(emoid=\")(.+?)(\")#is', array( $this, 'unhtml_emoid' ), $t );
$t = preg_replace_callback( '#(emoid=")(.+?)(")#is', array( &$this, 'unhtml_emoid' ), $t );
//-----------------------------------------
// WYSI-Weirdness #0: BR tags to \n
@@ -310,7 +379,7 @@ class class_editor_module extends class_editor
$t = str_replace( "<#EMO_DIR#>", "&lt;#EMO_DIR&gt;", $t );
# Parse...
$t = preg_replace_callback( "#[ ]?<([^>]+?)emoid=\"(.+?)\"([^>]+?)?".">[ ]?#is", array( $this, 'html_emoid' ), $t );
$t = preg_replace_callback( "#[ ]?<([^>]+?)emoid=\"(.+?)\"([^>]+?)?".">[ ]?#is", array( &$this, 'html_emoid' ), $t );
# And convert it back again...
$t = str_replace( "&lt;#EMO_DIR&gt;", "<#EMO_DIR#>", $t );
@@ -331,6 +400,12 @@ class class_editor_module extends class_editor
$t = preg_replace( "#\[url=(\"|'|&quot;)<a\s+?href=[\"'](.*)/??['\"]\\2/??</a>#is", "[url=\\1\\2", $t );
//-----------------------------------------
// WYSI-Weirdness: Make relative links full links
//-----------------------------------------
$t = preg_replace( "#\[img\](/)?style_(emoticons|images)#i", '[img]' . $this->ipsclass->vars['board_url'] . '/style_' . '\\2', $t );
//-----------------------------------------
// Now, recursively parse the other tags
// to make sure we get the nested ones
@@ -716,7 +791,7 @@ class class_editor_module extends class_editor
// Convert RGB to hex
//-----------------------------------------
$style = preg_replace_callback( '#(?<!\w)color:\s+?rgb\((\d+,\s+?\d+,\s+?\d+)\)(;?)#i', array( $this, '_rgb_to_hex' ), $style );
$style = preg_replace_callback( '#(?<!\w)color:\s+?rgb\((\d+,\s+?\d+,\s+?\d+)\)(;?)#i', array( &$this, '_rgb_to_hex' ), $style );
//-----------------------------------------
// Pick through possible styles
@@ -11,7 +11,13 @@
| Web: http://www.invisionboard.com
| Licence Info: http://www.invisionboard.com/?license
+---------------------------------------------------------------------------
| > $Date: 2006-09-22 11:28:54 +0100 (Fri, 22 Sep 2006) $
| 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 $
+---------------------------------------------------------------------------
@@ -55,8 +61,8 @@
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.";
exit();
print "<h1>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
exit();
}
class class_editor_module extends class_editor
+10 -1
View File
@@ -1 +1,10 @@
<html>␍<head><title>Invision Power Board - Bulletin Board System</title></head>␍<body>␍<h1>403: Invision Power Board -> Forbidden</h1>␍<hr>␍You have reached this Page in error, please use␍your back button to return to Invision Board.␍<hr>␍<a href="http://www.invisionboard.com/">Invision Power Board</a>␍</body>␍</html>␍
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=windows-1251" />
<meta name="author" content="Êîìïàíèÿ IBResource è Invision Power Services Inc.">
<title>Îøèáêà ðóññêîé âåðñèè Invision Power Board</title>
</head><body>
<h1>Îøèáêà <a href="http://www.ibresource.ru/">ðóññêîé âåðñèè Invision Power Board</a></h1>
<font size="4">Âû ïîïàëè íà íåñóùåñòâóþùóþ ñòðàíèöó!<br>Ïîæàëóéñòà íàæìèòå íà êíîïî÷êó &laquo;<b>Íàçàä</b>&raquo; â&nbsp;âàøåì áðàóçåðå äëÿ âîçâðàùåíèÿ íà ïðåäûäóùóþ ñòðàíèöó.</font>
</body>
</html>