Vergleich ratethread.php - 1.8.3 - 1.8.35

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 27Zeile 27
}

// Is the currently logged in user a moderator of this forum?

}

// Is the currently logged in user a moderator of this forum?

if(is_moderator($thread['fid']))
{
$ismod = true;
}
else
{
$ismod = false;
}

$ismod = is_moderator($thread['fid']);









// Make sure we are looking at a real thread here.
if(($thread['visible'] != 1 && $ismod == false) || ($thread['visible'] > 1 && $ismod == true))
{
error($lang->error_invalidthread);


// Make sure we are looking at a real thread here.
if(($thread['visible'] != 1 && $ismod == false) || ($thread['visible'] > 1 && $ismod == true))
{
error($lang->error_invalidthread);

}






}

if($thread['visible'] == -1)
{
error($lang->thread_doesnt_exist);
}


if($thread['uid'] == $mybb->user['uid'])


if($thread['uid'] == $mybb->user['uid'])

{

{

	error($lang->error_cannotrateownthread);

	error($lang->error_cannotrateownthread);

}


}


$forumpermissions = forum_permissions($thread['fid']);
if($forumpermissions['canview'] == 0 || $forumpermissions['canratethreads'] == 0 || $mybb->usergroup['canratethreads'] == 0 || $mybb->settings['allowthreadratings'] == 0 || (isset($forumpermissions['canonlyviewownthreads']) && $forumpermissions['canonlyviewownthreads'] != 0))

$forumpermissions = forum_permissions($thread['fid']);
if($forumpermissions['canview'] == 0 || $forumpermissions['canratethreads'] == 0 || $mybb->usergroup['canratethreads'] == 0 || $mybb->settings['allowthreadratings'] == 0 || (isset($forumpermissions['canonlyviewownthreads']) && $forumpermissions['canonlyviewownthreads'] != 0))

{

{

	error_no_permission();
}

// Get forum info

	error_no_permission();
}

// Get forum info

$fid = $thread['fid'];
$forum = get_forum($fid);
if(!$forum)
{
error($lang->error_invalidforum);
}

// Get forum info

$fid = $thread['fid'];








$forum = get_forum($fid);
if(!$forum)
{

$forum = get_forum($fid);
if(!$forum)
{

Zeile 84Zeile 75
{
error_no_permission();
}

{
error_no_permission();
}

$mybb->input['rating'] = $mybb->get_input('rating', 1);

$mybb->input['rating'] = $mybb->get_input('rating', MyBB::INPUT_INT);

if($mybb->input['rating'] < 1 || $mybb->input['rating'] > 5)
{
error($lang->error_invalidrating);

if($mybb->input['rating'] < 1 || $mybb->input['rating'] > 5)
{
error($lang->error_invalidrating);