Vergleich archive/index.php - 1.8.4 - 1.8.30

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 26Zeile 26
		if($announcement['fid'] != -1)
{
$forum = get_forum($announcement['fid']);

		if($announcement['fid'] != -1)
{
$forum = get_forum($announcement['fid']);

			if(!$forum['fid'] || $forum['password'] != '')

			if(!$forum['fid'] || $forum['password'] !== '')

			{
archive_error($lang->error_invalidforum);
}

			{
archive_error($lang->error_invalidforum);
}

Zeile 44Zeile 44
		$announcement['subject'] = htmlspecialchars_uni($parser->parse_badwords($announcement['subject']));

$parser_options = array(

		$announcement['subject'] = htmlspecialchars_uni($parser->parse_badwords($announcement['subject']));

$parser_options = array(

			"allow_html" => $announcement['allowhtml'],

			"allow_html" => $mybb->settings['announcementshtml'] && $announcement['allowhtml'],

			"allow_mycode" => $announcement['allowmycode'],
"allow_smilies" => $announcement['allowsmilies'],
"allow_imgcode" => 1,

			"allow_mycode" => $announcement['allowmycode'],
"allow_smilies" => $announcement['allowsmilies'],
"allow_imgcode" => 1,

Zeile 55Zeile 55

$announcement['message'] = $parser->parse_message($announcement['message'], $parser_options);



$announcement['message'] = $parser->parse_message($announcement['message'], $parser_options);


		$profile_link = build_profile_link($announcement['username'], $announcement['uid']);

		$profile_link = build_profile_link(htmlspecialchars_uni($announcement['username']), $announcement['uid']);


// Build the navigation
add_breadcrumb($announcement['subject']);


// Build the navigation
add_breadcrumb($announcement['subject']);

Zeile 80Zeile 80

// Fetch the forum this thread is in
$forum = get_forum($thread['fid']);


// Fetch the forum this thread is in
$forum = get_forum($thread['fid']);

		if(!$forum['fid'] || $forum['password'] != '')

		if(!$forum['fid'] || $forum['password'] !== '')

		{
archive_error($lang->error_invalidforum);
}

		{
archive_error($lang->error_invalidforum);
}

Zeile 144Zeile 144

$pids = array();
// Fetch list of post IDs to be shown


$pids = array();
// Fetch list of post IDs to be shown

		$query = $db->simple_select("posts", "pid", "tid='{$id}' AND visible='1'", array('order_by' => 'dateline', 'limit_start' => $start, 'limit' => $perpage));

		$query = $db->simple_select("posts", "pid", "tid='{$id}' AND visible='1'", array('order_by' => 'dateline, pid', 'limit_start' => $start, 'limit' => $perpage));

		while($post = $db->fetch_array($query))
{
$pids[$post['pid']] = $post['pid'];

		while($post = $db->fetch_array($query))
{
$pids[$post['pid']] = $post['pid'];

Zeile 175Zeile 175
			FROM ".TABLE_PREFIX."posts p
LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid=p.uid)
WHERE p.pid IN ({$pids})

			FROM ".TABLE_PREFIX."posts p
LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid=p.uid)
WHERE p.pid IN ({$pids})

			ORDER BY p.dateline

			ORDER BY p.dateline, p.pid

		");
while($post = $db->fetch_array($query))
{

		");
while($post = $db->fetch_array($query))
{

Zeile 216Zeile 216
			{
$post['username'] = $post['userusername'];
}

			{
$post['username'] = $post['userusername'];
}

			$post['username'] = build_profile_link($post['username'], $post['uid']);

			$post['username'] = build_profile_link(htmlspecialchars_uni($post['username']), $post['uid']);


$plugins->run_hooks("archive_thread_post");



$plugins->run_hooks("archive_thread_post");


Zeile 256Zeile 256
		build_forum_breadcrumb($forum['fid'], 1);

// No threads and not a category? Error!

		build_forum_breadcrumb($forum['fid'], 1);

// No threads and not a category? Error!

		if(($threadcount < 1 || $forumpermissions['canviewthreads'] != 1) && $forum['type'] != 'c')

		if($forum['type'] != 'c')

		{

		{

			archive_header(strip_tags($forum['name']), $forum['name'], $mybb->settings['bburl']."/".get_forum_link($id, $page)."");
archive_error($lang->error_nothreads);










			if($forumpermissions['canviewthreads'] != 1)
{
archive_header(strip_tags($forum['name']), $forum['name'], $mybb->settings['bburl']."/".get_forum_link($id, $page)."");
archive_error($lang->error_nopermission);
}

if($threadcount < 1 && $forumpermissions['canviewthreads'] == 1)
{
archive_header(strip_tags($forum['name']), $forum['name'], $mybb->settings['bburl']."/".get_forum_link($id, $page)."");
archive_error($lang->error_nothreads);
}

		}

// Build the archive header.

		}

// Build the archive header.

Zeile 456Zeile 465
/**
* Gets a list of forums and possibly subforums.
*

/**
* Gets a list of forums and possibly subforums.
*

* @param int The parent forum to get the childforums for.

* @param int $pid The parent forum to get the childforums for.

* @return array Array of information regarding the child forums of this parent forum
*/
function build_archive_forumbits($pid=0)

* @return array Array of information regarding the child forums of this parent forum
*/
function build_archive_forumbits($pid=0)