Vergleich admin/modules/config/questions.php - 1.8.1 - 1.8.15

  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'])

Zeile 293Zeile 293
	$table = new Table;
$table->construct_header($lang->question);
$table->construct_header($lang->answers, array("width" => "35%"));

	$table = new Table;
$table->construct_header($lang->question);
$table->construct_header($lang->answers, array("width" => "35%"));

 
	$table->construct_header($lang->shown, array("width" => "5%", "class" => "align_center"));

	$table->construct_header($lang->correct, array("width" => "5%", "class" => "align_center"));
$table->construct_header($lang->incorrect, array("width" => "5%", "class" => "align_center"));
$table->construct_header($lang->controls, array("class" => "align_center", "width" => 150));

	$table->construct_header($lang->correct, array("width" => "5%", "class" => "align_center"));
$table->construct_header($lang->incorrect, array("width" => "5%", "class" => "align_center"));
$table->construct_header($lang->controls, array("class" => "align_center", "width" => 150));

Zeile 303Zeile 304
		$questions['question'] = htmlspecialchars_uni($questions['question']);
$questions['answer'] = htmlspecialchars_uni($questions['answer']);
$questions['answer'] = preg_replace("#(\n)#s", "<br />", trim($questions['answer']));

		$questions['question'] = htmlspecialchars_uni($questions['question']);
$questions['answer'] = htmlspecialchars_uni($questions['answer']);
$questions['answer'] = preg_replace("#(\n)#s", "<br />", trim($questions['answer']));

 
		$questions['shown'] = my_number_format($questions['shown']);

		$questions['correct'] = my_number_format($questions['correct']);
$questions['incorrect'] = my_number_format($questions['incorrect']);


		$questions['correct'] = my_number_format($questions['correct']);
$questions['incorrect'] = my_number_format($questions['incorrect']);


Zeile 317Zeile 319

$table->construct_cell("<div>{$icon}{$questions['question']}</div>");
$table->construct_cell($questions['answer']);


$table->construct_cell("<div>{$icon}{$questions['question']}</div>");
$table->construct_cell($questions['answer']);

 
		$table->construct_cell($questions['shown'], array("class" => "align_center"));

		$table->construct_cell($questions['correct'], array("class" => "align_center"));
$table->construct_cell($questions['incorrect'], array("class" => "align_center"));
$popup = new PopupMenu("questions_{$questions['qid']}", $lang->options);

		$table->construct_cell($questions['correct'], array("class" => "align_center"));
$table->construct_cell($questions['incorrect'], array("class" => "align_center"));
$popup = new PopupMenu("questions_{$questions['qid']}", $lang->options);

Zeile 336Zeile 339

if($table->num_rows() == 0)
{


if($table->num_rows() == 0)
{

		$table->construct_cell($lang->no_security_questions, array('colspan' => 5));

		$table->construct_cell($lang->no_security_questions, array('colspan' => 6));

		$table->construct_row();
}


		$table->construct_row();
}