Version 2.2.0 RC-1

This commit is contained in:
Neo committed 2025-12-19 00:22:37 -08:00
1 parent f73f8bff6d
commit 22f1b963ee
1034 files changed
+178610 -70897

No files matched your search

+25 -26
View File
@@ -2,28 +2,18 @@
/*
+--------------------------------------------------------------------------
| Invision Power Board 2.1.7
| Invision Power Board
| =============================================
| by Matthew Mecham
| (c) 2001 - 2005 Invision Power Services, Inc.
| (c) 2001 - 2006 Invision Power Services, Inc.
| http://www.invisionpower.com
| =============================================
| Web: http://www.invisionboard.com
| http://www.ibresource.ru/products/invisionpowerboard/
| Time: Tuesday 18th of July 2006 05:56:00 PM
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
| 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: 2005-10-24 22:17:00 +0100 (Mon, 24 Oct 2005) $
| > $Revision: 64 $
| > $Author: bfarber $
| > $Date: 2006-09-22 11:28:54 +0100 (Fri, 22 Sep 2006) $
| > $Revision: 567 $
| > $Author: matt $
+---------------------------------------------------------------------------
|
| > Posting Editor
@@ -88,6 +78,13 @@
* @version 2.1
* @since 2.1.0
*/
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();
}
class class_editor
{
/**
@@ -188,14 +185,14 @@ class class_editor
* @param string Raw text
* @return string Converted text
*/
function unhtml_emoid( $emoid )
function unhtml_emoid( $matches=array() )
{
$emoid = stripslashes( $emoid );
$emoid = stripslashes( $matches[2] );
$emoid = str_replace( '<', '&#60;', $emoid );
$emoid = str_replace( '>', '&#62;', $emoid );
return $emoid;
return 'emoid="' . $emoid . '"';
}
/*-------------------------------------------------------------------------*/
@@ -208,15 +205,15 @@ class class_editor
* @param string Raw text
* @return string Converted text
*/
function html_emoid( $emoid )
function html_emoid( $matches=array() )
{
$emoid = stripslashes( $emoid );
$emoid = stripslashes( $matches[2] );
$emoid = str_replace( '&#60;', '<', $emoid );
$emoid = str_replace( '&#62;', '>', $emoid );
$emoid = str_replace( '&quot;', '-', $emoid );
return $emoid;
return ' ' . $emoid . ' ';
}
/*-------------------------------------------------------------------------*/
@@ -230,10 +227,10 @@ class class_editor
* @param string URL
* @return string Converted text
*/
function unhtml_url( $type='a href', $url='' )
function unhtml_url( $matches=array() )
{
$url = stripslashes( $url );
$type = stripslashes( $type );
$url = stripslashes( $matches[3] );
$type = stripslashes( $matches[1] ? $matches[1] : 'a href' );
$url = str_replace( '<', '&lt;', $url );
$url = str_replace( '>', '&gt;', $url );
@@ -255,9 +252,11 @@ class class_editor
*/
function _rgb_to_hex($t, $t2)
{
$t = $matches[1];
$t2 = $matches[2];
$tmp = array_map( "trim", explode( ",", $t ) );
//print sprintf("#%02X%02X%02X".$t2, intval($tmp[0]), intval($tmp[1]), intval($tmp[2]) );
return sprintf("#%02X%02X%02X".$t2, intval($tmp[0]), intval($tmp[1]), intval($tmp[2]) );
return 'color: ' . sprintf("#%02X%02X%02X".$t2, intval($tmp[0]), intval($tmp[1]), intval($tmp[2]) );
}
/*-------------------------------------------------------------------------*/