Version 3.2.3
This commit is contained in:
1 parent
ae5c01cc78
commit
78706903a2
2641 files changed
+228363
-201264
No files matched your search
@@ -3,18 +3,18 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.1.4
|
||||
* IP.Board v3.2.3
|
||||
* Editor Library: Core Class
|
||||
* Last Updated: $Date: 2010-01-15 10:18:44 -0500 (Fri, 15 Jan 2010) $
|
||||
* Last Updated: $Date: 2011-05-05 07:03:47 -0400 (Thu, 05 May 2011) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: bfarber $
|
||||
* @author $Author: ips_terabyte $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/community/board/license.html
|
||||
* @license This is NULLED!
|
||||
* @package IP.Board
|
||||
* @link http://www.invisionpower.com
|
||||
* @link http://hatynka.in
|
||||
* @since 9th March 2005 11:03
|
||||
* @version $Revision: 5713 $
|
||||
* @version $Revision: 8644 $
|
||||
*
|
||||
* EXAMPLE USAGE
|
||||
* <code>
|
||||
@@ -125,6 +125,7 @@ class class_editor
|
||||
* @var object
|
||||
*/
|
||||
protected $member;
|
||||
protected $memberData;
|
||||
|
||||
/**
|
||||
* Cache object
|
||||
@@ -133,6 +134,7 @@ class class_editor
|
||||
* @var object
|
||||
*/
|
||||
protected $cache;
|
||||
protected $caches;
|
||||
|
||||
/**
|
||||
* Main font sizes
|
||||
@@ -153,7 +155,7 @@ class class_editor
|
||||
*
|
||||
* @access public
|
||||
* @param object Registry object
|
||||
* @return void
|
||||
* @return @e void
|
||||
*/
|
||||
public function __construct( ipsRegistry $registry )
|
||||
{
|
||||
@@ -173,7 +175,7 @@ class class_editor
|
||||
* Main init: Prep font sizes
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
* @return @e void
|
||||
*/
|
||||
public function editorInit( )
|
||||
{
|
||||
|
||||
@@ -3,18 +3,18 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.1.4
|
||||
* IP.Board v3.2.3
|
||||
* Editor Library: RTE (WYSIWYG) Class
|
||||
* Last Updated: $Date: 2010-11-15 11:39:10 -0500 (Mon, 15 Nov 2010) $
|
||||
* Last Updated: $Date: 2011-04-19 12:42:57 -0400 (Tue, 19 Apr 2011) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: ips_terabyte $
|
||||
* @author $Author: bfarber $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/community/board/license.html
|
||||
* @license This is NULLED!
|
||||
* @package IP.Board
|
||||
* @link http://www.invisionpower.com
|
||||
* @link http://hatynka.in
|
||||
* @since 9th March 2005 11:03
|
||||
* @version $Revision: 7185 $
|
||||
* @version $Revision: 8391 $
|
||||
*/
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
@@ -80,16 +80,7 @@ class class_editor_module extends class_editor
|
||||
* @var array
|
||||
*/
|
||||
public $end_tags = array();
|
||||
|
||||
/**
|
||||
* Dunno, forgotten
|
||||
*
|
||||
* @access private
|
||||
* @var boolean
|
||||
* @deprecated Seems this isn't called/checked anymore
|
||||
*/
|
||||
private $_called = false;
|
||||
|
||||
|
||||
/**
|
||||
* Process the content before showing it in the form
|
||||
*
|
||||
@@ -216,11 +207,11 @@ class class_editor_module extends class_editor
|
||||
/**
|
||||
* Clean up content inside the code tag
|
||||
*
|
||||
* @access private
|
||||
* @access protected
|
||||
* @param array Matches from preg_replace_callback
|
||||
* @return string Text ready for editor
|
||||
*/
|
||||
private function _cleanCodeTag( $matches )
|
||||
protected function _cleanCodeTag( $matches )
|
||||
{
|
||||
//-----------------------------------------
|
||||
// INIT
|
||||
@@ -397,17 +388,6 @@ class class_editor_module extends class_editor
|
||||
$t = preg_replace( "#class='[\"'](\S+?)['\"]'#i", "class='\\1'", $t );
|
||||
$t = preg_replace( "#([a-zA-Z0-9])<img src=[\"'](.+?)[\"'] class=[\"'](.+?)[\"'] alt=[\"'](.+?)[\"'] />#i", "\\1 <img src='\\2' class='\\3' alt='\\4' />", $t );
|
||||
|
||||
//-----------------------------------------
|
||||
// WYSI-Weirdness #5: Fix up smilies
|
||||
//-----------------------------------------
|
||||
|
||||
$current = $this->memberData[ 'view_img' ];
|
||||
$this->member->setProperty( 'view_img', 0 );
|
||||
|
||||
$t = IPSText::getTextClass( 'bbcode' )->memberViewImages( $t );
|
||||
|
||||
$this->member->setProperty( 'view_img', $current );
|
||||
|
||||
//-----------------------------------------
|
||||
// WYSI-Weirdness #6: Image tags
|
||||
//-----------------------------------------
|
||||
@@ -564,14 +544,14 @@ class class_editor_module extends class_editor
|
||||
/**
|
||||
* RTE: Parse List tag
|
||||
*
|
||||
* @access private
|
||||
* @access protected
|
||||
* @param string Tag
|
||||
* @param string Text between opening and closing tag
|
||||
* @param string Opening tag complete
|
||||
* @param string Parse tag
|
||||
* @return string Converted text
|
||||
*/
|
||||
private function _parseListTag( $tag, $between_text, $opening_tag, $parse_tag )
|
||||
protected function _parseListTag( $tag, $between_text, $opening_tag, $parse_tag )
|
||||
{
|
||||
$list_type = trim( preg_replace( '#"?list-style-type:\s+?([\d\w\_\-]+);?"?#si', '\\1', $this->_getValueOfOption( 'style', $opening_tag ) ) );
|
||||
|
||||
@@ -613,14 +593,14 @@ class class_editor_module extends class_editor
|
||||
/**
|
||||
* RTE: Parse List Element tag
|
||||
*
|
||||
* @access private
|
||||
* @access protected
|
||||
* @param string Tag
|
||||
* @param string Text between opening and closing tag
|
||||
* @param string Opening tag complete
|
||||
* @param string Parse tag
|
||||
* @return string Converted text
|
||||
*/
|
||||
private function _parseListElement( $tag, $between_text, $opening_tag, $parse_tag )
|
||||
protected function _parseListElement( $tag, $between_text, $opening_tag, $parse_tag )
|
||||
{
|
||||
return '[*]' . rtrim( $between_text );
|
||||
}
|
||||
@@ -628,14 +608,14 @@ class class_editor_module extends class_editor
|
||||
/**
|
||||
* RTE: Parse paragraph tags
|
||||
*
|
||||
* @access private
|
||||
* @access protected
|
||||
* @param string Tag
|
||||
* @param string Text between opening and closing tag
|
||||
* @param string Opening tag complete
|
||||
* @param string Parse tag
|
||||
* @return string Converted text
|
||||
*/
|
||||
private function _parseParagraphTag( $tag, $between_text, $opening_tag, $parse_tag )
|
||||
protected function _parseParagraphTag( $tag, $between_text, $opening_tag, $parse_tag )
|
||||
{
|
||||
//-----------------------------------------
|
||||
// Reset local start tags
|
||||
@@ -686,14 +666,14 @@ class class_editor_module extends class_editor
|
||||
/**
|
||||
* RTE: Parse Span tag
|
||||
*
|
||||
* @access private
|
||||
* @access protected
|
||||
* @param string Tag
|
||||
* @param string Text between opening and closing tag
|
||||
* @param string Opening tag complete
|
||||
* @param string Parse tag
|
||||
* @return string Converted text
|
||||
*/
|
||||
private function _parseSpanTag( $tag, $between_text, $opening_tag, $parse_tag )
|
||||
protected function _parseSpanTag( $tag, $between_text, $opening_tag, $parse_tag )
|
||||
{
|
||||
$start_tags = "";
|
||||
$end_tags = "";
|
||||
@@ -710,14 +690,14 @@ class class_editor_module extends class_editor
|
||||
/**
|
||||
* RTE: Parse DIV tag
|
||||
*
|
||||
* @access private
|
||||
* @access protected
|
||||
* @param string Tag
|
||||
* @param string Text between opening and closing tag
|
||||
* @param string Opening tag complete
|
||||
* @param string Parse tag
|
||||
* @return string Converted text
|
||||
*/
|
||||
private function _parseDivTag( $tag, $between_text, $opening_tag, $parse_tag )
|
||||
protected function _parseDivTag( $tag, $between_text, $opening_tag, $parse_tag )
|
||||
{
|
||||
//-----------------------------------------
|
||||
// Reset local start tags
|
||||
@@ -788,13 +768,13 @@ class class_editor_module extends class_editor
|
||||
/**
|
||||
* RTE: Parse style attributes (color, font, size, b, i..etc)
|
||||
*
|
||||
* @access private
|
||||
* @access protected
|
||||
* @param string Opening tag
|
||||
* @param string Start tags
|
||||
* @param string End tags
|
||||
* @return string Converted text
|
||||
*/
|
||||
private function _parseStyles( $opening_tag, &$start_tags, &$end_tags )
|
||||
protected function _parseStyles( $opening_tag, &$start_tags, &$end_tags )
|
||||
{
|
||||
$style_list = array(
|
||||
array('tag' => 'color' , 'rx' => '(?<![\w\-])color:\s*([^;]+);?' , 'match' => 1),
|
||||
@@ -858,14 +838,14 @@ class class_editor_module extends class_editor
|
||||
/**
|
||||
* RTE: Parse FONT tag
|
||||
*
|
||||
* @access private
|
||||
* @access protected
|
||||
* @param string Tag
|
||||
* @param string Text between opening and closing tag
|
||||
* @param string Opening tag complete
|
||||
* @param string Parse tag
|
||||
* @return string Converted text
|
||||
*/
|
||||
private function _parseFontTag( $tag, $between_text, $opening_tag, $parse_tag )
|
||||
protected function _parseFontTag( $tag, $between_text, $opening_tag, $parse_tag )
|
||||
{
|
||||
$font_tags = array( 'font' => 'face', 'size' => 'size', 'color' => 'color' );
|
||||
$start_tags = "";
|
||||
@@ -907,14 +887,14 @@ class class_editor_module extends class_editor
|
||||
/**
|
||||
* RTE: Simple tags
|
||||
*
|
||||
* @access private
|
||||
* @access protected
|
||||
* @param string Tag
|
||||
* @param string Text between opening and closing tag
|
||||
* @param string Opening tag complete
|
||||
* @param string Parse tag
|
||||
* @return string Converted text
|
||||
*/
|
||||
private function _parseSimpleTag( $tag, $between_text, $opening_tag, $parse_tag )
|
||||
protected function _parseSimpleTag( $tag, $between_text, $opening_tag, $parse_tag )
|
||||
{
|
||||
if ( ! $parse_tag )
|
||||
{
|
||||
@@ -927,14 +907,14 @@ class class_editor_module extends class_editor
|
||||
/**
|
||||
* RTE: Parse A HREF tag
|
||||
*
|
||||
* @access private
|
||||
* @access protected
|
||||
* @param string Tag
|
||||
* @param string Text between opening and closing tag
|
||||
* @param string Opening tag complete
|
||||
* @param string Parse tag
|
||||
* @return string Converted text
|
||||
*/
|
||||
private function _parseAnchorTag( $tag, $between_text, $opening_tag, $parse_tag='' )
|
||||
protected function _parseAnchorTag( $tag, $between_text, $opening_tag, $parse_tag='' )
|
||||
{
|
||||
$mytag = 'url';
|
||||
$href = $this->_getValueOfOption( 'href', $opening_tag );
|
||||
@@ -955,14 +935,14 @@ class class_editor_module extends class_editor
|
||||
/**
|
||||
* RTE: Recursively parse tags
|
||||
*
|
||||
* @access private
|
||||
* @access protected
|
||||
* @param string Tag
|
||||
* @param string Text between opening and closing tag
|
||||
* @param string Callback Function
|
||||
* @param string Parse tag
|
||||
* @return string Converted text
|
||||
*/
|
||||
private function _recurseAndParse( $tag, $text, $function, $parse_tag='' )
|
||||
protected function _recurseAndParse( $tag, $text, $function, $parse_tag='' )
|
||||
{
|
||||
//-----------------------------------------
|
||||
// INIT
|
||||
@@ -1159,12 +1139,12 @@ class class_editor_module extends class_editor
|
||||
/**
|
||||
* RTE: Extract option HTML
|
||||
*
|
||||
* @access private
|
||||
* @access protected
|
||||
* @param string Option
|
||||
* @param string Text
|
||||
* @return string Converted text
|
||||
*/
|
||||
private function _getValueOfOption( $option, $text )
|
||||
protected function _getValueOfOption( $option, $text )
|
||||
{
|
||||
if( $option == 'face' )
|
||||
{
|
||||
@@ -1224,11 +1204,11 @@ class class_editor_module extends class_editor
|
||||
/**
|
||||
* unhtml url: Removes < and >
|
||||
*
|
||||
* @access private
|
||||
* @access protected
|
||||
* @param array Matches from preg_replace_callback
|
||||
* @return string Converted text
|
||||
*/
|
||||
private function _unhtmlUrl( $matches=array() )
|
||||
protected function _unhtmlUrl( $matches=array() )
|
||||
{
|
||||
$url = stripslashes( $matches[3] );
|
||||
$type = stripslashes( $matches[1] ? $matches[1] : 'a href' );
|
||||
@@ -1243,12 +1223,12 @@ class class_editor_module extends class_editor
|
||||
/**
|
||||
* Converts color:rgb(x,x,x) to color:#xxxxxx
|
||||
*
|
||||
* @access private
|
||||
* @access protected
|
||||
* @param string rgb contents: x,x,x
|
||||
* @param string regex end
|
||||
* @return string Converted text
|
||||
*/
|
||||
private function _rgbToHex($matches)
|
||||
protected function _rgbToHex($matches)
|
||||
{
|
||||
$t = $matches[1];
|
||||
$t2 = $matches[2];
|
||||
|
||||
@@ -3,18 +3,18 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.1.4
|
||||
* IP.Board v3.2.3
|
||||
* Editor Library: Standard Class
|
||||
* Last Updated: $Date: 2010-05-25 10:50:21 -0400 (Tue, 25 May 2010) $
|
||||
* Last Updated: $Date: 2010-12-17 08:01:38 -0500 (Fri, 17 Dec 2010) $
|
||||
* </pre>
|
||||
*
|
||||
* @author $Author: matt $
|
||||
* @author $Author: ips_terabyte $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/community/board/license.html
|
||||
* @license This is NULLED!
|
||||
* @package IP.Board
|
||||
* @link http://www.invisionpower.com
|
||||
* @link http://hatynka.in
|
||||
* @since 9th March 2005 11:03
|
||||
* @version $Revision: 6387 $
|
||||
* @version $Revision: 7445 $
|
||||
*/
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -5,6 +5,6 @@
|
||||
<hr>
|
||||
You have reached this page in error, please use your back button to return to the forum.
|
||||
<hr>
|
||||
<a href="http://www.invisionboard.com/">IP.Board</a>
|
||||
<a href="http://www.invisionpower.com">IP.Board</a>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user