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); }
|