Vergleich admin/modules/config/mod_tools.php - 1.6.6 - 1.6.15

  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: mod_tools.php 5353 2011-02-15 14:24:00Z Tomm $

 * $Id$

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

Zeile 48Zeile 48

// Log admin action
log_admin_action($tool['tid'], $tool['name']);


// Log admin action
log_admin_action($tool['tid'], $tool['name']);

 
		$cache->update_forumsdisplay();


flash_message($lang->success_post_tool_deleted, 'success');
admin_redirect("index.php?module=config-mod_tools&action=post_tools");


flash_message($lang->success_post_tool_deleted, 'success');
admin_redirect("index.php?module=config-mod_tools&action=post_tools");

Zeile 67Zeile 68
	
// Does the post tool not exist?
if(!$tool['tid'])

	
// Does the post tool not exist?
if(!$tool['tid'])

	{
flash_message($lang->error_invalid_thread_tool, 'error');
admin_redirect("index.php?module=config-mod_tools");

	{
flash_message($lang->error_invalid_thread_tool, 'error');
admin_redirect("index.php?module=config-mod_tools");

	}

// User clicked no

	}

// User clicked no

Zeile 136Zeile 137
		$table->construct_cell("<a href=\"index.php?module=config-mod_tools&amp;action=edit_post_tool&amp;tid={$tool['tid']}\"><strong>".htmlspecialchars_uni($tool['name'])."</strong></a><br /><small>".htmlspecialchars_uni($tool['description'])."</small>");
$table->construct_cell("<a href=\"index.php?module=config-mod_tools&amp;action=edit_post_tool&amp;tid={$tool['tid']}\">{$lang->edit}</a>", array('width' => 100, 'class' => "align_center"));
$table->construct_cell("<a href=\"index.php?module=config-mod_tools&amp;action=delete_post_tool&amp;tid={$tool['tid']}&amp;my_post_key={$mybb->post_code}\" onclick=\"return AdminCP.deleteConfirmation(this, '{$lang->confirm_post_tool_deletion}')\">{$lang->delete}</a>", array('width' => 100, 'class' => "align_center"));

		$table->construct_cell("<a href=\"index.php?module=config-mod_tools&amp;action=edit_post_tool&amp;tid={$tool['tid']}\"><strong>".htmlspecialchars_uni($tool['name'])."</strong></a><br /><small>".htmlspecialchars_uni($tool['description'])."</small>");
$table->construct_cell("<a href=\"index.php?module=config-mod_tools&amp;action=edit_post_tool&amp;tid={$tool['tid']}\">{$lang->edit}</a>", array('width' => 100, 'class' => "align_center"));
$table->construct_cell("<a href=\"index.php?module=config-mod_tools&amp;action=delete_post_tool&amp;tid={$tool['tid']}&amp;my_post_key={$mybb->post_code}\" onclick=\"return AdminCP.deleteConfirmation(this, '{$lang->confirm_post_tool_deletion}')\">{$lang->delete}</a>", array('width' => 100, 'class' => "align_center"));

		$table->construct_row();
}

		$table->construct_row();
}

	
if($table->num_rows() == 0)

	
if($table->num_rows() == 0)

	{

	{

		$table->construct_cell($lang->no_post_tools, array('colspan' => 3));
$table->construct_row();

		$table->construct_cell($lang->no_post_tools, array('colspan' => 3));
$table->construct_row();

	}


	}


	$table->output($lang->post_tools);

	$table->output($lang->post_tools);

	

	

	$page->output_footer();
}


	$page->output_footer();
}


Zeile 160Zeile 161
		flash_message($lang->error_invalid_thread_tool, 'error');
admin_redirect("index.php?module=config-mod_tools");
}

		flash_message($lang->error_invalid_thread_tool, 'error');
admin_redirect("index.php?module=config-mod_tools");
}





	if($mybb->request_method == 'post')
{
if(trim($mybb->input['title']) == "")
{
$errors[] = $lang->error_missing_title;

	if($mybb->request_method == 'post')
{
if(trim($mybb->input['title']) == "")
{
$errors[] = $lang->error_missing_title;

		}


		}


		if(trim($mybb->input['description']) == "")
{
$errors[] = $lang->error_missing_description;

		if(trim($mybb->input['description']) == "")
{
$errors[] = $lang->error_missing_description;

Zeile 181Zeile 182
			if(count($mybb->input['forum_1_forums']) < 1)
{
$errors[] = $lang->error_no_forums_selected;

			if(count($mybb->input['forum_1_forums']) < 1)
{
$errors[] = $lang->error_no_forums_selected;

			}
}
else

			}
}
else

		{
$forum_checked[1] = "checked=\"checked\"";
$forum_checked[2] = '';

$mybb->input['forum_1_forums'] = '';

		{
$forum_checked[1] = "checked=\"checked\"";
$forum_checked[2] = '';

$mybb->input['forum_1_forums'] = '';

		}

		}

		

if($mybb->input['approvethread'] != '' && $mybb->input['approvethread'] != 'approve' && $mybb->input['approvethread'] != 'unapprove' && $mybb->input['approvethread'] != 'toggle')
{
$mybb->input['approvethread'] = '';

		

if($mybb->input['approvethread'] != '' && $mybb->input['approvethread'] != 'approve' && $mybb->input['approvethread'] != 'unapprove' && $mybb->input['approvethread'] != 'toggle')
{
$mybb->input['approvethread'] = '';

		}

		}

		
if($mybb->input['openthread'] != '' && $mybb->input['openthread'] != 'open' && $mybb->input['openthread'] != 'close' && $mybb->input['openthread'] != 'toggle')

		
if($mybb->input['openthread'] != '' && $mybb->input['openthread'] != 'open' && $mybb->input['openthread'] != 'close' && $mybb->input['openthread'] != 'toggle')

		{

		{

			$mybb->input['openthread'] = '';
}


			$mybb->input['openthread'] = '';
}


Zeile 206Zeile 207
		{
$move_checked[1] = '';
$move_checked[2] = "checked=\"checked\"";

		{
$move_checked[1] = '';
$move_checked[2] = "checked=\"checked\"";





			if(!$mybb->input['move_1_forum'])
{
$errors[] = $lang->error_no_move_forum_selected;

			if(!$mybb->input['move_1_forum'])
{
$errors[] = $lang->error_no_move_forum_selected;

			}
else
{

			}
else
{

				// Check that the destination forum is not a category
$query = $db->simple_select("forums", "type", "fid = '".intval($mybb->input['move_1_forum'])."'");
if($db->fetch_field($query, "type") == "c")

				// Check that the destination forum is not a category
$query = $db->simple_select("forums", "type", "fid = '".intval($mybb->input['move_1_forum'])."'");
if($db->fetch_field($query, "type") == "c")

Zeile 220Zeile 221
					$errors[] = $lang->error_forum_is_category;
}
}

					$errors[] = $lang->error_forum_is_category;
}
}


if($mybb->input['move_2_redirect'] != 1 && $mybb->input['move_2_redirect'] != 0)
{
$mybb->input['move_2_redirect'] = 0;
}

if(!isset($mybb->input['move_3_redirecttime']))
{
$mybb->input['move_3_redirecttime'] = '';
}
}
else
{
$move_checked[1] = "checked=\"checked\"";
$move_checked[2] = '';

$mybb->input['move_1_forum'] = '';
$mybb->input['move_2_redirect'] = 0;
$mybb->input['move_3_redirecttime'] = '';
}

if($mybb->input['copy_type'] == 2)
{
$copy_checked[1] = '';
$copy_checked[2] = "checked=\"checked\"";

if(!$mybb->input['copy_1_forum'])
{
$errors[] = $lang->error_no_copy_forum_selected;
}
else
{
$query = $db->simple_select("forums", "type", "fid = '".intval($mybb->input['copy_1_forum'])."'");
if($db->fetch_field($query, "type") == "c")
{
$errors[] = $lang->error_forum_is_category;
}
}
}
else
{


if($mybb->input['move_2_redirect'] != 1 && $mybb->input['move_2_redirect'] != 0)
{
$mybb->input['move_2_redirect'] = 0;
}

if(!isset($mybb->input['move_3_redirecttime']))
{
$mybb->input['move_3_redirecttime'] = '';
}
}
else
{
$move_checked[1] = "checked=\"checked\"";
$move_checked[2] = '';

$mybb->input['move_1_forum'] = '';
$mybb->input['move_2_redirect'] = 0;
$mybb->input['move_3_redirecttime'] = '';
}

if($mybb->input['copy_type'] == 2)
{
$copy_checked[1] = '';
$copy_checked[2] = "checked=\"checked\"";

if(!$mybb->input['copy_1_forum'])
{
$errors[] = $lang->error_no_copy_forum_selected;
}
else
{
$query = $db->simple_select("forums", "type", "fid = '".intval($mybb->input['copy_1_forum'])."'");
if($db->fetch_field($query, "type") == "c")
{
$errors[] = $lang->error_forum_is_category;
}
}
}
else
{

			$copy_checked[1] = "checked=\"checked\"";
$copy_checked[2] = '';

$mybb->input['copy_1_forum'] = '';

			$copy_checked[1] = "checked=\"checked\"";
$copy_checked[2] = '';

$mybb->input['copy_1_forum'] = '';

		}

if(!$errors)
{

		}

if(!$errors)
{

			$thread_options = array(
'deletethread' => $mybb->input['deletethread'],
'mergethreads' => $mybb->input['mergethreads'],

			$thread_options = array(
'deletethread' => $mybb->input['deletethread'],
'mergethreads' => $mybb->input['mergethreads'],

Zeile 327Zeile 328

$form = new Form("index.php?module=config-mod_tools&amp;action=edit_thread_tool", 'post');
echo $form->generate_hidden_field("tid", $mybb->input['tid']);


$form = new Form("index.php?module=config-mod_tools&amp;action=edit_thread_tool", 'post');
echo $form->generate_hidden_field("tid", $mybb->input['tid']);

	

	

	if($errors)

	if($errors)

	{

	{

		$page->output_inline_error($errors);
}
else

		$page->output_inline_error($errors);
}
else

Zeile 346Zeile 347
		{
$forum_checked[1] = "checked=\"checked\"";
$forum_checked[2] = '';

		{
$forum_checked[1] = "checked=\"checked\"";
$forum_checked[2] = '';

		}

		}

		else
{
$forum_checked[1] = '';

		else
{
$forum_checked[1] = '';

Zeile 386Zeile 387
		$mybb->input['mergethreads'] = $thread_options['mergethreads'];
$mybb->input['deletepoll'] = $thread_options['deletepoll'];
$mybb->input['removeredirects'] = $thread_options['removeredirects'];

		$mybb->input['mergethreads'] = $thread_options['mergethreads'];
$mybb->input['deletepoll'] = $thread_options['deletepoll'];
$mybb->input['removeredirects'] = $thread_options['removeredirects'];

		$mybb->input['threadprefix'] = $thread_options['threadprefix'];
$mybb->input['newsubject'] = $thread_options['newsubject'];
$mybb->input['newreply'] = $thread_options['addreply'];
$mybb->input['newreplysubject'] = $thread_options['replysubject'];
}

$form_container = new FormContainer($lang->general_options);
$form_container->output_row($lang->name." <em>*</em>", '', $form->generate_text_box('title', $mybb->input['title'], array('id' => 'title')), 'title');
$form_container->output_row($lang->short_description." <em>*</em>", '', $form->generate_text_box('description', $mybb->input['description'], array('id' => 'description')), 'description');


$actions = "<script type=\"text/javascript\">
function checkAction(id)
{
var checked = '';

$$('.'+id+'s_check').each(function(e)
{
if(e.checked == true)
{
checked = e.value;
}
});
$$('.'+id+'s').each(function(e)
{
Element.hide(e);
});
if($(id+'_'+checked))
{
Element.show(id+'_'+checked);
}
}
</script>
<dl style=\"margin-top: 0; margin-bottom: 0; width: 100%;\">
<dt><label style=\"display: block;\"><input type=\"radio\" name=\"forum_type\" value=\"1\" {$forum_checked[1]} class=\"forums_check\" onclick=\"checkAction('forum');\" style=\"vertical-align: middle;\" /> <strong>{$lang->all_forums}</strong></label></dt>
<dt><label style=\"display: block;\"><input type=\"radio\" name=\"forum_type\" value=\"2\" {$forum_checked[2]} class=\"forums_check\" onclick=\"checkAction('forum');\" style=\"vertical-align: middle;\" /> <strong>{$lang->select_forums}</strong></label></dt>
<dd style=\"margin-top: 4px;\" id=\"forum_2\" class=\"forums\">
<table cellpadding=\"4\">
<tr>
<td valign=\"top\"><small>{$lang->forums_colon}</small></td>
<td>".$form->generate_forum_select('forum_1_forums[]', $mybb->input['forum_1_forums'], array('multiple' => true, 'size' => 5))."</td>
</tr>
</table>
</dd>
</dl>
<script type=\"text/javascript\">
checkAction('forum');
</script>";
$form_container->output_row($lang->available_in_forums." <em>*</em>", '', $actions);
$form_container->end();

$approve_unapprove = array(
'' => $lang->no_change,
'approve' => $lang->approve,
'unapprove' => $lang->unapprove,
'toggle' => $lang->toggle
);

$open_close = array(
'' => $lang->no_change,
'open' => $lang->open,
'close' => $lang->close,
'toggle' => $lang->toggle
);

$form_container = new FormContainer($lang->thread_moderation);
$form_container->output_row($lang->approve_unapprove." <em>*</em>", '', $form->generate_select_box('approvethread', $approve_unapprove, $mybb->input['approvethread'], array('id' => 'approvethread')), 'approvethread');
$form_container->output_row($lang->open_close_thread." <em>*</em>", '', $form->generate_select_box('openthread', $open_close, $mybb->input['openthread'], array('id' => 'openthread')), 'openthread');


$actions = "
<dl style=\"margin-top: 0; margin-bottom: 0; width: 100%;\">
<dt><label style=\"display: block;\"><input type=\"radio\" name=\"move_type\" value=\"1\" {$move_checked[1]} class=\"moves_check\" onclick=\"checkAction('move');\" style=\"vertical-align: middle;\" /> <strong>{$lang->do_not_move_thread}</strong></label></dt>
<dt><label style=\"display: block;\"><input type=\"radio\" name=\"move_type\" value=\"2\" {$move_checked[2]} class=\"moves_check\" onclick=\"checkAction('move');\" style=\"vertical-align: middle;\" /> <strong>{$lang->move_thread}</strong></label></dt>
<dd style=\"margin-top: 4px;\" id=\"move_2\" class=\"moves\">
<table cellpadding=\"4\">
<tr>
<td><small>{$lang->forum_to_move_to}</small></td>
<td>".$form->generate_forum_select('move_1_forum', $mybb->input['move_1_forum'])."</td>
</tr>
<tr>
<td><small>{$lang->leave_redirect}</small></td>
<td>".$form->generate_yes_no_radio('move_2_redirect', $mybb->input['move_2_redirect'], array('style' => 'width: 2em;'))."</td>
</tr>
<tr>

		$mybb->input['threadprefix'] = $thread_options['threadprefix'];
$mybb->input['newsubject'] = $thread_options['newsubject'];
$mybb->input['newreply'] = $thread_options['addreply'];
$mybb->input['newreplysubject'] = $thread_options['replysubject'];
}

$form_container = new FormContainer($lang->general_options);
$form_container->output_row($lang->name." <em>*</em>", '', $form->generate_text_box('title', $mybb->input['title'], array('id' => 'title')), 'title');
$form_container->output_row($lang->short_description." <em>*</em>", '', $form->generate_text_box('description', $mybb->input['description'], array('id' => 'description')), 'description');


$actions = "<script type=\"text/javascript\">
function checkAction(id)
{
var checked = '';

$$('.'+id+'s_check').each(function(e)
{
if(e.checked == true)
{
checked = e.value;
}
});
$$('.'+id+'s').each(function(e)
{
Element.hide(e);
});
if($(id+'_'+checked))
{
Element.show(id+'_'+checked);
}
}
</script>
<dl style=\"margin-top: 0; margin-bottom: 0; width: 100%;\">
<dt><label style=\"display: block;\"><input type=\"radio\" name=\"forum_type\" value=\"1\" {$forum_checked[1]} class=\"forums_check\" onclick=\"checkAction('forum');\" style=\"vertical-align: middle;\" /> <strong>{$lang->all_forums}</strong></label></dt>
<dt><label style=\"display: block;\"><input type=\"radio\" name=\"forum_type\" value=\"2\" {$forum_checked[2]} class=\"forums_check\" onclick=\"checkAction('forum');\" style=\"vertical-align: middle;\" /> <strong>{$lang->select_forums}</strong></label></dt>
<dd style=\"margin-top: 4px;\" id=\"forum_2\" class=\"forums\">
<table cellpadding=\"4\">
<tr>
<td valign=\"top\"><small>{$lang->forums_colon}</small></td>
<td>".$form->generate_forum_select('forum_1_forums[]', $mybb->input['forum_1_forums'], array('multiple' => true, 'size' => 5))."</td>
</tr>
</table>
</dd>
</dl>
<script type=\"text/javascript\">
checkAction('forum');
</script>";
$form_container->output_row($lang->available_in_forums." <em>*</em>", '', $actions);
$form_container->end();

$approve_unapprove = array(
'' => $lang->no_change,
'approve' => $lang->approve,
'unapprove' => $lang->unapprove,
'toggle' => $lang->toggle
);

$open_close = array(
'' => $lang->no_change,
'open' => $lang->open,
'close' => $lang->close,
'toggle' => $lang->toggle
);

$form_container = new FormContainer($lang->thread_moderation);
$form_container->output_row($lang->approve_unapprove." <em>*</em>", '', $form->generate_select_box('approvethread', $approve_unapprove, $mybb->input['approvethread'], array('id' => 'approvethread')), 'approvethread');
$form_container->output_row($lang->open_close_thread." <em>*</em>", '', $form->generate_select_box('openthread', $open_close, $mybb->input['openthread'], array('id' => 'openthread')), 'openthread');


$actions = "
<dl style=\"margin-top: 0; margin-bottom: 0; width: 100%;\">
<dt><label style=\"display: block;\"><input type=\"radio\" name=\"move_type\" value=\"1\" {$move_checked[1]} class=\"moves_check\" onclick=\"checkAction('move');\" style=\"vertical-align: middle;\" /> <strong>{$lang->do_not_move_thread}</strong></label></dt>
<dt><label style=\"display: block;\"><input type=\"radio\" name=\"move_type\" value=\"2\" {$move_checked[2]} class=\"moves_check\" onclick=\"checkAction('move');\" style=\"vertical-align: middle;\" /> <strong>{$lang->move_thread}</strong></label></dt>
<dd style=\"margin-top: 4px;\" id=\"move_2\" class=\"moves\">
<table cellpadding=\"4\">
<tr>
<td><small>{$lang->forum_to_move_to}</small></td>
<td>".$form->generate_forum_select('move_1_forum', $mybb->input['move_1_forum'])."</td>
</tr>
<tr>
<td><small>{$lang->leave_redirect}</small></td>
<td>".$form->generate_yes_no_radio('move_2_redirect', $mybb->input['move_2_redirect'], array('style' => 'width: 2em;'))."</td>
</tr>
<tr>

					<td><small>{$lang->delete_redirect_after}</small></td>
<td>".$form->generate_text_box('move_3_redirecttime', $mybb->input['move_3_redirecttime'], array('style' => 'width: 2em;'))." {$lang->days}</td>
</tr>

					<td><small>{$lang->delete_redirect_after}</small></td>
<td>".$form->generate_text_box('move_3_redirecttime', $mybb->input['move_3_redirecttime'], array('style' => 'width: 2em;'))." {$lang->days}</td>
</tr>

Zeile 550Zeile 551
		if(trim($mybb->input['description']) == "")
{
$errors[] = $lang->error_missing_description;

		if(trim($mybb->input['description']) == "")
{
$errors[] = $lang->error_missing_description;

		}

		}

		
if($mybb->input['forum_type'] == 2)
{

		
if($mybb->input['forum_type'] == 2)
{

Zeile 599Zeile 600
			{
// Check that the destination forum is not a category
$query = $db->simple_select("forums", "type", "fid = '".intval($mybb->input['move_1_forum'])."'");

			{
// Check that the destination forum is not a category
$query = $db->simple_select("forums", "type", "fid = '".intval($mybb->input['move_1_forum'])."'");

				if($db->fetch_field($query, "type") == "c")
{
$errors[] = $lang->error_forum_is_category;
}
}

				if($db->fetch_field($query, "type") == "c")
{
$errors[] = $lang->error_forum_is_category;
}
}

		}
else
{

		}
else
{

Zeile 676Zeile 677
						$checked[] = intval($fid);
}
$new_tool['forums'] = implode(',', $checked);

						$checked[] = intval($fid);
}
$new_tool['forums'] = implode(',', $checked);

				}
}
else
{
$new_tool['forums'] = "-1";
}


				}
}
else
{
$new_tool['forums'] = "-1";
}


			if(intval($mybb->input['threadprefix']) >= 0)
{
$thread_options['threadprefix'] = intval($mybb->input['threadprefix']);

			if(intval($mybb->input['threadprefix']) >= 0)
{
$thread_options['threadprefix'] = intval($mybb->input['threadprefix']);

Zeile 788Zeile 789
	<dt><label style=\"display: block;\"><input type=\"radio\" name=\"forum_type\" value=\"1\" {$forum_checked[1]} class=\"forums_check\" onclick=\"checkAction('forum');\" style=\"vertical-align: middle;\" /> <strong>{$lang->all_forums}</strong></label></dt>
<dt><label style=\"display: block;\"><input type=\"radio\" name=\"forum_type\" value=\"2\" {$forum_checked[2]} class=\"forums_check\" onclick=\"checkAction('forum');\" style=\"vertical-align: middle;\" /> <strong>{$lang->select_forums}</strong></label></dt>
<dd style=\"margin-top: 4px;\" id=\"forum_2\" class=\"forums\">

	<dt><label style=\"display: block;\"><input type=\"radio\" name=\"forum_type\" value=\"1\" {$forum_checked[1]} class=\"forums_check\" onclick=\"checkAction('forum');\" style=\"vertical-align: middle;\" /> <strong>{$lang->all_forums}</strong></label></dt>
<dt><label style=\"display: block;\"><input type=\"radio\" name=\"forum_type\" value=\"2\" {$forum_checked[2]} class=\"forums_check\" onclick=\"checkAction('forum');\" style=\"vertical-align: middle;\" /> <strong>{$lang->select_forums}</strong></label></dt>
<dd style=\"margin-top: 4px;\" id=\"forum_2\" class=\"forums\">

			<table cellpadding=\"4\">

			<table cellpadding=\"4\">

				<tr>
<td valign=\"top\"><small>{$lang->forums_colon}</small></td>
<td>".$form->generate_forum_select('forum_1_forums[]', $mybb->input['forum_1_forums'], array('multiple' => true, 'size' => 5))."</td>

				<tr>
<td valign=\"top\"><small>{$lang->forums_colon}</small></td>
<td>".$form->generate_forum_select('forum_1_forums[]', $mybb->input['forum_1_forums'], array('multiple' => true, 'size' => 5))."</td>

Zeile 838Zeile 839
				<tr>
<td><small>{$lang->delete_redirect_after}</small></td>
<td>".$form->generate_text_box('move_3_redirecttime', $mybb->input['move_3_redirecttime'], array('style' => 'width: 2em;'))." {$lang->days}</td>

				<tr>
<td><small>{$lang->delete_redirect_after}</small></td>
<td>".$form->generate_text_box('move_3_redirecttime', $mybb->input['move_3_redirecttime'], array('style' => 'width: 2em;'))." {$lang->days}</td>

				</tr>
</table>
</dd>
</dl>

				</tr>
</table>
</dd>
</dl>

	<script type=\"text/javascript\">
checkAction('move');
</script>";

	<script type=\"text/javascript\">
checkAction('move');
</script>";

Zeile 890Zeile 891
	
$form_container = new FormContainer($lang->add_new_reply);
$form_container->output_row($lang->add_new_reply, $lang->add_new_reply_desc, $form->generate_text_area('newreply', $mybb->input['newreply'], array('id' => 'newreply')), 'newreply');

	
$form_container = new FormContainer($lang->add_new_reply);
$form_container->output_row($lang->add_new_reply, $lang->add_new_reply_desc, $form->generate_text_area('newreply', $mybb->input['newreply'], array('id' => 'newreply')), 'newreply');

	$form_container->output_row($lang->reply_subject, $lang->reply_subject_desc, $form->generate_text_box('newreplysubject', $mybb->input['newreplysubject'], array('id' => 'newreplysubject')), 'newreplysubject');
$form_container->end();

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

	$form_container->output_row($lang->reply_subject, $lang->reply_subject_desc, $form->generate_text_box('newreplysubject', $mybb->input['newreplysubject'], array('id' => 'newreplysubject')), 'newreplysubject');
$form_container->end();

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


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


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

Zeile 942Zeile 943
		}

if($mybb->input['openthread'] != '' && $mybb->input['openthread'] != 'open' && $mybb->input['openthread'] != 'close' && $mybb->input['openthread'] != 'toggle')

		}

if($mybb->input['openthread'] != '' && $mybb->input['openthread'] != 'open' && $mybb->input['openthread'] != 'close' && $mybb->input['openthread'] != 'toggle')

		{

		{

			$mybb->input['openthread'] = '';

			$mybb->input['openthread'] = '';

		}

		}

		
if($mybb->input['move_type'] == 2)

		
if($mybb->input['move_type'] == 2)

		{

		{

			if(!$mybb->input['move_1_forum'])
{
$errors[] = $lang->error_no_move_forum_selected;

			if(!$mybb->input['move_1_forum'])
{
$errors[] = $lang->error_no_move_forum_selected;

Zeile 966Zeile 967
		{
$mybb->input['move_1_forum'] = '';
$mybb->input['move_2_redirect'] = 0;

		{
$mybb->input['move_1_forum'] = '';
$mybb->input['move_2_redirect'] = 0;

			$mybb->input['move_3_redirecttime'] = '';
}

if($mybb->input['copy_type'] == 2)

			$mybb->input['move_3_redirecttime'] = '';
}

if($mybb->input['copy_type'] == 2)

		{
if(!$mybb->input['copy_1_forum'])
{

		{
if(!$mybb->input['copy_1_forum'])
{

Zeile 995Zeile 996
		}

if($mybb->input['splitposts'] < -2)

		}

if($mybb->input['splitposts'] < -2)

		{

		{

			$mybb->input['splitposts'] = -1;
}


			$mybb->input['splitposts'] = -1;
}


Zeile 1038Zeile 1039
				'copythread' => intval($mybb->input['copy_1_forum']),
'newsubject' => $mybb->input['newsubject'],
'addreply' => $mybb->input['newreply'],

				'copythread' => intval($mybb->input['copy_1_forum']),
'newsubject' => $mybb->input['newsubject'],
'addreply' => $mybb->input['newreply'],

				'replysubject' => $mybb->input['newreplysubject']


				'replysubject' => $mybb->input['newreplysubject'],
'threadprefix' => intval($mybb->input['threadprefix'])

			);

if(stripos($mybb->input['splitpostsnewsubject'], '{subject}') === false)

			);

if(stripos($mybb->input['splitpostsnewsubject'], '{subject}') === false)

Zeile 1081Zeile 1083

// Log admin action
log_admin_action($mybb->input['tid'], $mybb->input['title']);


// Log admin action
log_admin_action($mybb->input['tid'], $mybb->input['title']);

 
			$cache->update_forumsdisplay();

			
flash_message($lang->success_mod_tool_updated, 'success');
admin_redirect("index.php?module=config-mod_tools&action=post_tools");

			
flash_message($lang->success_mod_tool_updated, 'success');
admin_redirect("index.php?module=config-mod_tools&action=post_tools");

Zeile 1089Zeile 1092
	
$page->add_breadcrumb_item($lang->edit_post_tool);
$page->output_header($lang->mod_tools." - ".$lang->edit_post_tool);

	
$page->add_breadcrumb_item($lang->edit_post_tool);
$page->output_header($lang->mod_tools." - ".$lang->edit_post_tool);





	$sub_tabs['edit_post_tool'] = array(
"title" => $lang->edit_post_tool,
"description" => $lang->edit_post_tool_desc,

	$sub_tabs['edit_post_tool'] = array(
"title" => $lang->edit_post_tool,
"description" => $lang->edit_post_tool_desc,

Zeile 1099Zeile 1102
	$page->output_nav_tabs($sub_tabs, 'edit_post_tool');

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

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

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

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

if($errors)
{
$page->output_inline_error($errors);
}
else
{

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

if($errors)
{
$page->output_inline_error($errors);
}
else
{

		$query = $db->simple_select("modtools", "*", "tid = '{$mybb->input['tid']}'");
$modtool = $db->fetch_array($query);
$thread_options = unserialize($modtool['threadoptions']);

		$query = $db->simple_select("modtools", "*", "tid = '{$mybb->input['tid']}'");
$modtool = $db->fetch_array($query);
$thread_options = unserialize($modtool['threadoptions']);

Zeile 1137Zeile 1140
		{
$move_checked[1] = "checked=\"checked\"";
$move_checked[2] = '';

		{
$move_checked[1] = "checked=\"checked\"";
$move_checked[2] = '';

		}
else

		}
else

		{
$move_checked[1] = '';
$move_checked[2] = "checked=\"checked\"";

		{
$move_checked[1] = '';
$move_checked[2] = "checked=\"checked\"";

		}


		}


		if(!$thread_options['copythread'])
{
$copy_checked[1] = "checked=\"checked\"";
$copy_checked[2] = '';

		if(!$thread_options['copythread'])
{
$copy_checked[1] = "checked=\"checked\"";
$copy_checked[2] = '';

		}

		}

		else
{
$copy_checked[1] = '';

		else
{
$copy_checked[1] = '';

Zeile 1157Zeile 1160
		
$mybb->input['copy_1_forum'] = $thread_options['copythread'];
$mybb->input['deletethread'] = $thread_options['deletethread'];

		
$mybb->input['copy_1_forum'] = $thread_options['copythread'];
$mybb->input['deletethread'] = $thread_options['deletethread'];

 
		$mybb->input['threadprefix'] = $thread_options['threadprefix'];

		$mybb->input['newsubject'] = $thread_options['newsubject'];
$mybb->input['newreply'] = $thread_options['addreply'];
$mybb->input['newreplysubject'] = $thread_options['replysubject'];

		$mybb->input['newsubject'] = $thread_options['newsubject'];
$mybb->input['newreply'] = $thread_options['addreply'];
$mybb->input['newreplysubject'] = $thread_options['replysubject'];

Zeile 1256Zeile 1260
	$form_container->end();

$approve_unapprove = array(

	$form_container->end();

$approve_unapprove = array(

		'' => $lang->no_change,
'approve' => $lang->approve,
'unapprove' => $lang->unapprove,
'toggle' => $lang->toggle
);

$form_container = new FormContainer($lang->inline_post_moderation);
$form_container->output_row($lang->delete_posts." <em>*</em>", '', $form->generate_yes_no_radio('deleteposts', $mybb->input['deleteposts']));
$form_container->output_row($lang->merge_posts." <em>*</em>", $lang->merge_posts_desc, $form->generate_yes_no_radio('mergeposts', $mybb->input['mergeposts']));
$form_container->output_row($lang->approve_unapprove_posts." <em>*</em>", '', $form->generate_select_box('approveposts', $approve_unapprove, $mybb->input['approveposts'], array('id' => 'approveposts')), 'approveposts');
$form_container->end();

$selectoptions = "<option value=\"-1\"{$do_not_split_checked}>{$lang->do_not_split}</option>\n";
$selectoptions .= "<option value=\"-2\"{$split_same_checked} style=\"border-bottom: 1px solid #000;\">{$lang->split_to_same_forum}</option>\n";

$form_container = new FormContainer($lang->split_posts);
$form_container->output_row($lang->split_posts2." <em>*</em>", '', $form->generate_forum_select('splitposts', $mybb->input['splitposts']));
$form_container->output_row($lang->close_split_thread." <em>*</em>", '', $form->generate_yes_no_radio('splitpostsclose', $mybb->input['splitpostsclose']));
$form_container->output_row($lang->stick_split_thread." <em>*</em>", '', $form->generate_yes_no_radio('splitpostsstick', $mybb->input['splitpostsstick']));
$form_container->output_row($lang->unapprove_split_thread." <em>*</em>", '', $form->generate_yes_no_radio('splitpostsunapprove', $mybb->input['splitpostsunapprove']));
$form_container->output_row($lang->split_thread_subject, $lang->split_thread_subject_desc, $form->generate_text_box('splitpostsnewsubject', $mybb->input['splitpostsnewsubject'], array('id' => 'splitpostsnewsubject ')), 'newreplysubject');
$form_container->output_row($lang->add_new_split_reply, $lang->add_new_split_reply_desc, $form->generate_text_area('splitpostsaddreply', $mybb->input['splitpostsaddreply'], array('id' => 'splitpostsaddreply')), 'splitpostsaddreply');
$form_container->output_row($lang->split_reply_subject, $lang->split_reply_subject_desc, $form->generate_text_box('splitpostsreplysubject', $mybb->input['splitpostsreplysubject'], array('id' => 'splitpostsreplysubject')), 'splitpostsreplysubject');
$form_container->end();

$open_close = array(
'' => $lang->no_change,
'open' => $lang->open,
'close' => $lang->close,
'toggle' => $lang->toggle
);

$form_container = new FormContainer($lang->thread_moderation);
$form_container->output_row($lang->approve_unapprove." <em>*</em>", '', $form->generate_select_box('approvethread', $approve_unapprove, $mybb->input['approvethread'], array('id' => 'approvethread')), 'approvethread');
$form_container->output_row($lang->open_close_thread." <em>*</em>", '', $form->generate_select_box('openthread', $open_close, $mybb->input['openthread'], array('id' => 'openthread')), 'openthread');


$actions = "
<dl style=\"margin-top: 0; margin-bottom: 0; width: 100%;\">
<dt><label style=\"display: block;\"><input type=\"radio\" name=\"move_type\" value=\"1\" {$move_checked[1]} class=\"moves_check\" onclick=\"checkAction('move');\" style=\"vertical-align: middle;\" /> <strong>{$lang->do_not_move_thread}</strong></label></dt>
<dt><label style=\"display: block;\"><input type=\"radio\" name=\"move_type\" value=\"2\" {$move_checked[2]} class=\"moves_check\" onclick=\"checkAction('move');\" style=\"vertical-align: middle;\" /> <strong>{$lang->move_thread}</strong></label></dt>
<dd style=\"margin-top: 4px;\" id=\"move_2\" class=\"moves\">
<table cellpadding=\"4\">
<tr>
<td><small>{$lang->forum_to_move_to}</small></td>
<td>".$form->generate_forum_select('move_1_forum', $mybb->input['move_1_forum'])."</td>
</tr>
<tr>
<td><small>{$lang->leave_redirect}</small></td>
<td>".$form->generate_yes_no_radio('move_2_redirect', $mybb->input['move_2_redirect'])."</td>
</tr>
<tr>
<td><small>{$lang->delete_redirect_after}</small></td>
<td>".$form->generate_text_box('move_3_redirecttime', $mybb->input['move_3_redirecttime'], array('style' => 'width: 2em;'))." {$lang->days}</td>
</tr>
</table>
</dd>
</dl>
<script type=\"text/javascript\">
checkAction('move');
</script>";
$form_container->output_row($lang->move_thread." <em>*</em>", $lang->move_thread_desc, $actions);

		'' => $lang->no_change,
'approve' => $lang->approve,
'unapprove' => $lang->unapprove,
'toggle' => $lang->toggle
);

$form_container = new FormContainer($lang->inline_post_moderation);
$form_container->output_row($lang->delete_posts." <em>*</em>", '', $form->generate_yes_no_radio('deleteposts', $mybb->input['deleteposts']));
$form_container->output_row($lang->merge_posts." <em>*</em>", $lang->merge_posts_desc, $form->generate_yes_no_radio('mergeposts', $mybb->input['mergeposts']));
$form_container->output_row($lang->approve_unapprove_posts." <em>*</em>", '', $form->generate_select_box('approveposts', $approve_unapprove, $mybb->input['approveposts'], array('id' => 'approveposts')), 'approveposts');
$form_container->end();

$selectoptions = "<option value=\"-1\"{$do_not_split_checked}>{$lang->do_not_split}</option>\n";
$selectoptions .= "<option value=\"-2\"{$split_same_checked} style=\"border-bottom: 1px solid #000;\">{$lang->split_to_same_forum}</option>\n";

$form_container = new FormContainer($lang->split_posts);
$form_container->output_row($lang->split_posts2." <em>*</em>", '', $form->generate_forum_select('splitposts', $mybb->input['splitposts']));
$form_container->output_row($lang->close_split_thread." <em>*</em>", '', $form->generate_yes_no_radio('splitpostsclose', $mybb->input['splitpostsclose']));
$form_container->output_row($lang->stick_split_thread." <em>*</em>", '', $form->generate_yes_no_radio('splitpostsstick', $mybb->input['splitpostsstick']));
$form_container->output_row($lang->unapprove_split_thread." <em>*</em>", '', $form->generate_yes_no_radio('splitpostsunapprove', $mybb->input['splitpostsunapprove']));
$form_container->output_row($lang->split_thread_subject, $lang->split_thread_subject_desc, $form->generate_text_box('splitpostsnewsubject', $mybb->input['splitpostsnewsubject'], array('id' => 'splitpostsnewsubject ')), 'newreplysubject');
$form_container->output_row($lang->add_new_split_reply, $lang->add_new_split_reply_desc, $form->generate_text_area('splitpostsaddreply', $mybb->input['splitpostsaddreply'], array('id' => 'splitpostsaddreply')), 'splitpostsaddreply');
$form_container->output_row($lang->split_reply_subject, $lang->split_reply_subject_desc, $form->generate_text_box('splitpostsreplysubject', $mybb->input['splitpostsreplysubject'], array('id' => 'splitpostsreplysubject')), 'splitpostsreplysubject');
$form_container->end();

$open_close = array(
'' => $lang->no_change,
'open' => $lang->open,
'close' => $lang->close,
'toggle' => $lang->toggle
);

$form_container = new FormContainer($lang->thread_moderation);
$form_container->output_row($lang->approve_unapprove." <em>*</em>", '', $form->generate_select_box('approvethread', $approve_unapprove, $mybb->input['approvethread'], array('id' => 'approvethread')), 'approvethread');
$form_container->output_row($lang->open_close_thread." <em>*</em>", '', $form->generate_select_box('openthread', $open_close, $mybb->input['openthread'], array('id' => 'openthread')), 'openthread');


$actions = "
<dl style=\"margin-top: 0; margin-bottom: 0; width: 100%;\">
<dt><label style=\"display: block;\"><input type=\"radio\" name=\"move_type\" value=\"1\" {$move_checked[1]} class=\"moves_check\" onclick=\"checkAction('move');\" style=\"vertical-align: middle;\" /> <strong>{$lang->do_not_move_thread}</strong></label></dt>
<dt><label style=\"display: block;\"><input type=\"radio\" name=\"move_type\" value=\"2\" {$move_checked[2]} class=\"moves_check\" onclick=\"checkAction('move');\" style=\"vertical-align: middle;\" /> <strong>{$lang->move_thread}</strong></label></dt>
<dd style=\"margin-top: 4px;\" id=\"move_2\" class=\"moves\">
<table cellpadding=\"4\">
<tr>
<td><small>{$lang->forum_to_move_to}</small></td>
<td>".$form->generate_forum_select('move_1_forum', $mybb->input['move_1_forum'])."</td>
</tr>
<tr>
<td><small>{$lang->leave_redirect}</small></td>
<td>".$form->generate_yes_no_radio('move_2_redirect', $mybb->input['move_2_redirect'])."</td>
</tr>
<tr>
<td><small>{$lang->delete_redirect_after}</small></td>
<td>".$form->generate_text_box('move_3_redirecttime', $mybb->input['move_3_redirecttime'], array('style' => 'width: 2em;'))." {$lang->days}</td>
</tr>
</table>
</dd>
</dl>
<script type=\"text/javascript\">
checkAction('move');
</script>";
$form_container->output_row($lang->move_thread." <em>*</em>", $lang->move_thread_desc, $actions);

	
$actions = "
<dl style=\"margin-top: 0; margin-bottom: 0; width: 100%;\">

	
$actions = "
<dl style=\"margin-top: 0; margin-bottom: 0; width: 100%;\">

Zeile 1337Zeile 1341
	</script>";
$form_container->output_row($lang->copy_thread." <em>*</em>", '', $actions);
$form_container->output_row($lang->delete_thread." <em>*</em>", '', $form->generate_yes_no_radio('deletethread', $mybb->input['deletethread']));

	</script>";
$form_container->output_row($lang->copy_thread." <em>*</em>", '', $actions);
$form_container->output_row($lang->delete_thread." <em>*</em>", '', $form->generate_yes_no_radio('deletethread', $mybb->input['deletethread']));

 

$query = $db->simple_select('threadprefixes', 'pid, prefix');
if($db->num_rows($query) > 0)
{
$thread_prefixes = array(
'-1' => $lang->no_change,
'0' => $lang->no_prefix
);

while($prefix = $db->fetch_array($query))
{
$thread_prefixes[$prefix['pid']] = $prefix['prefix'];
}

$form_container->output_row($lang->apply_thread_prefix." <em>*</em>", '', $form->generate_select_box('threadprefix', $thread_prefixes, $mybb->input['threadprefix'], array('id' => 'threadprefix')), 'threadprefix');
}


	$form_container->output_row($lang->new_subject." <em>*</em>", $lang->new_subject_desc, $form->generate_text_box('newsubject', $mybb->input['newsubject']));
$form_container->end();


	$form_container->output_row($lang->new_subject." <em>*</em>", $lang->new_subject_desc, $form->generate_text_box('newsubject', $mybb->input['newsubject']));
$form_container->end();


Zeile 1362Zeile 1383
		if(trim($mybb->input['title']) == "")
{
$errors[] = $lang->error_missing_title;

		if(trim($mybb->input['title']) == "")
{
$errors[] = $lang->error_missing_title;

		}


		}


		if(trim($mybb->input['description']) == "")
{
$errors[] = $lang->error_missing_description;

		if(trim($mybb->input['description']) == "")
{
$errors[] = $lang->error_missing_description;

Zeile 1385Zeile 1406
			$forum_checked[2] = '';

$mybb->input['forum_1_forums'] = '';

			$forum_checked[2] = '';

$mybb->input['forum_1_forums'] = '';

		}


		}


		
if($mybb->input['approvethread'] != '' && $mybb->input['approvethread'] != 'approve' && $mybb->input['approvethread'] != 'unapprove' && $mybb->input['approvethread'] != 'toggle')

		
if($mybb->input['approvethread'] != '' && $mybb->input['approvethread'] != 'approve' && $mybb->input['approvethread'] != 'unapprove' && $mybb->input['approvethread'] != 'toggle')

		{

		{

			$mybb->input['approvethread'] = '';

			$mybb->input['approvethread'] = '';

		}

		}

		
if($mybb->input['openthread'] != '' && $mybb->input['openthread'] != 'open' && $mybb->input['openthread'] != 'close' && $mybb->input['openthread'] != 'toggle')
{
$mybb->input['openthread'] = '';
}

		
if($mybb->input['openthread'] != '' && $mybb->input['openthread'] != 'open' && $mybb->input['openthread'] != 'close' && $mybb->input['openthread'] != 'toggle')
{
$mybb->input['openthread'] = '';
}

		







if(!intval($mybb->input['threadprefix']))
{
$mybb->input['threadprefix'] = '';
}


		if($mybb->input['move_type'] == 2)
{
$move_checked[1] = '';

		if($mybb->input['move_type'] == 2)
{
$move_checked[1] = '';

Zeile 1502Zeile 1528
				'copythread' => intval($mybb->input['copy_1_forum']),
'newsubject' => $mybb->input['newsubject'],
'addreply' => $mybb->input['newreply'],

				'copythread' => intval($mybb->input['copy_1_forum']),
'newsubject' => $mybb->input['newsubject'],
'addreply' => $mybb->input['newreply'],

				'replysubject' => $mybb->input['newreplysubject']


				'replysubject' => $mybb->input['newreplysubject'],
'threadprefix' => $mybb->input['threadprefix']

			);

if(stripos($mybb->input['splitpostsnewsubject'], '{subject}') === false)

			);

if(stripos($mybb->input['splitpostsnewsubject'], '{subject}') === false)

Zeile 1545Zeile 1572

// Log admin action
log_admin_action($tid, $mybb->input['title']);


// Log admin action
log_admin_action($tid, $mybb->input['title']);

 
			$cache->update_forumsdisplay();

			
flash_message($lang->success_mod_tool_created, 'success');
admin_redirect("index.php?module=config-mod_tools&action=post_tools");

			
flash_message($lang->success_mod_tool_created, 'success');
admin_redirect("index.php?module=config-mod_tools&action=post_tools");

Zeile 1598Zeile 1626
		$copy_checked[2] = '';
$mybb->input['copy_1_forum'] = '';
$mybb->input['deletethread'] = '0';

		$copy_checked[2] = '';
$mybb->input['copy_1_forum'] = '';
$mybb->input['deletethread'] = '0';

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

		$mybb->input['newsubject'] = '{subject}';
$mybb->input['newreply'] = '';
$mybb->input['newreplysubject'] = '{subject}';

		$mybb->input['newsubject'] = '{subject}';
$mybb->input['newreply'] = '';
$mybb->input['newreplysubject'] = '{subject}';

Zeile 1619Zeile 1648
	$form_container->output_row($lang->name." <em>*</em>", '', $form->generate_text_box('title', $mybb->input['title'], array('id' => 'title')), 'title');
$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->name." <em>*</em>", '', $form->generate_text_box('title', $mybb->input['title'], array('id' => 'title')), 'title');
$form_container->output_row($lang->short_description." <em>*</em>", '', $form->generate_text_box('description', $mybb->input['description'], array('id' => 'description')), 'description');






	$actions = "<script type=\"text/javascript\">
function checkAction(id)
{

	$actions = "<script type=\"text/javascript\">
function checkAction(id)
{

Zeile 1692Zeile 1721
		'close' => $lang->close,
'toggle' => $lang->toggle
);

		'close' => $lang->close,
'toggle' => $lang->toggle
);

	

	

	$form_container = new FormContainer($lang->thread_moderation);
$form_container->output_row($lang->approve_unapprove." <em>*</em>", '', $form->generate_select_box('approvethread', $approve_unapprove, $mybb->input['approvethread'], array('id' => 'approvethread')), 'approvethread');
$form_container->output_row($lang->open_close_thread." <em>*</em>", '', $form->generate_select_box('openthread', $open_close, $mybb->input['openthread'], array('id' => 'openthread')), 'openthread');


	$form_container = new FormContainer($lang->thread_moderation);
$form_container->output_row($lang->approve_unapprove." <em>*</em>", '', $form->generate_select_box('approvethread', $approve_unapprove, $mybb->input['approvethread'], array('id' => 'approvethread')), 'approvethread');
$form_container->output_row($lang->open_close_thread." <em>*</em>", '', $form->generate_select_box('openthread', $open_close, $mybb->input['openthread'], array('id' => 'openthread')), 'openthread');






	$actions = "
<dl style=\"margin-top: 0; margin-bottom: 0; width: 100%;\">
<dt><label style=\"display: block;\"><input type=\"radio\" name=\"move_type\" value=\"1\" {$move_checked[1]} class=\"moves_check\" onclick=\"checkAction('move');\" style=\"vertical-align: middle;\" /> <strong>{$lang->do_not_move_thread}</strong></label></dt>

	$actions = "
<dl style=\"margin-top: 0; margin-bottom: 0; width: 100%;\">
<dt><label style=\"display: block;\"><input type=\"radio\" name=\"move_type\" value=\"1\" {$move_checked[1]} class=\"moves_check\" onclick=\"checkAction('move');\" style=\"vertical-align: middle;\" /> <strong>{$lang->do_not_move_thread}</strong></label></dt>

Zeile 1715Zeile 1744
				<tr>
<td><small>{$lang->delete_redirect_after}</small></td>
<td>".$form->generate_text_box('move_3_redirecttime', $mybb->input['move_3_redirecttime'], array('style' => 'width: 2em;'))." {$lang->days}</td>

				<tr>
<td><small>{$lang->delete_redirect_after}</small></td>
<td>".$form->generate_text_box('move_3_redirecttime', $mybb->input['move_3_redirecttime'], array('style' => 'width: 2em;'))." {$lang->days}</td>

				</tr>
</table>
</dd>

				</tr>
</table>
</dd>

	</dl>
<script type=\"text/javascript\">
checkAction('move');

	</dl>
<script type=\"text/javascript\">
checkAction('move');

Zeile 1742Zeile 1771
	</script>";
$form_container->output_row($lang->copy_thread." <em>*</em>", '', $actions);
$form_container->output_row($lang->delete_thread." <em>*</em>", '', $form->generate_yes_no_radio('deletethread', $mybb->input['deletethread']));

	</script>";
$form_container->output_row($lang->copy_thread." <em>*</em>", '', $actions);
$form_container->output_row($lang->delete_thread." <em>*</em>", '', $form->generate_yes_no_radio('deletethread', $mybb->input['deletethread']));

 

$query = $db->simple_select('threadprefixes', 'pid, prefix');
if($db->num_rows($query) > 0)
{
$thread_prefixes = array(
'-1' => $lang->no_change,
'0' => $lang->no_prefix
);

while($prefix = $db->fetch_array($query))
{
$thread_prefixes[$prefix['pid']] = $prefix['prefix'];
}

$form_container->output_row($lang->apply_thread_prefix." <em>*</em>", '', $form->generate_select_box('threadprefix', $thread_prefixes, $mybb->input['threadprefix'], array('id' => 'threadprefix')), 'threadprefix');
}


	$form_container->output_row($lang->new_subject." <em>*</em>", $lang->new_subject_desc, $form->generate_text_box('newsubject', $mybb->input['newsubject']));
$form_container->end();


	$form_container->output_row($lang->new_subject." <em>*</em>", $lang->new_subject_desc, $form->generate_text_box('newsubject', $mybb->input['newsubject']));
$form_container->end();