Vergleich printthread.php - 1.6.2 - 1.6.17

  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: printthread.php 5139 2010-07-28 19:46:58Z RyanGordon $

 * $Id$

 */

define("IN_MYBB", 1);
define('THIS_SCRIPT', 'printthread.php');


 */

define("IN_MYBB", 1);
define('THIS_SCRIPT', 'printthread.php');


$templatelist = "printthread,printthread_post";

$templatelist = "printthread,printthread_post,forumdisplay_password_wrongpass,forumdisplay_password";


require_once "./global.php";
require_once MYBB_ROOT."inc/functions_post.php";


require_once "./global.php";
require_once MYBB_ROOT."inc/functions_post.php";

Zeile 48Zeile 48
}

// Make sure we are looking at a real thread here.

}

// Make sure we are looking at a real thread here.

if(!$tid || ($thread['visible'] == 0 && $ismod == false) || ($thread['visible'] > 1 && $ismod == true))

if(!$tid || ($thread['visible'] != 1 && $ismod == false) || ($thread['visible'] > 1 && $ismod == true))

{
error($lang->error_invalidthread);
}

{
error($lang->error_invalidthread);
}

Zeile 75Zeile 75
{
error($lang->error_invalidforum);
}

{
error($lang->error_invalidforum);
}

if($forumpermissions['canview'] == 0 || $forumpermissions['canviewthreads'] == 0)

if($forumpermissions['canview'] == 0 || $forumpermissions['canviewthreads'] == 0 || ($forumpermissions['canonlyviewownthreads'] != 0 && $thread['uid'] != $mybb->user['uid']))

{
error_no_permission();
}

{
error_no_permission();
}

Zeile 84Zeile 84
check_forum_password($forum['fid']);

$page = intval($mybb->input['page']);

check_forum_password($forum['fid']);

$page = intval($mybb->input['page']);

 

if(!$mybb->settings['postsperpage'] || (int)$mybb->settings['postsperpage'] < 1)
{
$mybb->settings['postsperpage'] = 20;
}


// Paginate this thread
$perpage = $mybb->settings['postsperpage'];


// Paginate this thread
$perpage = $mybb->settings['postsperpage'];