Vergleich inc/plugins/akismet.php - 1.4.0 - 1.4.2

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

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * $Id: akismet.php 3995 2008-07-07 09:32:32Z Tikitiki $

 * $Id: akismet.php 4178 2008-09-06 16:39:10Z Tikitiki $

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

Zeile 685Zeile 685
	
$page->add_breadcrumb_item($lang->akismet);


	
$page->add_breadcrumb_item($lang->akismet);


	if($mybb->input['delete_all'])

	if($mybb->input['delete_all'] && $mybb->request_method == "post")

	{	
// User clicked no
if($mybb->input['no'])

	{	
// User clicked no
if($mybb->input['no'])

Zeile 710Zeile 710
		}
}


		}
}


	if($mybb->input['unmark'])

	if($mybb->input['unmark'] && $mybb->request_method == "post")

	{
$unmark = $mybb->input['akismet'];


	{
$unmark = $mybb->input['akismet'];


Zeile 721Zeile 721
		}

$posts_in = '';

		}

$posts_in = '';

 
		$comma = '';

		foreach($unmark as $key => $val)
{

		foreach($unmark as $key => $val)
{

			$posts_in .= $comma.$key;

			$posts_in .= $comma.intval($key);

			$comma = ',';
}

			$comma = ',';
}

		$comma = '';

 
	
$query = $db->simple_select("posts", "pid, tid", "pid IN ({$posts_in}) AND replyto = '0'");
while($post = $db->fetch_array($query))

	
$query = $db->simple_select("posts", "pid, tid", "pid IN ({$posts_in}) AND replyto = '0'");
while($post = $db->fetch_array($query))

Zeile 784Zeile 784
			");
$count = $db->fetch_array($query);
$count['posts'] = $count['threads'] + $count['replies'];

			");
$count = $db->fetch_array($query);
$count['posts'] = $count['threads'] + $count['replies'];

		

		

			$update_count = array(
"posts" => intval($count['posts'])+1,
"threads" => intval($count['threads'])+1,

			$update_count = array(
"posts" => intval($count['posts'])+1,
"threads" => intval($count['threads'])+1,

Zeile 804Zeile 804
				AND visible='1' OR pid = '{$post['pid']}'
");
$treplies = $db->fetch_field($query, 'replies');

				AND visible='1' OR pid = '{$post['pid']}'
");
$treplies = $db->fetch_field($query, 'replies');

	
$query = $db->query("
SELECT u.uid, u.username, p.username AS postusername, p.dateline
FROM ".TABLE_PREFIX."posts p
LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid=p.uid)

	
$query = $db->query("
SELECT u.uid, u.username, p.username AS postusername, p.dateline
FROM ".TABLE_PREFIX."posts p
LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid=p.uid)

				WHERE p.tid='{$post['tid']}' AND p.visible='1' OR p.pid = '{$post['pid']}'
ORDER BY p.dateline DESC
LIMIT 1"

				WHERE p.tid='{$post['tid']}' AND p.visible='1' OR p.pid = '{$post['pid']}'
ORDER BY p.dateline DESC
LIMIT 1"

Zeile 826Zeile 826
			$firstpost = $db->fetch_array($query);

if(!$firstpost['username'])

			$firstpost = $db->fetch_array($query);

if(!$firstpost['username'])

			{

			{

				$firstpost['username'] = $firstpost['postusername'];
}
if(!$lastpost['username'])

				$firstpost['username'] = $firstpost['postusername'];
}
if(!$lastpost['username'])

Zeile 880Zeile 880
		admin_redirect("index.php?module=forum/akismet");
}


		admin_redirect("index.php?module=forum/akismet");
}


	if($mybb->input['delete'])

	if($mybb->input['delete'] && $mybb->request_method == "post")

	{
$deletepost = $mybb->input['akismet'];


	{
$deletepost = $mybb->input['akismet'];


Zeile 891Zeile 891
		}

$posts_in = '';

		}

$posts_in = '';

 
		$comma = '';

		foreach($deletepost as $key => $val)
{

		foreach($deletepost as $key => $val)
{

			$posts_in .= $comma.$key;

			$posts_in .= $comma.intval($key);

			$comma = ',';
}


			$comma = ',';
}