Vergleich ratethread.php - 1.2.7 - 1.2.14

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/eula.html
*

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/eula.html
*

 * $Id: ratethread.php 3030 2007-04-26 00:19:47Z Tikitiki $

 * $Id: ratethread.php 3596 2008-01-20 08:27:39Z Tikitiki $

 */

define("IN_MYBB", 1);

$templatelist = '';
require_once "./global.php";

 */

define("IN_MYBB", 1);

$templatelist = '';
require_once "./global.php";

 

// Verify incoming POST request
verify_post_check($mybb->input['my_post_key']);


$lang->load("ratethread");

$query = $db->simple_select(TABLE_PREFIX."threads", "*", "tid='".intval($mybb->input['tid'])."'");
$thread = $db->fetch_array($query);
if(!$thread['tid'])


$lang->load("ratethread");

$query = $db->simple_select(TABLE_PREFIX."threads", "*", "tid='".intval($mybb->input['tid'])."'");
$thread = $db->fetch_array($query);
if(!$thread['tid'])

{

{

	error($lang->error_invalidthread);

	error($lang->error_invalidthread);

}


}


$forumpermissions = forum_permissions($thread['fid']);
if($forumpermissions['canview'] == "no" || $forumpermissions['canratethreads'] == "no" || $mybb->usergroup['canratethreads'] == "no")
{
error_no_permission();

$forumpermissions = forum_permissions($thread['fid']);
if($forumpermissions['canview'] == "no" || $forumpermissions['canratethreads'] == "no" || $mybb->usergroup['canratethreads'] == "no")
{
error_no_permission();

}

}


// Get forum info
$fid = $thread['fid'];


// Get forum info
$fid = $thread['fid'];

Zeile 36Zeile 39
{
error($lang->error_invalidforum);
}

{
error($lang->error_invalidforum);
}

// Password protected forums ......... yhummmmy!
check_forum_password($forum['fid'], $forum['password']);



// Check if this forum is password protected and we have a valid password
check_forum_password($forum['fid']);


if($forum['allowtratings'] == "no")
{


if($forum['allowtratings'] == "no")
{