Zeile 666 | Zeile 666 |
---|
$postoptions_subscriptionmethod_dont = $postoptions_subscriptionmethod_none = $postoptions_subscriptionmethod_email = $postoptions_subscriptionmethod_pm = ''; $postoptionschecked = array('signature' => '', 'disablesmilies' => '');
|
$postoptions_subscriptionmethod_dont = $postoptions_subscriptionmethod_none = $postoptions_subscriptionmethod_email = $postoptions_subscriptionmethod_pm = ''; $postoptionschecked = array('signature' => '', 'disablesmilies' => '');
|
if(isset($mybb->input['previewpost']) || $post_errors)
| if(!empty($mybb->input['previewpost']) || $post_errors)
|
{ // Set up posthandler. require_once MYBB_ROOT."inc/datahandlers/post.php";
| { // Set up posthandler. require_once MYBB_ROOT."inc/datahandlers/post.php";
|
Zeile 753 | Zeile 753 |
---|
} }
|
} }
|
if(isset($mybb->input['previewpost']))
| if(!empty($mybb->input['previewpost']))
|
{ if(!$post['uid']) {
| { if(!$post['uid']) {
|
Zeile 874 | Zeile 874 |
---|
if($firstcheck['pid'] == $pid && $forumpermissions['canpostpolls'] != 0 && $thread['poll'] < 1 && (is_moderator($fid, "canmanagepolls") || $thread['dateline'] > ($time-($mybb->settings['polltimelimit']*60*60)) || $mybb->settings['polltimelimit'] == 0)) { $lang->max_options = $lang->sprintf($lang->max_options, $mybb->settings['maxpolloptions']);
|
if($firstcheck['pid'] == $pid && $forumpermissions['canpostpolls'] != 0 && $thread['poll'] < 1 && (is_moderator($fid, "canmanagepolls") || $thread['dateline'] > ($time-($mybb->settings['polltimelimit']*60*60)) || $mybb->settings['polltimelimit'] == 0)) { $lang->max_options = $lang->sprintf($lang->max_options, $mybb->settings['maxpolloptions']);
|
$numpolloptions = "2";
| $numpolloptions = $mybb->get_input('numpolloptions', MyBB::INPUT_INT);
|
$postpollchecked = '';
|
$postpollchecked = '';
|
| if($numpolloptions < 1) { $numpolloptions = 2; } if($mybb->get_input('postpoll', MyBB::INPUT_INT) == 1) { $postpollchecked = 'checked="checked"'; }
|
eval("\$pollbox = \"".$templates->get("newthread_postpoll")."\";"); } else
| eval("\$pollbox = \"".$templates->get("newthread_postpoll")."\";"); } else
|