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

+28 -21
View File
@@ -2,26 +2,16 @@
/*
+---------------------------------------------------------------------------
| Invision Power Board 2.2.2
| Invision Power KERNEL
| Invision Power Board
| ========================================
| by Matthew Mecham
| (c) 2006 Invision Power Services
| http://www.invisionpower.com
| =============================================
| Web: http://www.invisionboard.com
| http://www.ibresource.ru/products/invisionpowerboard/
| Time: Monday 05th of March 2007 10:10:55 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)
| INVISION POWER BOARD IS NOT FREE SOFTWARE!
| http://www.invisionboard.com
+---------------------------------------------------------------------------
|
| > API SERVER: Send and receive API data
@@ -144,6 +134,13 @@ class class_api_server
{
if ( ! $incoming )
{
# PHP Bug: http://bugs.php.net/bug.php?id=41293
if( phpversion() == "5.2.2" )
{
$GLOBALS['HTTP_RAW_POST_DATA'] = file_get_contents( "php://input" );
}
$incoming = isset( $GLOBALS['HTTP_RAW_POST_DATA'] ) ? $GLOBALS['HTTP_RAW_POST_DATA'] : '';
}
@@ -153,6 +150,8 @@ class class_api_server
$this->api_decode_request( $incoming );
$this->raw_request = $incoming;
$api_call = explode( ".", $this->method_name );
if ( count($api_call) > 1 )
@@ -270,7 +269,7 @@ class class_api_server
// Return false
//-----------------------------------------
$this->api_send_error( 100, 'No methodRequest function -' . htmlspecialchars( $this->method_name ) . 'defined / found' );
$this->api_send_error( 100, 'No methodRequest function -' . htmlspecialchars( $this->method_name ) . ' defined / found' );
exit();
}
}
@@ -483,9 +482,11 @@ class class_api_server
// INIT
//-----------------------------------------
$_params = $this->xmlrpc->xml_rpc_get_params( $raw );
$this->method_name = $this->xmlrpc->xml_rpc_get_method_name( $raw );
$this->params = array();
$_params = $this->xmlrpc->xml_rpc_get_params( $raw );
$this->method_name = $this->xmlrpc->xml_rpc_get_method_name( $raw );
$this->params = array();
$this->_raw_in_data = var_export( $raw, TRUE );
$this->_raw_out_data = var_export( $_params, TRUE );
//-----------------------------------------
// Debug?
@@ -505,7 +506,7 @@ class class_api_server
{
foreach( $_params[0] as $k => $v )
{
if ( $k == $this->serialized_key )
if ( $k != '' && $k == $this->serialized_key )
{
$_tmp = $this->decode_base64_array( $v );
@@ -514,7 +515,7 @@ class class_api_server
$this->params = array_merge( $this->params, $_tmp );
}
}
else if ( $k == $this->cookie_serialized_key )
else if ( $k != '' && $k == $this->cookie_serialized_key )
{
$_cookies = $this->decode_base64_array( $v );
@@ -537,7 +538,6 @@ class class_api_server
}
}
}
}
else
{
@@ -581,7 +581,14 @@ class class_api_server
*/
function decode_base64_array( $data )
{
return unserialize( base64_decode( $data ) );
if ( ! is_array( $data ) )
{
return unserialize( base64_decode( $data ) );
}
else
{
return $data;
}
}