Vergleich admin/helpdocs.php - 1.00 - 1.15

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.com
* License: http://www.mybboard.com/eula.html
*

 * Website: http://www.mybboard.com
* License: http://www.mybboard.com/eula.html
*

 * $Id$

 * $Id: helpdocs.php 869 2005-10-25 11:26:52Z chris $

 */

require "./global.php";

 */

require "./global.php";

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(