Vergleich polls.php - 1.8.5 - 1.8.6

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 255Zeile 255
			$options[$i] = '';
}


			$options[$i] = '';
}


 
		if($mybb->settings['polloptionlimit'] != 0 && my_strlen($options[$i]) > $mybb->settings['polloptionlimit'])
{
$lengtherror = 1;
break;
}

if(strpos($options[$i], '||~|~||') !== false)
{
$sequenceerror = 1;
break;
}


		if(trim($options[$i]) != "")
{
$optioncount++;
}

		if(trim($options[$i]) != "")
{
$optioncount++;
}


if(my_strlen($options[$i]) > $mybb->settings['polloptionlimit'] && $mybb->settings['polloptionlimit'] != 0)
{
$lengtherror = 1;
break;
}
}

	}








if(isset($lengtherror))


if(isset($lengtherror))

	{

	{

		error($lang->error_polloptiontoolong);

		error($lang->error_polloptiontoolong);

 
	}

if(isset($sequenceerror))
{
error($lang->error_polloptionsequence);

	}

$mybb->input['question'] = $mybb->get_input('question');

	}

$mybb->input['question'] = $mybb->get_input('question');

Zeile 353Zeile 364
	$plugins->run_hooks("polls_editpoll_start");

$query = $db->simple_select("polls", "*", "pid='$pid'");

	$plugins->run_hooks("polls_editpoll_start");

$query = $db->simple_select("polls", "*", "pid='$pid'");

	$poll = $db->fetch_array($query);

	$poll = $db->fetch_array($query);


if(!$poll)
{


if(!$poll)
{

Zeile 448Zeile 459
		}

if(!$poll['timeout'])

		}

if(!$poll['timeout'])

		{
$timeout = 0;
}

		{
$timeout = 0;
}

		else
{
$timeout = $poll['timeout'];

		else
{
$timeout = $poll['timeout'];

Zeile 547Zeile 558
	eval("\$editpoll = \"".$templates->get("polls_editpoll")."\";");
output_page($editpoll);
}

	eval("\$editpoll = \"".$templates->get("polls_editpoll")."\";");
output_page($editpoll);
}





if($mybb->input['action'] == "do_editpoll" && $mybb->request_method == "post")
{
// Verify incoming POST request

if($mybb->input['action'] == "do_editpoll" && $mybb->request_method == "post")
{
// Verify incoming POST request

Zeile 631Zeile 642
		{
$options[$i] = '';
}

		{
$options[$i] = '';
}

		if(trim($options[$i]) != '')















if($mybb->settings['polloptionlimit'] != 0 && my_strlen($options[$i]) > $mybb->settings['polloptionlimit'])
{
$lengtherror = 1;
break;
}

if(strpos($options[$i], '||~|~||') !== false)
{
$sequenceerror = 1;
break;
}

if(trim($options[$i]) != "")

		{
$optioncount++;
}

		{
$optioncount++;
}


if(my_strlen($options[$i]) > $mybb->settings['polloptionlimit'] && $mybb->settings['polloptionlimit'] != 0)
{
$lengtherror = 1;
break;
}
}

	}








if(isset($lengtherror))


if(isset($lengtherror))

	{

	{

		error($lang->error_polloptiontoolong);

		error($lang->error_polloptiontoolong);

 
	}

if(isset($sequenceerror))
{
error($lang->error_polloptionsequence);

	}

$mybb->input['question'] = $mybb->get_input('question');

	}

$mybb->input['question'] = $mybb->get_input('question');