Vergleich admin/helpdocs.php - 1.02 - 1.14

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 35Zeile 35

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


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

	if($mybb->input['add'] == "doc")
{
$sqlarray = array(
"name" => addslashes($mybb->input['name']),
"description" => addslashes($mybb->input['description']),
"document" => addslashes($mybb->input['document']),
"usetranslation" => addslashes($mybb->input['usetranslation']),
"enabled" => addslashes($mybb->input['enabled']),
"disporder" => intval($mybb->input['disporder']),
);
$db->insert_query(TABLE_PREFIX."helpdocs", $sqlarray);
cpredirect("helpdocs.php", $lang->doc_added);
}


    if($mybb->input['add'] == "doc")
{
$sqlarray = array(
"sid" => intval($mybb->input['sid']),
"name" => addslashes($mybb->input['name']),
"description" => addslashes($mybb->input['description']),
"document" => addslashes($mybb->input['document']),
"usetranslation" => addslashes($mybb->input['usetranslation']),
"enabled" => addslashes($mybb->input['enabled']),
"disporder" => intval($mybb->input['disporder']),
);
$db->insert_query(TABLE_PREFIX."helpdocs", $sqlarray);
cpredirect("helpdocs.php", $lang->doc_added);
}

	elseif($mybb->input['add'] == "section")
{
$sqlarray = array(

	elseif($mybb->input['add'] == "section")
{
$sqlarray = array(