Vergleich sendthread.php - 1.6.3 - 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: sendthread.php 5380 2011-02-21 12:04:43Z Tomm $

 * $Id$

 */

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


 */

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


$templatelist = "sendthread";

$templatelist = "sendthread,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 27Zeile 27
$thread = get_thread($tid);

// Get thread prefix

$thread = get_thread($tid);

// Get thread prefix

$query = $db->simple_select('threadprefixes', 'prefix, displaystyle', "pid='{$thread['prefix']}'");
$threadprefix = $db->fetch_array($query);








$breadcrumbprefix = '';
if($thread['prefix'])
{
$threadprefix = build_prefixes($thread['prefix']);
if(isset($threadprefix['displaystyle']))
{
$breadcrumbprefix = $threadprefix['displaystyle'].' ';
}
}


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



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


Zeile 48Zeile 55

// Make navigation
build_forum_breadcrumb($thread['fid']);


// Make navigation
build_forum_breadcrumb($thread['fid']);

add_breadcrumb($threadprefix['displaystyle'].' '.$thread['subject'], get_thread_link($thread['tid']));

add_breadcrumb($breadcrumbprefix.$thread['subject'], get_thread_link($thread['tid']));

add_breadcrumb($lang->nav_sendthread);

// Get forum info

add_breadcrumb($lang->nav_sendthread);

// Get forum info

Zeile 62Zeile 69
}

// This user can't view this forum or this thread

}

// This user can't view this forum or this thread

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

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

{
error_no_permission();
}

{
error_no_permission();
}