Vergleich ratethread.php - 1.8.9 - 1.8.37

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 33Zeile 33
if(($thread['visible'] != 1 && $ismod == false) || ($thread['visible'] > 1 && $ismod == true))
{
error($lang->error_invalidthread);

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'])
{
error($lang->error_cannotrateownthread);

}

if($thread['uid'] == $mybb->user['uid'])
{
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))
{

Zeile 47Zeile 52
}

// Get forum info

}

// 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 95Zeile 93
$query = $db->simple_select("threadratings", "*", "{$whereclause} AND tid='{$tid}'");
$ratecheck = $db->fetch_array($query);


$query = $db->simple_select("threadratings", "*", "{$whereclause} AND tid='{$tid}'");
$ratecheck = $db->fetch_array($query);


if($ratecheck['rid'] || isset($mybb->cookies['mybbratethread'][$tid]))

if($ratecheck || isset($mybb->cookies['mybbratethread'][$tid]))

{
error($lang->error_alreadyratedthread);
}

{
error($lang->error_alreadyratedthread);
}