Vergleich ratethread.php - 1.6.3 - 1.6.17

  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: ratethread.php 5380 2011-02-21 12:04:43Z 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 29Zeile 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 || (isset($forumpermissions['canonlyviewownthreads']) && $forumpermissions['canonlyviewownthreads'] != 0 && $thread['uid'] != $mybb->user['uid']))

{
error_no_permission();
}

{
error_no_permission();
}

Zeile 40Zeile 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