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)
|
);
$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['name'] = $db->escape_string($mybb->input['title']); $update_tool['description'] = $db->escape_string($mybb->input['description']); $update_tool['forums'] = '';
|
Zeile 579 | Zeile 579 |
---|
</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 635 |
---|
$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->new_subject." <em>*</em>", $lang->new_subject_desc, $form->generate_text_box('newsubject', $mybb->input['newsubject'], array('id' => 'newsubject')));
| }
$form_container->output_row($lang->new_subject." <em>*</em>", $lang->new_subject_desc, $form->generate_text_box('newsubject', $mybb->input['newsubject'], array('id' => 'newsubject')));
|
Zeile 680 | Zeile 680 |
---|
$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 698 |
---|
$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 731 |
---|
$mybb->input['stickthread'] = ''; }
|
$mybb->input['stickthread'] = ''; }
|
if(!(int)$mybb->input['threadprefix'])
| if(!isset($mybb->input['threadprefix']))
|
{ $mybb->input['threadprefix'] = ''; }
| { $mybb->input['threadprefix'] = ''; }
|
Zeile 748 | Zeile 748 |
---|
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 776 |
---|
} 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 794 |
---|
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'],
| 'newsubject' => $mybb->input['newsubject'], 'addreply' => $mybb->input['newreply'], 'replysubject' => $mybb->input['newreplysubject'],
|
Zeile 818 | Zeile 818 |
---|
);
$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 863 | Zeile 863 |
---|
$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 1052 | Zeile 1052 |
---|
</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 1157 | Zeile 1157 |
---|
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 1169 |
---|
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; }
|
Zeile 1208 | Zeile 1208 |
---|
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 1230 |
---|
} 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 1287 | Zeile 1287 |
---|
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 1311 | Zeile 1311 |
---|
}
$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'] );
$update_tool['type'] = 'p';
|
'splitpostsnewsubject' => $mybb->input['splitpostsnewsubject'], 'splitpostsaddreply' => $mybb->input['splitpostsaddreply'], 'splitpostsreplysubject' => $mybb->input['splitpostsreplysubject'] );
$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['name'] = $db->escape_string($mybb->input['title']); $update_tool['description'] = $db->escape_string($mybb->input['description']); $update_tool['forums'] = '';
|
Zeile 1631 | Zeile 1631 |
---|
$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->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->split_thread_subject, $lang->split_thread_subject_desc, $form->generate_text_box('splitpostsnewsubject', $mybb->input['splitpostsnewsubject'], array('id' => 'splitpostsnewsubject ')), 'newreplysubject');
|
Zeile 1675 | Zeile 1675 |
---|
</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 1718 | Zeile 1718 |
---|
$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->new_subject." <em>*</em>", $lang->new_subject_desc, $form->generate_text_box('newsubject', $mybb->input['newsubject']));
| }
$form_container->output_row($lang->new_subject." <em>*</em>", $lang->new_subject_desc, $form->generate_text_box('newsubject', $mybb->input['newsubject']));
|
Zeile 1763 | Zeile 1763 |
---|
$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 1781 | Zeile 1781 |
---|
$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 1814 | Zeile 1814 |
---|
$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 1831 |
---|
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 1859 |
---|
} 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 1916 | Zeile 1916 |
---|
$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 1924 |
---|
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 1948 |
---|
}
$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'] );
$new_tool['type'] = 'p';
|
'splitpostsnewsubject' => $mybb->input['splitpostsnewsubject'], 'splitpostsaddreply' => $mybb->input['splitpostsaddreply'], 'splitpostsreplysubject' => $mybb->input['splitpostsreplysubject'] );
$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 2199 | Zeile 2199 |
---|
$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->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->split_thread_subject, $lang->split_thread_subject_desc, $form->generate_text_box('splitpostsnewsubject', $mybb->input['splitpostsnewsubject'], array('id' => 'splitpostsnewsubject ')), 'newreplysubject');
|
Zeile 2244 | Zeile 2244 |
---|
</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>
|