Vergleich ratethread.php - 1.6.9 - 1.6.12

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 12Zeile 12
define("IN_MYBB", 1);
define('THIS_SCRIPT', 'ratethread.php');


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


$templatelist = '';

$templatelist = 'forumdisplay_password_wrongpass,forumdisplay_password';

require_once "./global.php";

// Verify incoming POST request

require_once "./global.php";

// Verify incoming POST request

Zeile 29Zeile 29
}

$forumpermissions = forum_permissions($thread['fid']);

}

$forumpermissions = forum_permissions($thread['fid']);

if($forumpermissions['canview'] == 0 || $forumpermissions['canratethreads'] == 0 || $mybb->usergroup['canratethreads'] == 0 || $mybb->settings['allowthreadratings'] == 0)

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

{
error_no_permission();
}

{
error_no_permission();
}