Vergleich admin/modules/config/questions.php - 1.8.3 - 1.8.4

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 41Zeile 41
			$new_question = array(
"question" => $db->escape_string($mybb->input['question']),
"answer" => $db->escape_string($answer),

			$new_question = array(
"question" => $db->escape_string($mybb->input['question']),
"answer" => $db->escape_string($answer),

				"active" => (int)$mybb->input['active']

				"active" => $mybb->get_input('active', MyBB::INPUT_INT)

			);
$qid = $db->insert_query("questions", $new_question);


			);
$qid = $db->insert_query("questions", $new_question);


Zeile 98Zeile 98

if($mybb->input['action'] == "edit")
{


if($mybb->input['action'] == "edit")
{

	$query = $db->simple_select("questions", "*", "qid='".(int)$mybb->input['qid']."'");

	$query = $db->simple_select("questions", "*", "qid='".$mybb->get_input('qid', MyBB::INPUT_INT)."'");

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

if(!$question['qid'])

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

if(!$question['qid'])

Zeile 128Zeile 128
			$updated_question = array(
"question" => $db->escape_string($mybb->input['question']),
"answer" => $db->escape_string($answer),

			$updated_question = array(
"question" => $db->escape_string($mybb->input['question']),
"answer" => $db->escape_string($answer),

				"active" => (int)$mybb->input['active']

				"active" => $mybb->get_input('active', MyBB::INPUT_INT)

			);

$plugins->run_hooks("admin_config_questions_edit_commit");

			);

$plugins->run_hooks("admin_config_questions_edit_commit");

Zeile 186Zeile 186
		admin_redirect("index.php?module=config-questions");
}


		admin_redirect("index.php?module=config-questions");
}


	$query = $db->simple_select("questions", "*", "qid='".(int)$mybb->input['qid']."'");

	$query = $db->simple_select("questions", "*", "qid='".$mybb->get_input('qid', MyBB::INPUT_INT)."'");

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

if(!$question['qid'])

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

if(!$question['qid'])

Zeile 218Zeile 218

if($mybb->input['action'] == "disable")
{


if($mybb->input['action'] == "disable")
{

	$query = $db->simple_select("questions", "*", "qid='".(int)$mybb->input['qid']."'");

	$query = $db->simple_select("questions", "*", "qid='".$mybb->get_input('qid', MyBB::INPUT_INT)."'");

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

if(!$question['qid'])

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

if(!$question['qid'])

Zeile 246Zeile 246

if($mybb->input['action'] == "enable")
{


if($mybb->input['action'] == "enable")
{

	$query = $db->simple_select("questions", "*", "qid='".(int)$mybb->input['qid']."'");

	$query = $db->simple_select("questions", "*", "qid='".$mybb->get_input('qid', MyBB::INPUT_INT)."'");

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

if(!$question['qid'])

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

if(!$question['qid'])