Vergleich polls.php - 1.4.0 - 1.4.6

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

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * $Id: polls.php 3825 2008-05-10 16:35:33Z Tikitiki $

 * $Id: polls.php 4304 2009-01-02 01:11:56Z chris $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

 
define('THIS_SCRIPT', 'polls.php');


$templatelist = "poll_newpoll,redirect_pollposted,redirect_pollupdated,redirect_votethanks";
require_once "./global.php";


$templatelist = "poll_newpoll,redirect_pollposted,redirect_pollupdated,redirect_votethanks";
require_once "./global.php";

Zeile 161Zeile 162
	}

$postoptions = $mybb->input['postoptions'];

	}

$postoptions = $mybb->input['postoptions'];

	if($postoptions['multiple'] != 1)

	if($postoptions['multiple'] != '1')

	{
$postoptions['multiple'] = 0;
}


	{
$postoptions['multiple'] = 0;
}


	if($postoptions['public'] != 1)

	if($postoptions['public'] != '1')

	{
$postoptions['public'] = 0;
}

	{
$postoptions['public'] = 0;
}

Zeile 460Zeile 461
	}

$postoptions = $mybb->input['postoptions'];

	}

$postoptions = $mybb->input['postoptions'];

	if($postoptions['multiple'] != 1)

	if($postoptions['multiple'] != '1')

	{
$postoptions['multiple'] = 0;
}


	{
$postoptions['multiple'] = 0;
}


	if($postoptions['public'] != 1)

	if($postoptions['public'] != '1')

	{
$postoptions['public'] = 0;
}


	{
$postoptions['public'] = 0;
}


	if($postoptions['closed'] != 1)

	if($postoptions['closed'] != '1')

	{
$postoptions['closed'] = 0;
}

	{
$postoptions['closed'] = 0;
}

Zeile 789Zeile 790
				{
$votesql .= ",";
}

				{
$votesql .= ",";
}

				$votesql .= "('".$poll['pid']."','".$mybb->user['uid']."','$voteoption','$now')";

				$votesql .= "('".$poll['pid']."','".$mybb->user['uid']."','".$db->escape_string($voteoption)."','$now')";

				$votesarray[$voteoption-1]++;
$numvotes = $numvotes+1;
}

				$votesarray[$voteoption-1]++;
$numvotes = $numvotes+1;
}