Zeile 41 | Zeile 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 98 | Zeile 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 128 | Zeile 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 186 | Zeile 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 218 | Zeile 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 246 | Zeile 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'])
|