Vergleich archive/index.php - 1.6.0 - 1.6.8

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * $Id: index.php 5125 2010-07-27 07:28:03Z RyanGordon $

 * $Id: index.php 5790 2012-04-19 13:52:50Z Tomm $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 91Zeile 91
		if($forumpermissions['canview'] != 1 || $forumpermissions['canviewthreads'] != 1)
{
archive_error_no_permission();

		if($forumpermissions['canview'] != 1 || $forumpermissions['canviewthreads'] != 1)
{
archive_error_no_permission();

 
		}

if($thread['visible'] != 1)
{
if(is_moderator($forum['fid']))
{
archive_error($lang->sprintf($lang->error_unapproved_thread, $mybb->settings['bburl']."/".get_thread_link($thread['tid'], $page)));
}
else
{
archive_error($lang->error_invalidthread);
}

		}

if($forumpermissions['canonlyviewownthreads'] == 1 && $thread['uid'] != $mybb->user['uid'])
{
archive_error_no_permission();

		}

if($forumpermissions['canonlyviewownthreads'] == 1 && $thread['uid'] != $mybb->user['uid'])
{
archive_error_no_permission();

		}


		}


		check_forum_password_archive($forum['fid']);

// Build the navigation
build_forum_breadcrumb($forum['fid'], 1);
add_breadcrumb($thread['subject']);


		check_forum_password_archive($forum['fid']);

// Build the navigation
build_forum_breadcrumb($forum['fid'], 1);
add_breadcrumb($thread['subject']);


		archive_header($thread['subject'], $thread['subject'], $mybb->settings['bburl']."/".get_thread_link($thread['tid']));

		archive_header($thread['subject'], $thread['subject'], $mybb->settings['bburl']."/".get_thread_link($thread['tid'], $page));


$plugins->run_hooks("archive_thread_start");



$plugins->run_hooks("archive_thread_start");


Zeile 118Zeile 130
			$page = 1;
}
if($page)

			$page = 1;
}
if($page)

		{

		{

			$start = ($page-1) * $perpage;
}
else

			$start = ($page-1) * $perpage;
}
else

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

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

		}






		}

if(empty($pids))
{
archive_error($lang->error_invalidthread);
}

		
archive_multipage($postcount, $perpage, $page, "{$base_url}thread-$id");


		
archive_multipage($postcount, $perpage, $page, "{$base_url}thread-$id");


Zeile 238Zeile 255
		// No threads and not a category? Error!
if($threadcount < 1 && $forum['type'] != 'c')
{

		// No threads and not a category? Error!
if($threadcount < 1 && $forum['type'] != 'c')
{

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

			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.

			archive_error($lang->error_nothreads);
}

// Build the archive header.

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

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


$plugins->run_hooks("archive_forum_start");



$plugins->run_hooks("archive_forum_start");


Zeile 307Zeile 324
				echo "<ol>\n";
while($announcement = $db->fetch_array($query))
{

				echo "<ol>\n";
while($announcement = $db->fetch_array($query))
{

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

					echo "<li><a href=\"{$base_url}announcement-{$announcement['aid']}.html\">".htmlspecialchars_uni($announcement['subject'])."</a></li>";
}
echo "</ol>\n</div>\n";

					echo "<li><a href=\"{$base_url}announcement-{$announcement['aid']}.html\">".htmlspecialchars_uni($announcement['subject'])."</a></li>";
}
echo "</ol>\n</div>\n";

Zeile 333Zeile 351
				{
$sticky['subject'] = htmlspecialchars_uni($parser->parse_badwords($sticky['subject']));
if($sticky['replies'] != 1)

				{
$sticky['subject'] = htmlspecialchars_uni($parser->parse_badwords($sticky['subject']));
if($sticky['replies'] != 1)

					{

					{

						$lang_reply_text = $lang->archive_replies;
}
else

						$lang_reply_text = $lang->archive_replies;
}
else

Zeile 413Zeile 431
		break;
default:
header("HTTP/1.0 404 Not Found");

		break;
default:
header("HTTP/1.0 404 Not Found");

		echo $lang->archive_not_found;











		switch($action2)
{
case "announcement":
archive_error($lang->error_invalidannouncement);
case "thread":
archive_error($lang->error_invalidthread);
case "forum":
archive_error($lang->error_invalidforum);
default:
archive_error($lang->archive_not_found);
}

}

$plugins->run_hooks("archive_end");

}

$plugins->run_hooks("archive_end");