Vergleich polls.php - 1.00 - 1.17

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

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

 * $Id$

 * $Id: polls.php 869 2005-10-25 11:26:52Z chris $

 */

define("KILL_GLOBALS", 1);

 */

define("KILL_GLOBALS", 1);

Zeile 693Zeile 693
		error($lang->error_nopolloptions);
}
// Check if the user has voted before...

		error($lang->error_nopolloptions);
}
// Check if the user has voted before...

	$query = $db->query("SELECT * FROM ".TABLE_PREFIX."pollvotes WHERE uid='".$mybb->user['uid']."' AND pid='".$poll['pid']."'");
$votecheck = $db->fetch_array($query);
if($votecheck['vid'] || $pollvotes[$poll['pid']])
{




    if($mybb->user['uid'])
{
$query = $db->query("SELECT * FROM ".TABLE_PREFIX."pollvotes WHERE uid='".$mybb->user['uid']."' AND pid='".$poll['pid']."'");
$votecheck = $db->fetch_array($query);
}
if($votecheck['vid'] || $_COOKIE['pollvotes'][$poll['pid']])
{

		error($lang->error_alreadyvoted);
}
else

		error($lang->error_alreadyvoted);
}
else