Zeile 24 | Zeile 24 |
---|
$tool = $db->fetch_array($query);
// Does the post tool not exist?
|
$tool = $db->fetch_array($query);
// Does the post tool not exist?
|
if(!$tool['tid'])
| if(!$tool)
|
{ flash_message($lang->error_invalid_post_tool, 'error'); admin_redirect("index.php?module=config-mod_tools&action=post_tools"); }
// User clicked no
|
{ flash_message($lang->error_invalid_post_tool, 'error'); admin_redirect("index.php?module=config-mod_tools&action=post_tools"); }
// User clicked no
|
if($mybb->input['no'])
| if($mybb->get_input('no'))
|
{ admin_redirect("index.php?module=config-mod_tools&action=post_tools"); }
| { admin_redirect("index.php?module=config-mod_tools&action=post_tools"); }
|
Zeile 64 | Zeile 64 |
---|
$tool = $db->fetch_array($query);
// Does the post tool not exist?
|
$tool = $db->fetch_array($query);
// Does the post tool not exist?
|
if(!$tool['tid'])
| if(!$tool)
|
{ flash_message($lang->error_invalid_thread_tool, 'error'); admin_redirect("index.php?module=config-mod_tools"); }
// User clicked no
|
{ flash_message($lang->error_invalid_thread_tool, 'error'); admin_redirect("index.php?module=config-mod_tools"); }
// User clicked no
|
if($mybb->input['no'])
| if($mybb->get_input('no'))
|
{ admin_redirect("index.php?module=config-mod_tools"); }
| { admin_redirect("index.php?module=config-mod_tools"); }
|
Zeile 177 | Zeile 177 |
---|
$forum_checked[1] = ''; $forum_checked[2] = "checked=\"checked\"";
|
$forum_checked[1] = ''; $forum_checked[2] = "checked=\"checked\"";
|
if(count($mybb->input['forum_1_forums']) < 1)
| if(is_array($mybb->input['forum_1_forums']) && count($mybb->input['forum_1_forums']) < 1)
|
{ $errors[] = $lang->error_no_forums_selected; }
| { $errors[] = $lang->error_no_forums_selected; }
|
Zeile 195 | Zeile 195 |
---|
$group_checked[1] = ''; $group_checked[2] = "checked=\"checked\"";
|
$group_checked[1] = ''; $group_checked[2] = "checked=\"checked\"";
|
if(count($mybb->input['group_1_groups']) < 1)
| if(is_array($mybb->input['group_1_groups']) && count($mybb->input['group_1_groups']) < 1)
|
{ $errors[] = $lang->error_no_groups_selected; }
| { $errors[] = $lang->error_no_groups_selected; }
|
Zeile 240 | Zeile 240 |
---|
else { // Check that the destination forum is not a category
|
else { // Check that the destination forum is not a category
|
$query = $db->simple_select("forums", "type", "fid = '".(int)$mybb->input['move_1_forum']."'");
| $query = $db->simple_select("forums", "type", "fid = '".$mybb->get_input('move_1_forum', MyBB::INPUT_INT)."'");
|
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;
|
Zeile 278 | Zeile 278 |
---|
} else {
|
} else {
|
$query = $db->simple_select("forums", "type", "fid = '".(int)$mybb->input['copy_1_forum']."'");
| $query = $db->simple_select("forums", "type", "fid = '".$mybb->get_input('copy_1_forum', MyBB::INPUT_INT)."'");
|
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;
|
Zeile 296 | Zeile 296 |
---|
if(!$errors) { $thread_options = array(
|
if(!$errors) { $thread_options = array(
|
'confirmation' => $mybb->input['confirmation'], 'deletethread' => $mybb->input['deletethread'], 'mergethreads' => $mybb->input['mergethreads'], 'deletepoll' => $mybb->input['deletepoll'], 'removeredirects' => $mybb->input['removeredirects'], 'removesubscriptions' => $mybb->input['removesubscriptions'], 'recountrebuild' => $mybb->input['recountrebuild'],
| 'confirmation' => $mybb->get_input('confirmation', MyBB::INPUT_INT), 'deletethread' => $mybb->get_input('deletethread', MyBB::INPUT_INT), 'mergethreads' => $mybb->get_input('mergethreads', MyBB::INPUT_INT), 'deletepoll' => $mybb->get_input('deletepoll', MyBB::INPUT_INT), 'removeredirects' => $mybb->get_input('removeredirects', MyBB::INPUT_INT), 'removesubscriptions' => $mybb->get_input('removesubscriptions', MyBB::INPUT_INT), 'recountrebuild' => $mybb->get_input('recountrebuild', MyBB::INPUT_INT),
|
'approvethread' => $mybb->input['approvethread'], 'softdeletethread' => $mybb->input['softdeletethread'], 'openthread' => $mybb->input['openthread'], 'stickthread' => $mybb->input['stickthread'],
|
'approvethread' => $mybb->input['approvethread'], 'softdeletethread' => $mybb->input['softdeletethread'], 'openthread' => $mybb->input['openthread'], 'stickthread' => $mybb->input['stickthread'],
|
'movethread' => (int)$mybb->input['move_1_forum'], 'movethreadredirect' => $mybb->input['move_2_redirect'], 'movethreadredirectexpire' => (int)$mybb->input['move_3_redirecttime'], 'copythread' => (int)$mybb->input['copy_1_forum'],
| 'movethread' => $mybb->get_input('move_1_forum', MyBB::INPUT_INT), 'movethreadredirect' => $mybb->get_input('move_2_redirect', MyBB::INPUT_INT), 'movethreadredirectexpire' => $mybb->get_input('move_3_redirecttime', MyBB::INPUT_INT), 'copythread' => $mybb->get_input('copy_1_forum', MyBB::INPUT_INT),
|
'newsubject' => $mybb->input['newsubject'], 'addreply' => $mybb->input['newreply'], 'replysubject' => $mybb->input['newreplysubject'], 'pm_subject' => $mybb->input['pm_subject'], 'pm_message' => $mybb->input['pm_message'],
|
'newsubject' => $mybb->input['newsubject'], 'addreply' => $mybb->input['newreply'], 'replysubject' => $mybb->input['newreplysubject'], 'pm_subject' => $mybb->input['pm_subject'], 'pm_message' => $mybb->input['pm_message'],
|
'threadprefix' => (int)$mybb->input['threadprefix']
| 'threadprefix' => $mybb->get_input('threadprefix', MyBB::INPUT_INT)
|
);
|
);
|
| $args = array( 'thread_options' => &$thread_options, );
$plugins->run_hooks("admin_config_mod_tools_edit_thread_tool_options", $args);
|
$update_tool['type'] = 't';
|
$update_tool['type'] = 't';
|
$update_tool['threadoptions'] = $db->escape_string(serialize($thread_options));
| $update_tool['threadoptions'] = $db->escape_string(my_serialize($thread_options));
|
$update_tool['name'] = $db->escape_string($mybb->input['title']); $update_tool['description'] = $db->escape_string($mybb->input['description']); $update_tool['forums'] = ''; $update_tool['groups'] = '';
|
$update_tool['name'] = $db->escape_string($mybb->input['title']); $update_tool['description'] = $db->escape_string($mybb->input['description']); $update_tool['forums'] = ''; $update_tool['groups'] = '';
|
|
|
if($mybb->input['forum_type'] == 2) { if(is_array($mybb->input['forum_1_forums']))
| if($mybb->input['forum_type'] == 2) { if(is_array($mybb->input['forum_1_forums']))
|
Zeile 335 | Zeile 341 |
---|
foreach($mybb->input['forum_1_forums'] as $fid) { $checked[] = (int)$fid;
|
foreach($mybb->input['forum_1_forums'] as $fid) { $checked[] = (int)$fid;
|
}
| }
|
$update_tool['forums'] = implode(',', $checked); }
| $update_tool['forums'] = implode(',', $checked); }
|
Zeile 410 | Zeile 416 |
---|
{ $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 446 | Zeile 452 |
---|
{ $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
|
else
|
{
| {
|
$copy_checked[1] = ''; $copy_checked[2] = "checked=\"checked\""; }
| $copy_checked[1] = ''; $copy_checked[2] = "checked=\"checked\""; }
|
Zeile 466 | Zeile 472 |
---|
$mybb->input['removeredirects'] = $thread_options['removeredirects']; $mybb->input['removesubscriptions'] = $thread_options['removesubscriptions']; $mybb->input['recountrebuild'] = $thread_options['recountrebuild'];
|
$mybb->input['removeredirects'] = $thread_options['removeredirects']; $mybb->input['removesubscriptions'] = $thread_options['removesubscriptions']; $mybb->input['recountrebuild'] = $thread_options['recountrebuild'];
|
$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['pm_subject'] = $thread_options['pm_subject']; $mybb->input['pm_message'] = $thread_options['pm_message']; }
$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, val) { if($(this).prop('checked') == true) { checked = $(this).val(); } }); $('.'+id+'s').each(function(e) { $(this).hide(); }); if($('#'+id+'_'+checked)) { $('#'+id+'_'+checked).show(); } } </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);
$actions = "<dl style=\"margin-top: 0; margin-bottom: 0; width: 100%;\"> <dt><label style=\"display: block;\"><input type=\"radio\" name=\"group_type\" value=\"1\" {$group_checked[1]} class=\"groups_check\" onclick=\"checkAction('group');\" style=\"vertical-align: middle;\" /> <strong>{$lang->all_groups}</strong></label></dt> <dt><label style=\"display: block;\"><input type=\"radio\" name=\"group_type\" value=\"2\" {$group_checked[2]} class=\"groups_check\" onclick=\"checkAction('group');\" style=\"vertical-align: middle;\" /> <strong>{$lang->select_groups}</strong></label></dt> <dd style=\"margin-top: 4px;\" id=\"group_2\" class=\"groups\"> <table cellpadding=\"4\"> <tr> <td valign=\"top\"><small>{$lang->groups_colon}</small></td> <td>".$form->generate_group_select('group_1_groups[]', $mybb->input['group_1_groups'], array('multiple' => true, 'size' => 5))."</td> </tr> </table> </dd> </dl> <script type=\"text/javascript\"> checkAction('group'); </script>"; $form_container->output_row($lang->available_to_groups." <em>*</em>", '', $actions); $form_container->output_row($lang->show_confirmation." <em>*</em>", '', $form->generate_yes_no_radio('confirmation', $mybb->input['confirmation'], array('style' => 'width: 2em;'))); $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 );
$stick_unstick = array( '' => $lang->no_change, 'stick' => $lang->stick, 'unstick' => $lang->unstick, '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');
| $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['pm_subject'] = $thread_options['pm_subject']; $mybb->input['pm_message'] = $thread_options['pm_message']; }
$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, val) { if($(this).prop('checked') == true) { checked = $(this).val(); } }); $('.'+id+'s').each(function(e) { $(this).hide(); }); if($('#'+id+'_'+checked)) { $('#'+id+'_'+checked).show(); } } </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);
$actions = "<dl style=\"margin-top: 0; margin-bottom: 0; width: 100%;\"> <dt><label style=\"display: block;\"><input type=\"radio\" name=\"group_type\" value=\"1\" {$group_checked[1]} class=\"groups_check\" onclick=\"checkAction('group');\" style=\"vertical-align: middle;\" /> <strong>{$lang->all_groups}</strong></label></dt> <dt><label style=\"display: block;\"><input type=\"radio\" name=\"group_type\" value=\"2\" {$group_checked[2]} class=\"groups_check\" onclick=\"checkAction('group');\" style=\"vertical-align: middle;\" /> <strong>{$lang->select_groups}</strong></label></dt> <dd style=\"margin-top: 4px;\" id=\"group_2\" class=\"groups\"> <table cellpadding=\"4\"> <tr> <td valign=\"top\"><small>{$lang->groups_colon}</small></td> <td>".$form->generate_group_select('group_1_groups[]', $mybb->input['group_1_groups'], array('multiple' => true, 'size' => 5))."</td> </tr> </table> </dd> </dl> <script type=\"text/javascript\"> checkAction('group'); </script>"; $form_container->output_row($lang->available_to_groups." <em>*</em>", '', $actions); $form_container->output_row($lang->show_confirmation." <em>*</em>", '', $form->generate_yes_no_radio('confirmation', $mybb->input['confirmation'], array('style' => 'width: 2em;'))); $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 );
$stick_unstick = array( '' => $lang->no_change, 'stick' => $lang->stick, 'unstick' => $lang->unstick, '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->output_row($lang->stick_unstick_thread." <em>*</em>", '', $form->generate_select_box('stickthread', $stick_unstick, $mybb->input['stickthread'], array('id' => 'stickthread')), 'stickthread');
| $form_container->output_row($lang->stick_unstick_thread." <em>*</em>", '', $form->generate_select_box('stickthread', $stick_unstick, $mybb->input['stickthread'], array('id' => 'stickthread')), 'stickthread');
|
Zeile 579 | Zeile 585 |
---|
</tr> <tr> <td><small>{$lang->delete_redirect_after}</small></td>
|
</tr> <tr> <td><small>{$lang->delete_redirect_after}</small></td>
|
<td>".$form->generate_numeric_field('move_3_redirecttime', $mybb->input['move_3_redirecttime'], array('style' => 'width: 2em;'))." {$lang->days}</td>
| <td>".$form->generate_numeric_field('move_3_redirecttime', $mybb->input['move_3_redirecttime'], array('style' => 'width: 3em;', 'min' => 0))." {$lang->days}</td>
|
</tr> </table> </dd>
| </tr> </table> </dd>
|
Zeile 635 | Zeile 641 |
---|
$thread_prefixes[$prefix['pid']] = $prefix['prefix']; }
|
$thread_prefixes[$prefix['pid']] = $prefix['prefix']; }
|
$form_container->output_row($lang->apply_thread_prefix." <em>*</em>", '', $form->generate_select_box('threadprefix', $thread_prefixes, array((int)$mybb->input['threadprefix']), array('id' => 'threadprefix')), 'threadprefix');
| $form_container->output_row($lang->apply_thread_prefix." <em>*</em>", '', $form->generate_select_box('threadprefix', $thread_prefixes, array($mybb->get_input('threadprefix', MyBB::INPUT_INT)), array('id' => 'threadprefix')), 'threadprefix');
|
}
|
}
|
| $form_container->output_row($lang->subject_message_replacements, $lang->subject_message_replacements_desc);
|
$form_container->output_row($lang->new_subject." <em>*</em>", $lang->new_subject_desc, $form->generate_text_box('newsubject', $mybb->input['newsubject'], array('id' => 'newsubject'))); $form_container->end();
$form_container = new FormContainer($lang->add_new_reply);
|
$form_container->output_row($lang->new_subject." <em>*</em>", $lang->new_subject_desc, $form->generate_text_box('newsubject', $mybb->input['newsubject'], array('id' => 'newsubject'))); $form_container->end();
$form_container = new FormContainer($lang->add_new_reply);
|
| $form_container->output_row($lang->subject_message_replacements, $lang->subject_message_replacements_desc);
|
$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();
$form_container = new FormContainer($lang->send_private_message);
|
$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();
$form_container = new FormContainer($lang->send_private_message);
|
| $form_container->output_row($lang->subject_message_replacements, $lang->subject_message_replacements_desc);
|
$form_container->output_row($lang->private_message_message, $lang->private_message_message_desc, $form->generate_text_area('pm_message', $mybb->input['pm_message'], array('id' => 'pm_message')), 'pm_message'); $form_container->output_row($lang->private_message_subject, $lang->private_message_subject_desc, $form->generate_text_box('pm_subject', $mybb->input['pm_subject'], array('id' => 'pm_subject')), 'pm_subject'); $form_container->end();
|
$form_container->output_row($lang->private_message_message, $lang->private_message_message_desc, $form->generate_text_area('pm_message', $mybb->input['pm_message'], array('id' => 'pm_message')), 'pm_message'); $form_container->output_row($lang->private_message_subject, $lang->private_message_subject_desc, $form->generate_text_box('pm_subject', $mybb->input['pm_subject'], array('id' => 'pm_subject')), 'pm_subject'); $form_container->end();
|
| $plugins->run_hooks("admin_config_mod_tools_edit_thread_tool_end");
|
$buttons[] = $form->generate_submit_button($lang->save_thread_tool);
| $buttons[] = $form->generate_submit_button($lang->save_thread_tool);
|
Zeile 680 | Zeile 691 |
---|
$forum_checked[1] = ''; $forum_checked[2] = "checked=\"checked\"";
|
$forum_checked[1] = ''; $forum_checked[2] = "checked=\"checked\"";
|
if(count($mybb->input['forum_1_forums']) < 1)
| if(is_array($mybb->input['forum_1_forums']) && count($mybb->input['forum_1_forums']) < 1)
|
{ $errors[] = $lang->error_no_forums_selected; }
| { $errors[] = $lang->error_no_forums_selected; }
|
Zeile 698 | Zeile 709 |
---|
$group_checked[1] = ''; $group_checked[2] = "checked=\"checked\"";
|
$group_checked[1] = ''; $group_checked[2] = "checked=\"checked\"";
|
if(count($mybb->input['group_1_groups']) < 1)
| if(is_array($mybb->input['group_1_groups']) && count($mybb->input['group_1_groups']) < 1)
|
{ $errors[] = $lang->error_no_groups_selected; }
| { $errors[] = $lang->error_no_groups_selected; }
|
Zeile 731 | Zeile 742 |
---|
$mybb->input['stickthread'] = ''; }
|
$mybb->input['stickthread'] = ''; }
|
if(!(int)$mybb->input['threadprefix'])
| if(!isset($mybb->input['threadprefix']))
|
{ $mybb->input['threadprefix'] = ''; }
| { $mybb->input['threadprefix'] = ''; }
|
Zeile 744 | Zeile 755 |
---|
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 { // Check that the destination forum is not a category
|
else { // Check that the destination forum is not a category
|
$query = $db->simple_select("forums", "type", "fid = '".(int)$mybb->input['move_1_forum']."'");
| $query = $db->simple_select("forums", "type", "fid = '".$mybb->get_input('move_1_forum', MyBB::INPUT_INT)."'");
|
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;
|
Zeile 776 | Zeile 787 |
---|
} else {
|
} else {
|
$query = $db->simple_select("forums", "type", "fid = '".(int)$mybb->input['copy_1_forum']."'");
| $query = $db->simple_select("forums", "type", "fid = '".$mybb->get_input('copy_1_forum', MyBB::INPUT_INT)."'");
|
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;
|
Zeile 794 | Zeile 805 |
---|
if(!$errors) { $thread_options = array(
|
if(!$errors) { $thread_options = array(
|
'confirmation' => $mybb->input['confirmation'], 'deletethread' => $mybb->input['deletethread'], 'mergethreads' => $mybb->input['mergethreads'], 'deletepoll' => $mybb->input['deletepoll'], 'removeredirects' => $mybb->input['removeredirects'], 'removesubscriptions' => $mybb->input['removesubscriptions'], 'recountrebuild' => $mybb->input['recountrebuild'],
| 'confirmation' => $mybb->get_input('confirmation', MyBB::INPUT_INT), 'deletethread' => $mybb->get_input('deletethread', MyBB::INPUT_INT), 'mergethreads' => $mybb->get_input('mergethreads', MyBB::INPUT_INT), 'deletepoll' => $mybb->get_input('deletepoll', MyBB::INPUT_INT), 'removeredirects' => $mybb->get_input('removeredirects', MyBB::INPUT_INT), 'removesubscriptions' => $mybb->get_input('removesubscriptions', MyBB::INPUT_INT), 'recountrebuild' => $mybb->get_input('recountrebuild', MyBB::INPUT_INT),
|
'approvethread' => $mybb->input['approvethread'], 'softdeletethread' => $mybb->input['softdeletethread'], 'openthread' => $mybb->input['openthread'], 'stickthread' => $mybb->input['stickthread'],
|
'approvethread' => $mybb->input['approvethread'], 'softdeletethread' => $mybb->input['softdeletethread'], 'openthread' => $mybb->input['openthread'], 'stickthread' => $mybb->input['stickthread'],
|
'movethread' => (int)$mybb->input['move_1_forum'], 'movethreadredirect' => $mybb->input['move_2_redirect'], 'movethreadredirectexpire' => (int)$mybb->input['move_3_redirecttime'], 'copythread' => (int)$mybb->input['copy_1_forum'],
| 'movethread' => $mybb->get_input('move_1_forum', MyBB::INPUT_INT), 'movethreadredirect' => $mybb->get_input('move_2_redirect', MyBB::INPUT_INT), 'movethreadredirectexpire' => $mybb->get_input('move_3_redirecttime', MyBB::INPUT_INT), 'copythread' => $mybb->get_input('copy_1_forum', MyBB::INPUT_INT),
|
'newsubject' => $mybb->input['newsubject'], 'addreply' => $mybb->input['newreply'], 'replysubject' => $mybb->input['newreplysubject'], 'pm_subject' => $mybb->input['pm_subject'], 'pm_message' => $mybb->input['pm_message'], 'threadprefix' => $mybb->input['threadprefix'],
|
'newsubject' => $mybb->input['newsubject'], 'addreply' => $mybb->input['newreply'], 'replysubject' => $mybb->input['newreplysubject'], 'pm_subject' => $mybb->input['pm_subject'], 'pm_message' => $mybb->input['pm_message'], 'threadprefix' => $mybb->input['threadprefix'],
|
);
| );
$args = array( 'thread_options' => &$thread_options, );
$plugins->run_hooks("admin_config_mod_tools_add_thread_tool_options", $args);
|
$new_tool['type'] = 't';
|
$new_tool['type'] = 't';
|
$new_tool['threadoptions'] = $db->escape_string(serialize($thread_options));
| $new_tool['threadoptions'] = $db->escape_string(my_serialize($thread_options));
|
$new_tool['name'] = $db->escape_string($mybb->input['title']); $new_tool['description'] = $db->escape_string($mybb->input['description']); $new_tool['forums'] = '';
| $new_tool['name'] = $db->escape_string($mybb->input['title']); $new_tool['description'] = $db->escape_string($mybb->input['description']); $new_tool['forums'] = '';
|
Zeile 826 | Zeile 843 |
---|
$new_tool['postoptions'] = '';
if($mybb->input['forum_type'] == 2)
|
$new_tool['postoptions'] = '';
if($mybb->input['forum_type'] == 2)
|
{
| {
|
if(is_array($mybb->input['forum_1_forums'])) { $checked = array();
| if(is_array($mybb->input['forum_1_forums'])) { $checked = array();
|
Zeile 838 | Zeile 855 |
---|
$new_tool['forums'] = implode(',', $checked); }
|
$new_tool['forums'] = implode(',', $checked); }
|
}
| }
|
else { $new_tool['forums'] = "-1";
|
else { $new_tool['forums'] = "-1";
|
}
| }
|
if($mybb->input['group_type'] == 2) {
| if($mybb->input['group_type'] == 2) {
|
Zeile 863 | Zeile 880 |
---|
$new_tool['groups'] = "-1"; }
|
$new_tool['groups'] = "-1"; }
|
if((int)$mybb->input['threadprefix'] >= 0)
| if($mybb->get_input('threadprefix', MyBB::INPUT_INT) >= 0)
|
{
|
{
|
$thread_options['threadprefix'] = (int)$mybb->input['threadprefix'];
| $thread_options['threadprefix'] = $mybb->get_input('threadprefix', MyBB::INPUT_INT);
|
}
$tid = $db->insert_query("modtools", $new_tool);
| }
$tid = $db->insert_query("modtools", $new_tool);
|
Zeile 900 | Zeile 917 |
---|
$sub_tabs['add_post_tool'] = array( 'title'=> $lang->add_new_post_tool, 'link' => "index.php?module=config-mod_tools&action=add_post_tool"
|
$sub_tabs['add_post_tool'] = array( 'title'=> $lang->add_new_post_tool, 'link' => "index.php?module=config-mod_tools&action=add_post_tool"
|
);
$page->output_nav_tabs($sub_tabs, 'add_thread_tool');
| );
$page->output_nav_tabs($sub_tabs, 'add_thread_tool');
|
$form = new Form("index.php?module=config-mod_tools&action=add_thread_tool", 'post');
| $form = new Form("index.php?module=config-mod_tools&action=add_thread_tool", 'post');
|
Zeile 1049 | Zeile 1066 |
---|
<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> <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_numeric_field('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);
| </tr> <tr> <td><small>{$lang->delete_redirect_after}</small></td> <td>".$form->generate_numeric_field('move_3_redirecttime', $mybb->input['move_3_redirecttime'], array('style' => 'width: 3em;', 'min' => 0))." {$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 1111 | Zeile 1128 |
---|
$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->apply_thread_prefix." <em>*</em>", '', $form->generate_select_box('threadprefix', $thread_prefixes, $mybb->input['threadprefix'], array('id' => 'threadprefix')), 'threadprefix'); }
|
| $form_container->output_row($lang->subject_message_replacements, $lang->subject_message_replacements_desc);
|
$form_container->output_row($lang->new_subject." <em>*</em>", $lang->new_subject_desc, $form->generate_text_box('newsubject', $mybb->input['newsubject'], array('id' => 'newsubject'))); $form_container->end();
$form_container = new FormContainer($lang->add_new_reply);
|
$form_container->output_row($lang->new_subject." <em>*</em>", $lang->new_subject_desc, $form->generate_text_box('newsubject', $mybb->input['newsubject'], array('id' => 'newsubject'))); $form_container->end();
$form_container = new FormContainer($lang->add_new_reply);
|
| $form_container->output_row($lang->subject_message_replacements, $lang->subject_message_replacements_desc);
|
$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();
$form_container = new FormContainer($lang->send_private_message);
|
$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();
$form_container = new FormContainer($lang->send_private_message);
|
| $form_container->output_row($lang->subject_message_replacements, $lang->subject_message_replacements_desc);
|
$form_container->output_row($lang->private_message_message, $lang->private_message_message_desc, $form->generate_text_area('pm_message', $mybb->input['pm_message'], array('id' => 'pm_message')), 'pm_message'); $form_container->output_row($lang->private_message_subject, $lang->private_message_subject_desc, $form->generate_text_box('pm_subject', $mybb->input['pm_subject'], array('id' => 'pm_subject')), 'pm_subject'); $form_container->end();
|
$form_container->output_row($lang->private_message_message, $lang->private_message_message_desc, $form->generate_text_area('pm_message', $mybb->input['pm_message'], array('id' => 'pm_message')), 'pm_message'); $form_container->output_row($lang->private_message_subject, $lang->private_message_subject_desc, $form->generate_text_box('pm_subject', $mybb->input['pm_subject'], array('id' => 'pm_subject')), 'pm_subject'); $form_container->end();
|
| $plugins->run_hooks("admin_config_mod_tools_add_thread_tool_end");
|
$buttons[] = $form->generate_submit_button($lang->save_thread_tool);
| $buttons[] = $form->generate_submit_button($lang->save_thread_tool);
|
Zeile 1131 | Zeile 1153 |
---|
$page->output_footer(); }
|
$page->output_footer(); }
|
| // This will be accounted for both GET and POST requests in both 'add_post_tool' / 'edit_post_tool' $do_not_split_checked = ''; $split_same_checked = '';
|
if($mybb->input['action'] == "edit_post_tool") {
| if($mybb->input['action'] == "edit_post_tool") {
|
Zeile 1157 | Zeile 1183 |
---|
if($mybb->input['forum_type'] == 2) {
|
if($mybb->input['forum_type'] == 2) {
|
if(count($mybb->input['forum_1_forums']) < 1)
| if(is_array($mybb->input['forum_1_forums']) && count($mybb->input['forum_1_forums']) < 1)
|
{ $errors[] = $lang->error_no_forums_selected; }
| { $errors[] = $lang->error_no_forums_selected; }
|
Zeile 1169 | Zeile 1195 |
---|
if($mybb->input['group_type'] == 2) {
|
if($mybb->input['group_type'] == 2) {
|
if(count($mybb->input['group_1_groups']) < 1)
| if(is_array($mybb->input['group_1_groups']) && count($mybb->input['group_1_groups']) < 1)
|
{ $errors[] = $lang->error_no_groups_selected;
|
{ $errors[] = $lang->error_no_groups_selected;
|
} }
| } }
|
else { $mybb->input['group_1_groups'] = ''; }
|
else { $mybb->input['group_1_groups'] = ''; }
|
|
|
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'] = '';
|
Zeile 1208 | Zeile 1234 |
---|
else { // Check that the destination forum is not a category
|
else { // Check that the destination forum is not a category
|
$query = $db->simple_select("forums", "type", "fid = '".(int)$mybb->input['move_1_forum']."'");
| $query = $db->simple_select("forums", "type", "fid = '".$mybb->get_input('move_1_forum', MyBB::INPUT_INT)."'");
|
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;
|
Zeile 1230 | Zeile 1256 |
---|
} else {
|
} else {
|
$query = $db->simple_select("forums", "type", "fid = '".(int)$mybb->input['copy_1_forum']."'");
| $query = $db->simple_select("forums", "type", "fid = '".$mybb->get_input('copy_1_forum', MyBB::INPUT_INT)."'");
|
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;
|
Zeile 1248 | Zeile 1274 |
---|
}
if($mybb->input['softdeleteposts'] != '' && $mybb->input['softdeleteposts'] != 'approve' && $mybb->input['softdeleteposts'] != 'unapprove' && $mybb->input['softdeleteposts'] != 'toggle')
|
}
if($mybb->input['softdeleteposts'] != '' && $mybb->input['softdeleteposts'] != 'approve' && $mybb->input['softdeleteposts'] != 'unapprove' && $mybb->input['softdeleteposts'] != 'toggle')
|
{ $mybb->input['softdeleteposts'] = ''; }
if($mybb->input['splitposts'] < -2) { $mybb->input['splitposts'] = -1; }
if($mybb->input['splitpostsclose'] == 1) { $mybb->input['splitpostsclose'] = 'close'; } else { $mybb->input['splitpostsclose'] = ''; }
if($mybb->input['splitpostsstick'] == 1) { $mybb->input['splitpostsstick'] = 'stick'; } else { $mybb->input['splitpostsstick'] = ''; }
if($mybb->input['splitpostsunapprove'] == 1) { $mybb->input['splitpostsunapprove'] = 'unapprove'; } else { $mybb->input['splitpostsunapprove'] = ''; }
if(!$errors) { $thread_options = array( 'confirmation' => $mybb->input['confirmation'], 'deletethread' => $mybb->input['deletethread'], 'softdeletethread' => $mybb->input['softdeletethread'], 'approvethread' => $mybb->input['approvethread'], 'openthread' => $mybb->input['openthread'], 'stickthread' => $mybb->input['stickthread'], 'movethread' => (int)$mybb->input['move_1_forum'], 'movethreadredirect' => $mybb->input['move_2_redirect'], 'movethreadredirectexpire' => (int)$mybb->input['move_3_redirecttime'], 'copythread' => (int)$mybb->input['copy_1_forum'], 'newsubject' => $mybb->input['newsubject'], 'addreply' => $mybb->input['newreply'], 'replysubject' => $mybb->input['newreplysubject'], 'pm_subject' => $mybb->input['pm_subject'], 'pm_message' => $mybb->input['pm_message'], 'threadprefix' => (int)$mybb->input['threadprefix'] );
if(stripos($mybb->input['splitpostsnewsubject'], '{subject}') === false) { $mybb->input['splitpostsnewsubject'] = '{subject}'.$mybb->input['splitpostsnewsubject']; }
$post_options = array( 'deleteposts' => $mybb->input['deleteposts'], 'softdeleteposts' => $mybb->input['softdeleteposts'], 'mergeposts' => $mybb->input['mergeposts'],
| { $mybb->input['softdeleteposts'] = ''; }
if($mybb->input['splitposts'] < -2) { $mybb->input['splitposts'] = -1; }
if($mybb->input['splitpostsclose'] == 1) { $mybb->input['splitpostsclose'] = 'close'; } else { $mybb->input['splitpostsclose'] = ''; }
if($mybb->input['splitpostsstick'] == 1) { $mybb->input['splitpostsstick'] = 'stick'; } else { $mybb->input['splitpostsstick'] = ''; }
if($mybb->input['splitpostsunapprove'] == 1) { $mybb->input['splitpostsunapprove'] = 'unapprove'; } else { $mybb->input['splitpostsunapprove'] = ''; }
if(!$errors) { $thread_options = array( 'confirmation' => $mybb->get_input('confirmation', MyBB::INPUT_INT), 'deletethread' => $mybb->get_input('deletethread', MyBB::INPUT_INT), 'softdeletethread' => $mybb->input['softdeletethread'], 'approvethread' => $mybb->input['approvethread'], 'openthread' => $mybb->input['openthread'], 'stickthread' => $mybb->input['stickthread'], 'movethread' => $mybb->get_input('move_1_forum', MyBB::INPUT_INT), 'movethreadredirect' => $mybb->get_input('move_2_redirect', MyBB::INPUT_INT), 'movethreadredirectexpire' => $mybb->get_input('move_3_redirecttime', MyBB::INPUT_INT), 'copythread' => $mybb->get_input('copy_1_forum', MyBB::INPUT_INT), 'newsubject' => $mybb->input['newsubject'], 'addreply' => $mybb->input['newreply'], 'replysubject' => $mybb->input['newreplysubject'], 'pm_subject' => $mybb->input['pm_subject'], 'pm_message' => $mybb->input['pm_message'], 'threadprefix' => $mybb->get_input('threadprefix', MyBB::INPUT_INT) );
if(stripos($mybb->input['splitpostsnewsubject'], '{subject}') === false) { $mybb->input['splitpostsnewsubject'] = '{subject}'.$mybb->input['splitpostsnewsubject']; }
$post_options = array( 'deleteposts' => $mybb->get_input('deleteposts', MyBB::INPUT_INT), 'softdeleteposts' => $mybb->input['softdeleteposts'], 'mergeposts' =>$mybb->get_input('mergeposts', MyBB::INPUT_INT),
|
'approveposts' => $mybb->input['approveposts'],
|
'approveposts' => $mybb->input['approveposts'],
|
'splitposts' => (int)$mybb->input['splitposts'],
| 'splitposts' => $mybb->get_input('splitposts', MyBB::INPUT_INT),
|
'splitpostsclose' => $mybb->input['splitpostsclose'], 'splitpostsstick' => $mybb->input['splitpostsstick'], 'splitpostsunapprove' => $mybb->input['splitpostsunapprove'],
|
'splitpostsclose' => $mybb->input['splitpostsclose'], 'splitpostsstick' => $mybb->input['splitpostsstick'], 'splitpostsunapprove' => $mybb->input['splitpostsunapprove'],
|
'splitthreadprefix' => (int)$mybb->input['splitthreadprefix'],
| 'splitthreadprefix' => $mybb->get_input('splitthreadprefix', MyBB::INPUT_INT),
|
'splitpostsnewsubject' => $mybb->input['splitpostsnewsubject'], 'splitpostsaddreply' => $mybb->input['splitpostsaddreply'], 'splitpostsreplysubject' => $mybb->input['splitpostsreplysubject'] );
|
'splitpostsnewsubject' => $mybb->input['splitpostsnewsubject'], 'splitpostsaddreply' => $mybb->input['splitpostsaddreply'], 'splitpostsreplysubject' => $mybb->input['splitpostsreplysubject'] );
|
| $args = array( 'thread_options' => &$thread_options, 'post_options' => &$post_options, );
$plugins->run_hooks("admin_config_mod_tools_edit_post_tool_options", $args);
|
$update_tool['type'] = 'p';
|
$update_tool['type'] = 'p';
|
$update_tool['threadoptions'] = $db->escape_string(serialize($thread_options)); $update_tool['postoptions'] = $db->escape_string(serialize($post_options));
| $update_tool['threadoptions'] = $db->escape_string(my_serialize($thread_options)); $update_tool['postoptions'] = $db->escape_string(my_serialize($post_options));
|
$update_tool['name'] = $db->escape_string($mybb->input['title']); $update_tool['description'] = $db->escape_string($mybb->input['description']); $update_tool['forums'] = ''; $update_tool['groups'] = '';
|
$update_tool['name'] = $db->escape_string($mybb->input['title']); $update_tool['description'] = $db->escape_string($mybb->input['description']); $update_tool['forums'] = ''; $update_tool['groups'] = '';
|
|
|
if($mybb->input['forum_type'] == 2) { if(is_array($mybb->input['forum_1_forums']))
| if($mybb->input['forum_type'] == 2) { if(is_array($mybb->input['forum_1_forums']))
|
Zeile 1345 | Zeile 1378 |
---|
}
$update_tool['forums'] = implode(',', $checked);
|
}
$update_tool['forums'] = implode(',', $checked);
|
} } else
| } } else
|
{ $update_tool['forums'] = "-1"; }
| { $update_tool['forums'] = "-1"; }
|
Zeile 1397 | Zeile 1430 |
---|
$form = new Form("index.php?module=config-mod_tools&action=edit_post_tool", 'post'); echo $form->generate_hidden_field("tid", $mybb->input['tid']);
|
$form = new Form("index.php?module=config-mod_tools&action=edit_post_tool", 'post'); echo $form->generate_hidden_field("tid", $mybb->input['tid']);
|
|
|
if($errors) {
| if($errors) {
|
Zeile 1479 | Zeile 1513 |
---|
if($post_options['splitposts'] == '-1') { $do_not_split_checked = ' selected="selected"';
|
if($post_options['splitposts'] == '-1') { $do_not_split_checked = ' selected="selected"';
|
$split_same_checked = '';
| |
} else if($post_options['splitposts'] == '-2') {
|
} else if($post_options['splitposts'] == '-2') {
|
$do_not_split_checked = '';
| |
$split_same_checked = ' selected="selected"'; }
| $split_same_checked = ' selected="selected"'; }
|
Zeile 1499 | Zeile 1531 |
---|
else { $mybb->input['splitpostsclose'] = '0';
|
else { $mybb->input['splitpostsclose'] = '0';
|
}
| }
|
if($post_options['splitpostsstick'] == 'stick') {
| if($post_options['splitpostsstick'] == 'stick') {
|
Zeile 1511 | Zeile 1543 |
---|
}
if($post_options['splitpostsunapprove'] == 'unapprove')
|
}
if($post_options['splitpostsunapprove'] == 'unapprove')
|
{
| {
|
$mybb->input['splitpostsunapprove'] = '1'; } else { $mybb->input['splitpostsunapprove'] = '0'; }
|
$mybb->input['splitpostsunapprove'] = '1'; } else { $mybb->input['splitpostsunapprove'] = '0'; }
|
|
|
$mybb->input['splitposts'] = $post_options['splitposts']; $mybb->input['splitthreadprefix'] = $post_options['splitthreadprefix']; $mybb->input['splitpostsnewsubject'] = $post_options['splitpostsnewsubject'];
| $mybb->input['splitposts'] = $post_options['splitposts']; $mybb->input['splitthreadprefix'] = $post_options['splitthreadprefix']; $mybb->input['splitpostsnewsubject'] = $post_options['splitpostsnewsubject'];
|
Zeile 1529 | Zeile 1561 |
---|
$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');
|
$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) {
| $actions = "<script type=\"text/javascript\"> function checkAction(id) {
|
Zeile 1541 | Zeile 1573 |
---|
{ checked = $(this).val(); }
|
{ checked = $(this).val(); }
|
});
| });
|
$('.'+id+'s').each(function(e)
|
$('.'+id+'s').each(function(e)
|
{ $(this).hide(); }); if($('#'+id+'_'+checked)) { $('#'+id+'_'+checked).show(); } } </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>
| { $(this).hide(); }); if($('#'+id+'_'+checked)) { $('#'+id+'_'+checked).show(); } } </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>
| <td>".$form->generate_forum_select('forum_1_forums[]', $mybb->input['forum_1_forums'], array('multiple' => true, 'size' => 5))."</td> </tr> </table>
|
Zeile 1618 | Zeile 1650 |
---|
$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->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']));
|
|
|
$splitthreadprefix = build_prefixes(); if(!empty($splitthreadprefix)) {
| $splitthreadprefix = build_prefixes(); if(!empty($splitthreadprefix)) {
|
Zeile 1631 | Zeile 1663 |
---|
$split_thread_prefixes[$prefix['pid']] = $prefix['prefix']; }
|
$split_thread_prefixes[$prefix['pid']] = $prefix['prefix']; }
|
$form_container->output_row($lang->split_thread_prefix." <em>*</em>", '', $form->generate_select_box('splitthreadprefix', $split_thread_prefixes, array((int)$mybb->input['splitthreadprefix']), array('id' => 'splitthreadprefix')), 'splitthreadprefix');
| $form_container->output_row($lang->split_thread_prefix." <em>*</em>", '', $form->generate_select_box('splitthreadprefix', $split_thread_prefixes, array($mybb->get_input('splitthreadprefix', MyBB::INPUT_INT)), array('id' => 'splitthreadprefix')), 'splitthreadprefix');
|
}
|
}
|
| $form_container->output_row($lang->subject_message_replacements, $lang->subject_message_replacements_desc);
|
$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->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');
|
Zeile 1675 | Zeile 1708 |
---|
</tr> <tr> <td><small>{$lang->delete_redirect_after}</small></td>
|
</tr> <tr> <td><small>{$lang->delete_redirect_after}</small></td>
|
<td>".$form->generate_numeric_field('move_3_redirecttime', $mybb->input['move_3_redirecttime'], array('style' => 'width: 2em;'))." {$lang->days}</td> </tr> </table> </dd> </dl> <script type=\"text/javascript\">
| <td>".$form->generate_numeric_field('move_3_redirecttime', $mybb->input['move_3_redirecttime'], array('style' => 'width: 3em;', 'min' => 0))." {$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);
| checkAction('move'); </script>"; $form_container->output_row($lang->move_thread." <em>*</em>", $lang->move_thread_desc, $actions);
|
Zeile 1718 | Zeile 1751 |
---|
$thread_prefixes[$prefix['pid']] = $prefix['prefix']; }
|
$thread_prefixes[$prefix['pid']] = $prefix['prefix']; }
|
$form_container->output_row($lang->apply_thread_prefix." <em>*</em>", '', $form->generate_select_box('threadprefix', $thread_prefixes, array((int)$mybb->input['threadprefix']), array('id' => 'threadprefix')), 'threadprefix');
| $form_container->output_row($lang->apply_thread_prefix." <em>*</em>", '', $form->generate_select_box('threadprefix', $thread_prefixes, array($mybb->get_input('threadprefix', MyBB::INPUT_INT)), array('id' => 'threadprefix')), 'threadprefix');
|
}
|
}
|
| $form_container->output_row($lang->subject_message_replacements, $lang->subject_message_replacements_desc);
|
$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 = new FormContainer($lang->add_new_reply);
|
$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 = new FormContainer($lang->add_new_reply);
|
| $form_container->output_row($lang->subject_message_replacements, $lang->subject_message_replacements_desc);
|
$form_container->output_row($lang->add_new_reply, $lang->add_new_reply_desc, $form->generate_text_area('newreply', $mybb->input['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();
$form_container = new FormContainer($lang->send_private_message);
|
$form_container->output_row($lang->add_new_reply, $lang->add_new_reply_desc, $form->generate_text_area('newreply', $mybb->input['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();
$form_container = new FormContainer($lang->send_private_message);
|
| $form_container->output_row($lang->subject_message_replacements, $lang->subject_message_replacements_desc);
|
$form_container->output_row($lang->private_message_message, $lang->private_message_message_desc, $form->generate_text_area('pm_message', $mybb->input['pm_message'], array('id' => 'pm_message')), 'pm_message'); $form_container->output_row($lang->private_message_subject, $lang->private_message_subject_desc, $form->generate_text_box('pm_subject', $mybb->input['pm_subject'], array('id' => 'pm_subject')), 'pm_subject'); $form_container->end();
|
$form_container->output_row($lang->private_message_message, $lang->private_message_message_desc, $form->generate_text_area('pm_message', $mybb->input['pm_message'], array('id' => 'pm_message')), 'pm_message'); $form_container->output_row($lang->private_message_subject, $lang->private_message_subject_desc, $form->generate_text_box('pm_subject', $mybb->input['pm_subject'], array('id' => 'pm_subject')), 'pm_subject'); $form_container->end();
|
| $plugins->run_hooks("admin_config_mod_tools_edit_post_tool_end");
|
$buttons[] = $form->generate_submit_button($lang->save_post_tool);
|
$buttons[] = $form->generate_submit_button($lang->save_post_tool);
|
|
|
$form->output_submit_wrapper($buttons); $form->end();
$page->output_footer(); }
|
$form->output_submit_wrapper($buttons); $form->end();
$page->output_footer(); }
|
|
|
if($mybb->input['action'] == "add_post_tool") { $plugins->run_hooks("admin_config_mod_tools_add_post_tool");
|
if($mybb->input['action'] == "add_post_tool") { $plugins->run_hooks("admin_config_mod_tools_add_post_tool");
|
|
|
if($mybb->request_method == 'post') { if(trim($mybb->input['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;
|
$errors[] = $lang->error_missing_title; }
if(trim($mybb->input['description']) == "") { $errors[] = $lang->error_missing_description;
|
}
| }
|
if($mybb->input['forum_type'] == 2) { $forum_checked[1] = ''; $forum_checked[2] = "checked=\"checked\"";
|
if($mybb->input['forum_type'] == 2) { $forum_checked[1] = ''; $forum_checked[2] = "checked=\"checked\"";
|
if(count($mybb->input['forum_1_forums']) < 1)
| if(is_array($mybb->input['forum_1_forums']) && count($mybb->input['forum_1_forums']) < 1)
|
{ $errors[] = $lang->error_no_forums_selected; }
| { $errors[] = $lang->error_no_forums_selected; }
|
Zeile 1772 | Zeile 1810 |
---|
{ $forum_checked[1] = "checked=\"checked\""; $forum_checked[2] = '';
|
{ $forum_checked[1] = "checked=\"checked\""; $forum_checked[2] = '';
|
|
|
$mybb->input['forum_1_forums'] = '';
|
$mybb->input['forum_1_forums'] = '';
|
}
| }
|
if($mybb->input['group_type'] == 2) { $group_checked[1] = ''; $group_checked[2] = "checked=\"checked\"";
|
if($mybb->input['group_type'] == 2) { $group_checked[1] = ''; $group_checked[2] = "checked=\"checked\"";
|
if(count($mybb->input['group_1_groups']) < 1)
| if(is_array($mybb->input['group_1_groups']) && count($mybb->input['group_1_groups']) < 1)
|
{ $errors[] = $lang->error_no_groups_selected; } } else
|
{ $errors[] = $lang->error_no_groups_selected; } } else
|
{
| {
|
$group_checked[1] = "checked=\"checked\""; $group_checked[2] = '';
| $group_checked[1] = "checked=\"checked\""; $group_checked[2] = '';
|
Zeile 1797 | Zeile 1835 |
---|
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['softdeletethread'] != '' && $mybb->input['softdeletethread'] != 'softdelete' && $mybb->input['softdeletethread'] != 'restore' && $mybb->input['softdeletethread'] != 'toggle') { $mybb->input['softdeletethread'] = '';
|
if($mybb->input['softdeletethread'] != '' && $mybb->input['softdeletethread'] != 'softdelete' && $mybb->input['softdeletethread'] != 'restore' && $mybb->input['softdeletethread'] != 'toggle') { $mybb->input['softdeletethread'] = '';
|
}
| }
|
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'] = '';
|
Zeile 1814 | Zeile 1852 |
---|
$mybb->input['stickthread'] = ''; }
|
$mybb->input['stickthread'] = ''; }
|
if(!(int)$mybb->input['threadprefix'])
| if(!$mybb->get_input('threadprefix', MyBB::INPUT_INT))
|
{ $mybb->input['threadprefix'] = ''; }
| { $mybb->input['threadprefix'] = ''; }
|
Zeile 1831 | Zeile 1869 |
---|
else { // Check that the destination forum is not a category
|
else { // Check that the destination forum is not a category
|
$query = $db->simple_select("forums", "type", "fid = '".(int)$mybb->input['move_1_forum']."'");
| $query = $db->simple_select("forums", "type", "fid = '".$mybb->get_input('move_1_forum', MyBB::INPUT_INT)."'");
|
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;
|
Zeile 1859 | Zeile 1897 |
---|
} else {
|
} else {
|
$query = $db->simple_select("forums", "type", "fid = '".(int)$mybb->input['copy_1_forum']."'");
| $query = $db->simple_select("forums", "type", "fid = '".$mybb->get_input('copy_1_forum', MyBB::INPUT_INT)."'");
|
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;
|
Zeile 1877 | Zeile 1915 |
---|
if($mybb->input['approveposts'] != '' && $mybb->input['approveposts'] != 'approve' && $mybb->input['approveposts'] != 'unapprove' && $mybb->input['approveposts'] != 'toggle') { $mybb->input['approveposts'] = '';
|
if($mybb->input['approveposts'] != '' && $mybb->input['approveposts'] != 'approve' && $mybb->input['approveposts'] != 'unapprove' && $mybb->input['approveposts'] != 'toggle') { $mybb->input['approveposts'] = '';
|
}
| }
|
if($mybb->input['softdeleteposts'] != '' && $mybb->input['softdeleteposts'] != 'softdelete' && $mybb->input['softdeleteposts'] != 'restore' && $mybb->input['softdeleteposts'] != 'toggle') {
| if($mybb->input['softdeleteposts'] != '' && $mybb->input['softdeleteposts'] != 'softdelete' && $mybb->input['softdeleteposts'] != 'restore' && $mybb->input['softdeleteposts'] != 'toggle') {
|
Zeile 1916 | Zeile 1954 |
---|
$mybb->input['splitpostsunapprove'] = ''; }
|
$mybb->input['splitpostsunapprove'] = ''; }
|
if(!(int)$mybb->input['splitthreadprefix'])
| if(!$mybb->get_input('splitthreadprefix', MyBB::INPUT_INT))
|
{ $mybb->input['splitthreadprefix'] = ''; }
| { $mybb->input['splitthreadprefix'] = ''; }
|
Zeile 1924 | Zeile 1962 |
---|
if(!$errors) { $thread_options = array(
|
if(!$errors) { $thread_options = array(
|
'confirmation' => $mybb->input['confirmation'], 'deletethread' => $mybb->input['deletethread'],
| 'confirmation' => $mybb->get_input('confirmation', MyBB::INPUT_INT), 'deletethread' => $mybb->get_input('deletethread', MyBB::INPUT_INT),
|
'softdeletethread' => $mybb->input['softdeletethread'], 'approvethread' => $mybb->input['approvethread'], 'openthread' => $mybb->input['openthread'], 'stickthread' => $mybb->input['stickthread'],
|
'softdeletethread' => $mybb->input['softdeletethread'], 'approvethread' => $mybb->input['approvethread'], 'openthread' => $mybb->input['openthread'], 'stickthread' => $mybb->input['stickthread'],
|
'movethread' => (int)$mybb->input['move_1_forum'], 'movethreadredirect' => $mybb->input['move_2_redirect'], 'movethreadredirectexpire' => (int)$mybb->input['move_3_redirecttime'], 'copythread' => (int)$mybb->input['copy_1_forum'],
| 'movethread' => $mybb->get_input('move_1_forum', MyBB::INPUT_INT), 'movethreadredirect' => $mybb->get_input('move_2_redirect', MyBB::INPUT_INT), 'movethreadredirectexpire' => $mybb->get_input('move_3_redirecttime', MyBB::INPUT_INT), 'copythread' => $mybb->get_input('copy_1_forum', MyBB::INPUT_INT),
|
'newsubject' => $mybb->input['newsubject'], 'addreply' => $mybb->input['newreply'], 'replysubject' => $mybb->input['newreplysubject'], 'pm_subject' => $mybb->input['pm_subject'], 'pm_message' => $mybb->input['pm_message'],
|
'newsubject' => $mybb->input['newsubject'], 'addreply' => $mybb->input['newreply'], 'replysubject' => $mybb->input['newreplysubject'], 'pm_subject' => $mybb->input['pm_subject'], 'pm_message' => $mybb->input['pm_message'],
|
'threadprefix' => (int)$mybb->input['threadprefix']
| 'threadprefix' => $mybb->get_input('threadprefix', MyBB::INPUT_INT)
|
);
if(stripos($mybb->input['splitpostsnewsubject'], '{subject}') === false)
| );
if(stripos($mybb->input['splitpostsnewsubject'], '{subject}') === false)
|
Zeile 1948 | Zeile 1986 |
---|
}
$post_options = array(
|
}
$post_options = array(
|
'deleteposts' => $mybb->input['deleteposts'],
| 'deleteposts' => $mybb->get_input('deleteposts', MyBB::INPUT_INT),
|
'softdeleteposts' => $mybb->input['softdeleteposts'],
|
'softdeleteposts' => $mybb->input['softdeleteposts'],
|
'mergeposts' => $mybb->input['mergeposts'],
| 'mergeposts' => $mybb->get_input('mergeposts', MyBB::INPUT_INT),
|
'approveposts' => $mybb->input['approveposts'],
|
'approveposts' => $mybb->input['approveposts'],
|
'splitposts' => (int)$mybb->input['splitposts'],
| 'splitposts' => $mybb->get_input('splitposts', MyBB::INPUT_INT),
|
'splitpostsclose' => $mybb->input['splitpostsclose'], 'splitpostsstick' => $mybb->input['splitpostsstick'], 'splitpostsunapprove' => $mybb->input['splitpostsunapprove'],
|
'splitpostsclose' => $mybb->input['splitpostsclose'], 'splitpostsstick' => $mybb->input['splitpostsstick'], 'splitpostsunapprove' => $mybb->input['splitpostsunapprove'],
|
'splitthreadprefix' => (int)$mybb->input['splitthreadprefix'],
| 'splitthreadprefix' => $mybb->get_input('splitthreadprefix', MyBB::INPUT_INT),
|
'splitpostsnewsubject' => $mybb->input['splitpostsnewsubject'], 'splitpostsaddreply' => $mybb->input['splitpostsaddreply'], 'splitpostsreplysubject' => $mybb->input['splitpostsreplysubject'] );
|
'splitpostsnewsubject' => $mybb->input['splitpostsnewsubject'], 'splitpostsaddreply' => $mybb->input['splitpostsaddreply'], 'splitpostsreplysubject' => $mybb->input['splitpostsreplysubject'] );
|
| $args = array( 'thread_options' => &$thread_options, 'post_options' => &$post_options, );
$plugins->run_hooks("admin_config_mod_tools_add_post_tool_options", $args);
|
$new_tool['type'] = 'p';
|
$new_tool['type'] = 'p';
|
$new_tool['threadoptions'] = $db->escape_string(serialize($thread_options)); $new_tool['postoptions'] = $db->escape_string(serialize($post_options));
| $new_tool['threadoptions'] = $db->escape_string(my_serialize($thread_options)); $new_tool['postoptions'] = $db->escape_string(my_serialize($post_options));
|
$new_tool['name'] = $db->escape_string($mybb->input['title']); $new_tool['description'] = $db->escape_string($mybb->input['description']); $new_tool['forums'] = '';
| $new_tool['name'] = $db->escape_string($mybb->input['title']); $new_tool['description'] = $db->escape_string($mybb->input['description']); $new_tool['forums'] = '';
|
Zeile 2079 | Zeile 2124 |
---|
$mybb->input['newreply'] = ''; $mybb->input['newreplysubject'] = '{subject}'; $do_not_split_checked = ' selected="selected"';
|
$mybb->input['newreply'] = ''; $mybb->input['newreplysubject'] = '{subject}'; $do_not_split_checked = ' selected="selected"';
|
$split_same_checked = '';
| |
$mybb->input['deleteposts'] = '0'; $mybb->input['mergeposts'] = '0'; $mybb->input['approveposts'] = '';
| $mybb->input['deleteposts'] = '0'; $mybb->input['mergeposts'] = '0'; $mybb->input['approveposts'] = '';
|
Zeile 2199 | Zeile 2243 |
---|
$split_thread_prefixes[$prefix['pid']] = $prefix['prefix']; }
|
$split_thread_prefixes[$prefix['pid']] = $prefix['prefix']; }
|
$form_container->output_row($lang->split_thread_prefix." <em>*</em>", '', $form->generate_select_box('splitthreadprefix', $split_thread_prefixes, array((int)$mybb->input['splitthreadprefix']), array('id' => 'splitthreadprefix')), 'splitthreadprefix');
| $form_container->output_row($lang->split_thread_prefix." <em>*</em>", '', $form->generate_select_box('splitthreadprefix', $split_thread_prefixes, array($mybb->get_input('splitthreadprefix', MyBB::INPUT_INT)), array('id' => 'splitthreadprefix')), 'splitthreadprefix');
|
}
|
}
|
| $form_container->output_row($lang->subject_message_replacements, $lang->subject_message_replacements_desc);
|
$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->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');
|
Zeile 2244 | Zeile 2289 |
---|
</tr> <tr> <td><small>{$lang->delete_redirect_after}</small></td>
|
</tr> <tr> <td><small>{$lang->delete_redirect_after}</small></td>
|
<td>".$form->generate_numeric_field('move_3_redirecttime', $mybb->input['move_3_redirecttime'], array('style' => 'width: 2em;'))." {$lang->days}</td>
| <td>".$form->generate_numeric_field('move_3_redirecttime', $mybb->input['move_3_redirecttime'], array('style' => 'width: 3em;', 'min' => 0))." {$lang->days}</td>
|
</tr> </table> </dd>
| </tr> </table> </dd>
|
Zeile 2290 | Zeile 2335 |
---|
$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->apply_thread_prefix." <em>*</em>", '', $form->generate_select_box('threadprefix', $thread_prefixes, $mybb->input['threadprefix'], array('id' => 'threadprefix')), 'threadprefix'); }
|
| $form_container->output_row($lang->subject_message_replacements, $lang->subject_message_replacements_desc);
|
$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 = new FormContainer($lang->add_new_reply);
|
$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 = new FormContainer($lang->add_new_reply);
|
| $form_container->output_row($lang->subject_message_replacements, $lang->subject_message_replacements_desc);
|
$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();
$form_container = new FormContainer($lang->send_private_message);
|
$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();
$form_container = new FormContainer($lang->send_private_message);
|
$form_container->output_row($lang->private_message_message, $lang->private_message_message_desc, $form->generate_text_area('pm_message', $mybb->input['pm_message'], array('id' => 'pm_message')), 'pm_message'); $form_container->output_row($lang->private_message_subject, $lang->private_message_subject_desc, $form->generate_text_box('pm_subject', $mybb->input['pm_subject'], array('id' => 'pm_subject')), 'pm_subject');
| $form_container->output_row($lang->subject_message_replacements, $lang->subject_message_replacements_desc); $form_container->output_row($lang->private_message_message, $lang->private_message_message_desc, $form->generate_text_area('pm_message', $mybb->get_input('pm_message'), array('id' => 'pm_message')), 'pm_message'); $form_container->output_row($lang->private_message_subject, $lang->private_message_subject_desc, $form->generate_text_box('pm_subject', $mybb->get_input('pm_subject'), array('id' => 'pm_subject')), 'pm_subject');
|
$form_container->end();
|
$form_container->end();
|
| $plugins->run_hooks("admin_config_mod_tools_add_post_tool_end");
|
$buttons[] = $form->generate_submit_button($lang->save_post_tool);
| $buttons[] = $form->generate_submit_button($lang->save_post_tool);
|