Vergleich editpost.php - 1.2.7 - 1.2.11

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/eula.html
*

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/eula.html
*

 * $Id: editpost.php 3055 2007-05-13 15:01:15Z Tikitiki $

 * $Id: editpost.php 3478 2007-11-15 04:11:36Z Tikitiki $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 127Zeile 127
}

// Password protected forums

}

// Password protected forums

check_forum_password($fid, $forum['password']);

check_forum_password($forum['parentlist']);


if(!$mybb->input['attachmentaid'] && ($mybb->input['newattachment'] || ($mybb->input['action'] == "do_editpost" && $mybb->input['submit'] && $_FILES['attachment'])))
{


if(!$mybb->input['attachmentaid'] && ($mybb->input['newattachment'] || ($mybb->input['action'] == "do_editpost" && $mybb->input['submit'] && $_FILES['attachment'])))
{

Zeile 423Zeile 423
			"pid" => $mybb->input['pid'],
"subject" => $mybb->input['subject'],
"icon" => $mybb->input['icon'],

			"pid" => $mybb->input['pid'],
"subject" => $mybb->input['subject'],
"icon" => $mybb->input['icon'],

			"uid" => $mybb->user['uid'],
"username" => $mybb->user['username'],

			"uid" => $post['uid'],


			"edit_uid" => $mybb->user['uid'],
"message" => $mybb->input['message'],
);

			"edit_uid" => $mybb->user['uid'],
"message" => $mybb->input['message'],
);

	








if(!$mybb->input['previewpost'])
{
$post['uid'] = $mybb->user['uid'];
$post['username'] = $mybb->user['username'];
}


		// Set up the post options from the input.
$post['options'] = array(
"signature" => $mybb->input['postoptions']['signature'],

		// Set up the post options from the input.
$post['options'] = array(
"signature" => $mybb->input['postoptions']['signature'],

Zeile 475Zeile 480
	{
// Figure out the poster's other information.
$query = $db->query("

	{
// Figure out the poster's other information.
$query = $db->query("

			SELECT u.*, f.*

			SELECT u.*, f.*, p.dateline

			FROM ".TABLE_PREFIX."users u
LEFT JOIN ".TABLE_PREFIX."userfields f ON (f.ufid=u.uid)

			FROM ".TABLE_PREFIX."users u
LEFT JOIN ".TABLE_PREFIX."userfields f ON (f.ufid=u.uid)

			WHERE u.uid='".$post['uid']."'


			LEFT JOIN ".TABLE_PREFIX."posts p ON (p.uid=u.uid)
WHERE u.uid='{$post['uid']}' AND p.pid='{$pid}'

			LIMIT 1
");
$postinfo = $db->fetch_array($query);

			LIMIT 1
");
$postinfo = $db->fetch_array($query);

Zeile 490Zeile 496
		}

// Set the values of the post info array.

		}

// Set the values of the post info array.

		$postinfo['username'] = $postinfo['username'];

 
		$postinfo['userusername'] = $postinfo['username'];

		$postinfo['userusername'] = $postinfo['username'];

		$postinfo['uid'] = $postinfo['uid'];

 
		$postinfo['message'] = $previewmessage;
$postinfo['subject'] = $subject;
$postinfo['icon'] = $icon;
$postinfo['smilieoff'] = $postoptions['disablesmilies'];

		$postinfo['message'] = $previewmessage;
$postinfo['subject'] = $subject;
$postinfo['icon'] = $icon;
$postinfo['smilieoff'] = $postoptions['disablesmilies'];

		$postinfo['dateline'] = time();

 

$postbit = build_postbit($postinfo, 1);
eval("\$preview = \"".$templates->get("previewpost")."\";");


$postbit = build_postbit($postinfo, 1);
eval("\$preview = \"".$templates->get("previewpost")."\";");