Location: PHPKode > projects > Content*Builder > modules/forum/messageEdit.inc.php
<?php

/*
* messageEdit.inc.php
*
* @version $Id: messageEdit.inc.php,v 1.2 2004/05/26 20:30:01 cb_fog Exp $
* @copyright 2003 
*/
if(empty($messagePostSubmit)) {
	$actualMessage = $nestedSet_message->getNode($_REQUEST[messageID], true);
	if(($actualMessage != false) && ($actualMessage[userID] == $_SESSION[community_uid])) {
		
		$actualMessage[original] = $forumObj->getEditableContent($actualMessage[original]);
		$actualMessage[title]    = $forumObj->getEditableContent($actualMessage[title]);
				
		$tpl->assign("ACTION", $action);
		$tpl->assign(
			array ( "messagePostText"    => $actualMessage[original],
					"messagePostSubject" => $actualMessage[title]
			)
		);
		$tpl->assign("messagePostID", $_REQUEST[messageID]);
		require_once($actualModuleDir."messagePost.inc.php");
	}
} else {
	if(!empty($_SESSION[community_uid])) {
		$messageAdditionalArr = array (
			"title"      => $_REQUEST[messagePostSubject],
			"message"    => $_REQUEST[messagePostText]
		);
		
		$forumObj->updateMessage($_REQUEST[messageID], $messageAdditionalArr);
	}
	$actualMessage = $nestedSet_message->getNode($_REQUEST[messageID], true);
	$_REQUEST[threadID] = $actualMessage[root];
	require_once($actualModuleDir."showThread.inc.php");
}

	
?>
Return current item: Content*Builder