Zeile 6 | Zeile 6 |
---|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* $Id: ratethread.php 5297 2010-12-28 22:01:14Z Tomm $
| * $Id$
|
*/
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 29 | Zeile 29 |
---|
}
$forumpermissions = forum_permissions($thread['fid']);
|
}
$forumpermissions = forum_permissions($thread['fid']);
|
if($forumpermissions['canview'] == 0 || $forumpermissions['canratethreads'] == 0 || $mybb->usergroup['canratethreads'] == 0)
| if($forumpermissions['canview'] == 0 || $forumpermissions['canratethreads'] == 0 || $mybb->usergroup['canratethreads'] == 0 || $mybb->settings['allowthreadratings'] == 0)
|
{ error_no_permission(); }
| { error_no_permission(); }
|
Zeile 40 | Zeile 40 |
---|
if(!$forum) { error($lang->error_invalidforum);
|
if(!$forum) { error($lang->error_invalidforum);
|
| }
// Get forum info $forum = get_forum($fid); if(!$forum) { error($lang->error_invalidforum); } else { // Is our forum closed? if($forum['open'] == 0) { // Doesn't look like it is error($lang->error_closedinvalidforum); }
|
}
// Check if this forum is password protected and we have a valid password
| }
// Check if this forum is password protected and we have a valid password
|