Vergleich archive/index.php - 1.6.2 - 1.6.7

  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 5368 2011-02-17 10:37:01Z MattR $

 */

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'])));
}
else
{
archive_error($lang->error_invalidthread);
}

		}

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

		}

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

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 292Zeile 309
			echo "</ol>\n</div>\n";
}


			echo "</ol>\n</div>\n";
}


		archive_multipage($threadcount, $perpage, $page, "{$base_url}forum-$id");

		archive_multipage($threadcount, $perpage, $page, "{$base_url}forum-$id");

	
// Get the announcements if the forum is not a category.
if($forum['type'] == 'f')

	
// Get the announcements if the forum is not a category.
if($forum['type'] == 'f')

Zeile 413Zeile 430
		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");