Version 3.4.8

This commit is contained in:
Neo committed 2025-12-19 00:42:42 -08:00
1 parent b45ea0dffb
commit c603205a25
1398 files changed
+36675 -31023

No files matched your search

+1 -1
View File
@@ -5,6 +5,6 @@
<hr>
You have reached this page in error, please use your back button to return to the forum.
<hr>
IP.Board
<a href="http://www.invisionpower.com">IP.Board</a>
</body>
</html>
+26 -10
View File
@@ -3,17 +3,17 @@
/**
* <pre>
* Invision Power Services
* IP.Board v3.4.6
* IP.Board v3.4.8
* Remote API Server
* Last Updated: $Date: 2013-03-21 17:38:09 -0400 (Thu, 21 Mar 2013) $
* Last Updated: $Date: 2014-12-31 17:46:06 -0500 (Wed, 31 Dec 2014) $
* </pre>
*
* @author $Author: AndyMillne $
* @author $Author: rashbrook $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license http://www.invisionpower.com/company/standards.php#license
* @package IP.Board
* @link http://www.invisionpower.com
* @version $Rev: 12109 $
* @version $Rev: 12581 $
*
*/
@@ -341,7 +341,7 @@ class API_Server
* @param string $post_content Posted content
* @return string xml
*/
public function postTopic( $api_key, $api_module, $member_field, $member_key, $forum_id, $topic_title, $post_content )
public function postTopic( $api_key, $api_module, $member_field, $member_key, $forum_id, $topic_title, $post_content, $post_htmlstate )
{
//-----------------------------------------
// INIT
@@ -353,6 +353,7 @@ class API_Server
$member_key = IPSText::parseCleanValue( $member_key );
$topic_title = IPSText::parseCleanValue( $topic_title );
$forum_id = intval( $forum_id );
$post_htmlstate = ( intval( $post_htmlstate ) > 0 ) ? 1 : 0;
$UNCLEANED_post_content = $post_content;
//-----------------------------------------
@@ -403,12 +404,19 @@ class API_Server
$_postClass->setIsPreview( false );
$_postClass->setForumData( $this->registry->getClass('class_forums')->forum_by_id[ $forum_id ] );
$_postClass->setForumID( $forum_id );
$_postClass->setPostContent( $UNCLEANED_post_content );
if ( $post_htmlstate == 1 )
{
$_postClass->setPostContentPreFormatted( $UNCLEANED_post_content );
}
else
{
$_postClass->setPostContent( $UNCLEANED_post_content );
}
$_postClass->setAuthor( $member['member_id'] );
$_postClass->setPublished( true );
$_postClass->setSettings( array( 'enableSignature' => 1,
'enableEmoticons' => 1,
'post_htmlstatus' => 0,
'post_htmlstatus' => $post_htmlstate,
'enableTracker' => 0 ) );
$_postClass->setTopicTitle( $topic_title );
@@ -448,7 +456,7 @@ class API_Server
* @param string $post_content Posted content
* @return string xml
*/
public function postReply( $api_key, $api_module, $member_field, $member_key, $topic_id, $post_content )
public function postReply( $api_key, $api_module, $member_field, $member_key, $topic_id, $post_content, $post_htmlstate )
{
//-----------------------------------------
// INIT
@@ -459,6 +467,7 @@ class API_Server
$member_field = IPSText::parseCleanValue( $member_field );
$member_key = IPSText::parseCleanValue( $member_key );
$topic_id = intval( $topic_id );
$post_htmlstate = ( intval( $post_htmlstate ) > 0 ) ? 1 : 0;
$UNCLEANED_post_content = $post_content;
//-----------------------------------------
@@ -517,12 +526,19 @@ class API_Server
$_postClass->setForumID( $topic['forum_id'] );
$_postClass->setTopicID( $topic_id );
$_postClass->setTopicData( $topic );
$_postClass->setPostContent( $UNCLEANED_post_content );
if ( $post_htmlstate == 1 )
{
$_postClass->setPostContentPreFormatted( $UNCLEANED_post_content );
}
else
{
$_postClass->setPostContent( $UNCLEANED_post_content );
}
$_postClass->setAuthor( $member['member_id'] );
$_postClass->setPublished( true );
$_postClass->setSettings( array( 'enableSignature' => 1,
'enableEmoticons' => 1,
'post_htmlstatus' => 0,
'post_htmlstatus' => $post_htmlstate,
'enableTracker' => 0 ) );
/**
@@ -3,7 +3,7 @@
/**
* <pre>
* Invision Power Services
* IP.Board v3.4.6
* IP.Board v3.4.8
* Remote API Server configuration
* Last Updated: $Date: 2012-05-10 16:10:13 -0400 (Thu, 10 May 2012) $
* </pre>
@@ -5,6 +5,6 @@
<hr>
You have reached this page in error, please use your back button to return to the forum.
<hr>
IP.Board
<a href="http://www.invisionpower.com">IP.Board</a>
</body>
</html>
@@ -3,17 +3,17 @@
/**
* <pre>
* Invision Power Services
* IP.Board v3.4.6
* IP.Board v3.4.8
* Defines the allowed methods a remote server may request and the in/out parameters
* Last Updated: $Date: 2013-03-21 17:38:09 -0400 (Thu, 21 Mar 2013) $
* Last Updated: $Date: 2014-12-31 17:46:06 -0500 (Wed, 31 Dec 2014) $
* </pre>
*
* @author $Author: AndyMillne $
* @author $Author: rashbrook $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
* @license http://www.invisionpower.com/company/standards.php#license
* @package IP.Board
* @link http://www.invisionpower.com
* @version $Rev: 12109 $
* @version $Rev: 12581 $
*
*/
@@ -112,6 +112,7 @@ $ALLOWED_METHODS['postReply'] = array(
'member_key' => 'string',
'topic_id' => 'integer',
'post_content' => 'string',
'post_htmlstate' => 'integer',
),
'out' => array(
'response' => 'xmlrpc'
@@ -127,6 +128,7 @@ $ALLOWED_METHODS['postTopic'] = array(
'forum_id' => 'integer',
'topic_title' => 'string',
'post_content' => 'string',
'post_htmlstate' => 'integer',
),
'out' => array(
'response' => 'xmlrpc'