Vergleich inc/datahandlers/post.php - 1.2.10 - 1.2.14

  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: post.php 3508 2007-11-23 16:10:16Z Tikitiki $

 * $Id: post.php 4005 2008-07-10 17:53:25Z Tikitiki $

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

Zeile 776Zeile 776
				$cache->updatemailqueue();
}
$thread_update = array("replies" => "+1");

				$cache->updatemailqueue();
}
$thread_update = array("replies" => "+1");

 		 
$query = $db->simple_select(TABLE_PREFIX."attachments", "COUNT(aid) AS attachmentcount", "pid='{$this->pid}' AND visible='1'");
$attachmentcount = $db->fetch_field($query, "attachmentcount");

$thread_update['attachmentcount'] = "+{$attachmentcount}";

 

// Update forum count
update_thread_counters($post['tid'], $thread_update);


// Update forum count
update_thread_counters($post['tid'], $thread_update);

Zeile 822Zeile 817
		if($this->method == "insert" || array_key_exists('uid', $thread))
{
$this->verify_author();

		if($this->method == "insert" || array_key_exists('uid', $thread))
{
$this->verify_author();

		}


		}


		if($this->method == "insert" || array_key_exists('subject', $thread))

		if($this->method == "insert" || array_key_exists('subject', $thread))

		{

		{

			$this->verify_subject();
}

if($this->method == "insert" || array_key_exists('message', $thread))

			$this->verify_subject();
}

if($this->method == "insert" || array_key_exists('message', $thread))

		{

		{

			$this->verify_message();
$this->verify_image_count();

			$this->verify_message();
$this->verify_image_count();

		}

		}


if($this->method == "insert" || array_key_exists('dateline', $thread))
{
$this->verify_dateline();


if($this->method == "insert" || array_key_exists('dateline', $thread))
{
$this->verify_dateline();

		}


		}


		if($this->method == "insert" || array_key_exists('icon', $thread))

		if($this->method == "insert" || array_key_exists('icon', $thread))

		{

		{

			$this->verify_post_icon();
}

if($this->method == "insert" || array_key_exists('options', $thread))

			$this->verify_post_icon();
}

if($this->method == "insert" || array_key_exists('options', $thread))

		{

		{

			$this->verify_options();
}

			$this->verify_options();
}





		$plugins->run_hooks_by_ref("datahandler_post_validate_thread", $this);

// We are done validating, return.
$this->set_validated(true);

		$plugins->run_hooks_by_ref("datahandler_post_validate_thread", $this);

// We are done validating, return.
$this->set_validated(true);

		if(count($this->get_errors()) > 0)

		if(count($this->get_errors()) > 0)

		{
return false;
}

		{
return false;
}

Zeile 902Zeile 897
			if(($forum['modthreads'] == "yes" || $forum['modposts'] == "yes") && is_moderator($thread['fid'], "", $thread['uid']) != "yes")
{
$visible = 0;

			if(($forum['modthreads'] == "yes" || $forum['modposts'] == "yes") && is_moderator($thread['fid'], "", $thread['uid']) != "yes")
{
$visible = 0;

			}

			}

			else
{
$visible = 1;

			else
{
$visible = 1;

Zeile 911Zeile 906

// Have a post ID but not a thread ID - fetch thread ID
if($thread['pid'] && !$thread['tid'])


// Have a post ID but not a thread ID - fetch thread ID
if($thread['pid'] && !$thread['tid'])

		{

		{

			$query = $db->simple_select(TABLE_PREFIX."posts", "tid", "pid='{$thread['pid']}");
$thread['tid'] = $db->fetch_field($query, "tid");
}

			$query = $db->simple_select(TABLE_PREFIX."posts", "tid", "pid='{$thread['pid']}");
$thread['tid'] = $db->fetch_field($query, "tid");
}

Zeile 1041Zeile 1036

// Execute moderation options.
if($newstick && $newclosed)


// Execute moderation options.
if($newstick && $newclosed)

				{

				{

					$sep = ",";
}
if($newstick || $newclosed)

					$sep = ",";
}
if($newstick || $newclosed)

Zeile 1301Zeile 1296
			$this->post_update_data['edituid'] = intval($post['edit_uid']);
$this->post_update_data['edittime'] = time();
}

			$this->post_update_data['edituid'] = intval($post['edit_uid']);
$this->post_update_data['edittime'] = time();
}



		

		$plugins->run_hooks_by_ref("datahandler_post_update", $this);

$db->update_query(TABLE_PREFIX."posts", $this->post_update_data, "pid='".intval($post['pid'])."'");

		$plugins->run_hooks_by_ref("datahandler_post_update", $this);

$db->update_query(TABLE_PREFIX."posts", $this->post_update_data, "pid='".intval($post['pid'])."'");