Version 3.4.8
This commit is contained in:
1 parent
b45ea0dffb
commit
c603205a25
1398 files changed
+36675
-31023
No files matched your search
@@ -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 ) );
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user