Vergleich ratethread.php - 1.2.2 - 1.2.12

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 3Zeile 3
 * MyBB 1.2
* Copyright � 2006 MyBB Group, All Rights Reserved
*

 * MyBB 1.2
* Copyright � 2006 MyBB Group, All Rights Reserved
*

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

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

 *

 *

 * $Id: ratethread.php 2164 2006-08-30 06:17:49Z chris $

 * $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")
{