Vergleich sendthread.php - 1.6.5 - 1.6.14

  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 5297 2010-12-28 22:01:14Z 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();
}