Vergleich admin/modules/config/help_documents.php - 1.6.0 - 1.6.10

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * $Id: help_documents.php 5016 2010-06-12 00:24:02Z RyanGordon $

 * $Id$

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

Zeile 57Zeile 57
				$sql_array = array(
"name" => $db->escape_string($mybb->input['name']),
"description" => $db->escape_string($mybb->input['description']),

				$sql_array = array(
"name" => $db->escape_string($mybb->input['name']),
"description" => $db->escape_string($mybb->input['description']),

					"usetranslation" => 0,

					"usetranslation" => intval($mybb->input['usetranslation']),

					"enabled" => intval($mybb->input['enabled']),
"disporder" => intval($mybb->input['disporder'])
);

					"enabled" => intval($mybb->input['enabled']),
"disporder" => intval($mybb->input['disporder'])
);

Zeile 104Zeile 104
			$query = $db->simple_select("helpsections", "MAX(disporder) as maxdisp");
$mybb->input['disporder'] = $db->fetch_field($query, "maxdisp")+1;
$mybb->input['enabled'] = 1;

			$query = $db->simple_select("helpsections", "MAX(disporder) as maxdisp");
$mybb->input['disporder'] = $db->fetch_field($query, "maxdisp")+1;
$mybb->input['enabled'] = 1;

			$mybb->input['translation'] = 0;

			$mybb->input['usetranslation'] = 1;

		}

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

		}

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

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


		$form_container = new FormContainer($lang->add_new_section);
$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 = new FormContainer($lang->add_new_section);
$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');

Zeile 116Zeile 118
		$form_container->end();

$buttons[] = $form->generate_submit_button($lang->save_section);

		$form_container->end();

$buttons[] = $form->generate_submit_button($lang->save_section);

	



		$form->output_submit_wrapper($buttons);
$form->end();
}

		$form->output_submit_wrapper($buttons);
$form->end();
}

Zeile 147Zeile 149
			if(empty($mybb->input['document']))
{
$errors[] = $lang->error_document_missing_document;

			if(empty($mybb->input['document']))
{
$errors[] = $lang->error_document_missing_document;

			}


			}


			if(!isset($mybb->input['enabled']))
{
$errors[] = $lang->error_document_missing_enabled;

			if(!isset($mybb->input['enabled']))
{
$errors[] = $lang->error_document_missing_enabled;

Zeile 166Zeile 168
					"name" => $db->escape_string($mybb->input['name']),
"description" => $db->escape_string($mybb->input['description']),
"document" => $db->escape_string($mybb->input['document']),

					"name" => $db->escape_string($mybb->input['name']),
"description" => $db->escape_string($mybb->input['description']),
"document" => $db->escape_string($mybb->input['document']),

					"usetranslation" => 0,

					"usetranslation" => intval($mybb->input['usetranslation']),

					"enabled" => intval($mybb->input['enabled']),
"disporder" => intval($mybb->input['disporder'])
);

					"enabled" => intval($mybb->input['enabled']),
"disporder" => intval($mybb->input['disporder'])
);

Zeile 189Zeile 191
		$sub_tabs['manage_help_documents'] = array(
'title' => $lang->manage_help_documents,
'link' => "index.php?module=config-help_documents"

		$sub_tabs['manage_help_documents'] = array(
'title' => $lang->manage_help_documents,
'link' => "index.php?module=config-help_documents"

		);

		);

	
$sub_tabs['add_help_document'] = array(
'title' => $lang->add_new_document,
'link' => "index.php?module=config-help_documents&amp;action=add&amp;type=document",
'description' => $lang->add_new_document_desc

	
$sub_tabs['add_help_document'] = array(
'title' => $lang->add_new_document,
'link' => "index.php?module=config-help_documents&amp;action=add&amp;type=document",
'description' => $lang->add_new_document_desc

		);

		);

		
$sub_tabs['add_help_section'] = array(
'title' => $lang->add_new_section,

		
$sub_tabs['add_help_section'] = array(
'title' => $lang->add_new_section,

Zeile 203Zeile 205
		);

$page->output_nav_tabs($sub_tabs, 'add_help_document');

		);

$page->output_nav_tabs($sub_tabs, 'add_help_document');

	

	

		if($errors)

		if($errors)

		{

		{

			$page->output_inline_error($errors);

			$page->output_inline_error($errors);

		}

		}

		else
{
// Select the largest existing display order
$query = $db->simple_select("helpdocs", "MAX(disporder) as maxdisp");
$mybb->input['disporder'] = $db->fetch_field($query, "maxdisp")+1;
$mybb->input['enabled'] = 1;

		else
{
// Select the largest existing display order
$query = $db->simple_select("helpdocs", "MAX(disporder) as maxdisp");
$mybb->input['disporder'] = $db->fetch_field($query, "maxdisp")+1;
$mybb->input['enabled'] = 1;

			$mybb->input['translation'] = 0;

			$mybb->input['translation'] = 1;

		}

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

		}

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

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


		$form_container = new FormContainer($lang->add_new_document);
$query = $db->simple_select("helpsections", "sid, name");
while($section = $db->fetch_array($query))

		$form_container = new FormContainer($lang->add_new_document);
$query = $db->simple_select("helpsections", "sid, name");
while($section = $db->fetch_array($query))

Zeile 289Zeile 293
				$sql_array = array(
"name" => $db->escape_string($mybb->input['name']),
"description" => $db->escape_string($mybb->input['description']),

				$sql_array = array(
"name" => $db->escape_string($mybb->input['name']),
"description" => $db->escape_string($mybb->input['description']),

					"usetranslation" => 0,

					"usetranslation" => intval($mybb->input['usetranslation']),

					"enabled" => intval($mybb->input['enabled']),
"disporder" => intval($mybb->input['disporder'])
);

					"enabled" => intval($mybb->input['enabled']),
"disporder" => intval($mybb->input['disporder'])
);

Zeile 329Zeile 333
			$mybb->input['description'] = $section['description'];
$mybb->input['disporder'] = $section['disporder'];
$mybb->input['enabled'] = $section['enabled'];

			$mybb->input['description'] = $section['description'];
$mybb->input['disporder'] = $section['disporder'];
$mybb->input['enabled'] = $section['enabled'];

 
			$mybb->input['usetranslation'] = $section['usetranslation'];

		}

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

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

		}

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

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

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

		
$form_container = new FormContainer($lang->edit_section." ({$lang->id} ".intval($mybb->input['sid']).")");
$form_container->output_row($lang->title." <em>*</em>", "", $form->generate_text_box('name', $mybb->input['name'], array('id' => 'name')), 'name');

		
$form_container = new FormContainer($lang->edit_section." ({$lang->id} ".intval($mybb->input['sid']).")");
$form_container->output_row($lang->title." <em>*</em>", "", $form->generate_text_box('name', $mybb->input['name'], array('id' => 'name')), 'name');

Zeile 395Zeile 401
					"name" => $db->escape_string($mybb->input['name']),
"description" => $db->escape_string($mybb->input['description']),
"document" => $db->escape_string($mybb->input['document']),

					"name" => $db->escape_string($mybb->input['name']),
"description" => $db->escape_string($mybb->input['description']),
"document" => $db->escape_string($mybb->input['document']),

					"usetranslation" => 0,

					"usetranslation" => intval($mybb->input['usetranslation']),

					"enabled" => intval($mybb->input['enabled']),
"disporder" => intval($mybb->input['disporder'])
);

					"enabled" => intval($mybb->input['enabled']),
"disporder" => intval($mybb->input['disporder'])
);

Zeile 439Zeile 445
			$mybb->input['document'] = $doc['document'];
$mybb->input['disporder'] = $doc['disporder'];
$mybb->input['enabled'] = $doc['enabled'];

			$mybb->input['document'] = $doc['document'];
$mybb->input['disporder'] = $doc['disporder'];
$mybb->input['enabled'] = $doc['enabled'];

 
			$mybb->input['usetranslation'] = $doc['usetranslation'];

		}

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

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

		}

$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("usetranslation", $mybb->input['usetranslation']);

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


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