phpBB

Code Changes

File: includes/mcp/mcp_main.php

  Unmodified   Added   Modified   Removed
Line 1049Line 1049

$redirect = $request->variable('redirect', build_url(array('action', 'quickmod')));
$forum_id = $request->variable('f', 0);


$redirect = $request->variable('redirect', build_url(array('action', 'quickmod')));
$forum_id = $request->variable('f', 0);

 
	$topic_id = 0;


$s_hidden_fields = array(
'post_id_list' => $post_ids,


$s_hidden_fields = array(
'post_id_list' => $post_ids,

Line 1121Line 1122
				$soft_delete_reason
));
}

				$soft_delete_reason
));
}


$topic_id = $request->variable('t', 0);

 

// Return links
$return_link = array();


// Return links
$return_link = array();

Line 1152Line 1151
		$topic_id_list = array();
while ($row = $db->sql_fetchrow($result))
{

		$topic_id_list = array();
while ($row = $db->sql_fetchrow($result))
{

			$topic_id_list[] = $row['topic_id'];

			$topic_id_list[] = $topic_id = $row['topic_id'];

		}
$affected_topics = count($topic_id_list);
$db->sql_freeresult($result);

		}
$affected_topics = count($topic_id_list);
$db->sql_freeresult($result);

Line 1182Line 1181

$deleted_topics = ($row = $db->sql_fetchrow($result)) ? ($affected_topics - $row['topics_left']) : $affected_topics;
$db->sql_freeresult($result);


$deleted_topics = ($row = $db->sql_fetchrow($result)) ? ($affected_topics - $row['topics_left']) : $affected_topics;
$db->sql_freeresult($result);


$topic_id = $request->variable('t', 0);

 

// Return links
$return_link = array();


// Return links
$return_link = array();

Line 1203Line 1200
			}
else
{

			}
else
{

 
				// Remove any post id anchor
if ($anchor_pos = (strrpos($redirect, '#p')) !== false)
{
$redirect = substr($redirect, 0, $anchor_pos);
}


				$success_msg = $user->lang['POST_DELETED_SUCCESS'];
}
}

				$success_msg = $user->lang['POST_DELETED_SUCCESS'];
}
}

Line 1260Line 1263
		confirm_box(false, $l_confirm, build_hidden_fields($s_hidden_fields), 'confirm_delete_body.html');
}


		confirm_box(false, $l_confirm, build_hidden_fields($s_hidden_fields), 'confirm_delete_body.html');
}


	$redirect = $request->variable('redirect', "index.$phpEx");

 
	$redirect = reapply_sid($redirect);

if (!$success_msg)

	$redirect = reapply_sid($redirect);

if (!$success_msg)

Line 1564Line 1566
				// Copy Attachments
if ($row['post_attachment'])
{

				// Copy Attachments
if ($row['post_attachment'])
{

					$sql = 'SELECT * FROM ' . ATTACHMENTS_TABLE . "
WHERE post_msg_id = {$row['post_id']}
AND topic_id = $topic_id
AND in_message = 0";


					$sql = 'SELECT * FROM ' . ATTACHMENTS_TABLE . '
WHERE post_msg_id = ' . (int) $row['post_id'] . '
AND topic_id = ' . (int) $topic_id . '
AND in_message = 0
ORDER BY attach_id ASC';

					$result = $db->sql_query($sql);

$sql_ary = array();

					$result = $db->sql_query($sql);

$sql_ary = array();