Zeile 1039 | Zeile 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 1159 | Zeile 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 1339 | Zeile 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 1351 | Zeile 1370 |
---|
$form->output_submit_wrapper($buttons); $form->end();
|
$form->output_submit_wrapper($buttons); $form->end();
|
|
|
$page->output_footer(); }
| $page->output_footer(); }
|
Zeile 1364 | Zeile 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']) == "") {
| if(trim($mybb->input['description']) == "") {
|
Zeile 1387 | Zeile 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')
|
if($mybb->input['openthread'] != '' && $mybb->input['openthread'] != 'open' && $mybb->input['openthread'] != 'close' && $mybb->input['openthread'] != 'toggle')
|
{
| {
|
$mybb->input['openthread'] = ''; }
|
$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 1490 | Zeile 1514 |
---|
else { $mybb->input['splitpostsunapprove'] = '';
|
else { $mybb->input['splitpostsunapprove'] = '';
|
}
| }
|
if(!$errors) {
| if(!$errors) {
|
Zeile 1504 | Zeile 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) { $mybb->input['splitpostsnewsubject'] = '{subject}'.$mybb->input['splitpostsnewsubject'];
|
); if(stripos($mybb->input['splitpostsnewsubject'], '{subject}') === false) { $mybb->input['splitpostsnewsubject'] = '{subject}'.$mybb->input['splitpostsnewsubject'];
|
}
| }
|
$post_options = array( 'deleteposts' => $mybb->input['deleteposts'], 'mergeposts' => $mybb->input['mergeposts'],
| $post_options = array( 'deleteposts' => $mybb->input['deleteposts'], 'mergeposts' => $mybb->input['mergeposts'],
|
Zeile 1542 | Zeile 1567 |
---|
} $tid = $db->insert_query("modtools", $new_tool);
|
} $tid = $db->insert_query("modtools", $new_tool);
|
|
|
$plugins->run_hooks("admin_config_mod_tools_add_post_tool_commit");
// Log admin action
| $plugins->run_hooks("admin_config_mod_tools_add_post_tool_commit");
// Log admin action
|
Zeile 1601 | Zeile 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 1745 | Zeile 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();
|