Zeile 6 | Zeile 6 |
---|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* $Id: newthread.php 5605 2011-09-19 11:17:26Z Tomm $
| * $Id: newthread.php 5775 2012-04-19 11:03:38Z Tomm $
|
*/
define("IN_MYBB", 1); define('THIS_SCRIPT', 'newthread.php');
$templatelist = "newthread,previewpost,error_invalidforum,redirect_newthread,loginbox,changeuserbox,newthread_postpoll,posticons,attachment,newthread_postpoll,codebuttons,smilieinsert,error_nosubject";
|
*/
define("IN_MYBB", 1); define('THIS_SCRIPT', 'newthread.php');
$templatelist = "newthread,previewpost,error_invalidforum,redirect_newthread,loginbox,changeuserbox,newthread_postpoll,posticons,attachment,newthread_postpoll,codebuttons,smilieinsert,error_nosubject";
|
$templatelist .= "posticons,newthread_disablesmilies,newreply_modoptions,post_attachments_new,post_attachments,post_savedraftbutton,post_subscription_method,post_attachments_attachment_remove";
| $templatelist .= "posticons,newthread_disablesmilies,newreply_modoptions,post_attachments_new,post_attachments,post_savedraftbutton,post_subscription_method,post_attachments_attachment_remove,"; $templatelist .= "forumdisplay_rules,forumdisplay_rules_link";
|
require_once "./global.php"; require_once MYBB_ROOT."inc/functions_post.php";
| require_once "./global.php"; require_once MYBB_ROOT."inc/functions_post.php";
|
Zeile 606 | Zeile 607 |
---|
if($forum['allowpicons'] != 0) { $posticons = get_post_icons();
|
if($forum['allowpicons'] != 0) { $posticons = get_post_icons();
|
| } if($postoptions['subscriptionmethod'] == "none") { $postoptions_subscriptionmethod_none = "checked=\"checked\""; } else if($postoptions['subscriptionmethod'] == "instant") { $postoptions_subscriptionmethod_instant = "checked=\"checked\""; } else { $postoptions_subscriptionmethod_dont = "checked=\"checked\"";
|
} }
| } }
|
Zeile 885 | Zeile 898 |
---|
// Show captcha image for guests if enabled if($mybb->settings['captchaimage'] && !$mybb->user['uid'])
|
// Show captcha image for guests if enabled if($mybb->settings['captchaimage'] && !$mybb->user['uid'])
|
{
| {
|
$correct = false; require_once MYBB_ROOT.'inc/class_captcha.php'; $post_captcha = new captcha(false, "post_captcha");
| $correct = false; require_once MYBB_ROOT.'inc/class_captcha.php'; $post_captcha = new captcha(false, "post_captcha");
|
Zeile 895 | Zeile 908 |
---|
// If previewing a post - check their current captcha input - if correct, hide the captcha input area // ... but only if it's a default one, reCAPTCHAs must be filled in every time due to draconian limits if($post_captcha->validate_captcha() == true)
|
// If previewing a post - check their current captcha input - if correct, hide the captcha input area // ... but only if it's a default one, reCAPTCHAs must be filled in every time due to draconian limits if($post_captcha->validate_captcha() == true)
|
{
| {
|
$correct = true;
// Generate a hidden list of items for our captcha $captcha = $post_captcha->build_hidden_captcha();
|
$correct = true;
// Generate a hidden list of items for our captcha $captcha = $post_captcha->build_hidden_captcha();
|
}
| }
|
}
if(!$correct)
| }
if(!$correct)
|
Zeile 910 | Zeile 923 |
---|
$post_captcha->build_captcha(); } else if($post_captcha->type == 2)
|
$post_captcha->build_captcha(); } else if($post_captcha->type == 2)
|
{
| {
|
$post_captcha->build_recaptcha(); }
| $post_captcha->build_recaptcha(); }
|
Zeile 925 | Zeile 938 |
---|
{ $lang->max_options = $lang->sprintf($lang->max_options, $mybb->settings['maxpolloptions']); eval("\$pollbox = \"".$templates->get("newthread_postpoll")."\";");
|
{ $lang->max_options = $lang->sprintf($lang->max_options, $mybb->settings['maxpolloptions']); eval("\$pollbox = \"".$templates->get("newthread_postpoll")."\";");
|
| }
// Do we have any forum rules to show for this forum? $forumrules = ''; if($forum['rulestype'] >= 2 && $forum['rules']) { if(!$forum['rulestitle']) { $forum['rulestitle'] = $lang->sprintf($lang->forum_rules, $forum['name']); }
if(!$parser) { require_once MYBB_ROOT.'inc/class_parser.php'; $parser = new postParser; }
$rules_parser = array( "allow_html" => 1, "allow_mycode" => 1, "allow_smilies" => 1, "allow_imgcode" => 1 );
$forum['rules'] = $parser->parse_message($forum['rules'], $rules_parser); $foruminfo = $forum;
if($forum['rulestype'] == 3) { eval("\$forumrules = \"".$templates->get("forumdisplay_rules")."\";"); } else if($forum['rulestype'] == 2) { eval("\$forumrules = \"".$templates->get("forumdisplay_rules_link")."\";"); }
|
}
$plugins->run_hooks("newthread_end");
| }
$plugins->run_hooks("newthread_end");
|