Vergleich admin/modules/config/help_documents.php - 1.8.5 - 1.8.13

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

$sub_tabs['edit_help_section'] = array(
'title' => $lang->edit_section,


$sub_tabs['edit_help_section'] = array(
'title' => $lang->edit_section,

			'link'	=> "index.php?module=config-help_documents&action=edit&sid=".$mybb->get_input('sid', MyBB::INPUT_INT),

			'link'	=> "index.php?module=config-help_documents&action=edit&sid=".$section['sid'],

			'description' => $lang->edit_section_desc
);


			'description' => $lang->edit_section_desc
);


Zeile 339Zeile 339

$form = new Form("index.php?module=config-help_documents&action=edit", "post", "edit");



$form = new Form("index.php?module=config-help_documents&action=edit", "post", "edit");


		echo $form->generate_hidden_field("sid", $mybb->input['sid']);

		echo $form->generate_hidden_field("sid", $section['sid']);

		echo $form->generate_hidden_field("usetranslation", $mybb->input['usetranslation']);


		echo $form->generate_hidden_field("usetranslation", $mybb->input['usetranslation']);


		$form_container = new FormContainer($lang->edit_section." ({$lang->id} ".$mybb->get_input('sid', MyBB::INPUT_INT).")");

		$form_container = new FormContainer($lang->edit_section." ({$lang->id} ".$section['sid'].")");

		$form_container->output_row($lang->title." <em>*</em>", "", $form->generate_text_box('name', $mybb->input['name'], array('id' => 'name')), 'name');
$form_container->output_row($lang->short_description." <em>*</em>", "", $form->generate_text_box('description', $mybb->input['description'], array('id' => 'description')), 'description');
$form_container->output_row($lang->display_order, "", $form->generate_numeric_field('disporder', $mybb->input['disporder'], array('id' => 'disporder', 'min' => 0)), 'disporder');

		$form_container->output_row($lang->title." <em>*</em>", "", $form->generate_text_box('name', $mybb->input['name'], array('id' => 'name')), 'name');
$form_container->output_row($lang->short_description." <em>*</em>", "", $form->generate_text_box('description', $mybb->input['description'], array('id' => 'description')), 'description');
$form_container->output_row($lang->display_order, "", $form->generate_numeric_field('disporder', $mybb->input['disporder'], array('id' => 'disporder', 'min' => 0)), 'disporder');

Zeile 425Zeile 425

$sub_tabs['edit_help_document'] = array(
'title' => $lang->edit_document,


$sub_tabs['edit_help_document'] = array(
'title' => $lang->edit_document,

			'link'	=> "index.php?module=config-help_documents&amp;action=edit&amp;hid=".$mybb->get_input('hid', MyBB::INPUT_INT),

			'link'	=> "index.php?module=config-help_documents&amp;action=edit&amp;hid=".$hid,

			'description' => $lang->edit_document_desc
);


			'description' => $lang->edit_document_desc
);


Zeile 451Zeile 451

$form = new Form("index.php?module=config-help_documents&amp;action=edit", "post", "edit");



$form = new Form("index.php?module=config-help_documents&amp;action=edit", "post", "edit");


		echo $form->generate_hidden_field("hid", $mybb->input['hid']);

		echo $form->generate_hidden_field("hid", $doc['hid']);

		echo $form->generate_hidden_field("usetranslation", $mybb->input['usetranslation']);


		echo $form->generate_hidden_field("usetranslation", $mybb->input['usetranslation']);


		$form_container = new FormContainer($lang->edit_document." ({$lang->id} ".$mybb->get_input('hid', MyBB::INPUT_INT).")");

		$form_container = new FormContainer($lang->edit_document." ({$lang->id} ".$doc['hid'].")");


$sections = array();
$query = $db->simple_select("helpsections", "sid, name");


$sections = array();
$query = $db->simple_select("helpsections", "sid, name");

Zeile 509Zeile 509
			}

// Delete section and its documents

			}

// Delete section and its documents

			$db->delete_query("helpsections", "sid = '{$sid}'", 1);
$db->delete_query("helpdocs", "sid = '{$sid}'");

			$db->delete_query("helpsections", "sid = '{$section['sid']}'", 1);
$db->delete_query("helpdocs", "sid = '{$section['sid']}'");


$plugins->run_hooks("admin_config_help_documents_delete_section_commit");



$plugins->run_hooks("admin_config_help_documents_delete_section_commit");


Zeile 536Zeile 536
				admin_redirect("index.php?module=config-help_documents");
}


				admin_redirect("index.php?module=config-help_documents");
}


			$db->delete_query("helpdocs", "hid = '{$hid}'", 1);

			$db->delete_query("helpdocs", "hid = '{$doc['hid']}'", 1);


$plugins->run_hooks("admin_config_help_documents_delete_page_commit");



$plugins->run_hooks("admin_config_help_documents_delete_page_commit");