Zeile 6 | Zeile 6 |
---|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/about/license *
|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/about/license *
|
* $Id: newthread.php 4265 2008-11-08 23:52:49Z Tikitiki $
| * $Id: newthread.php 4864 2010-04-10 09:13:19Z RyanGordon $
|
*/
define("IN_MYBB", 1);
| */
define("IN_MYBB", 1);
|
Zeile 98 | Zeile 98 |
---|
{ if(!$mybb->input['previewpost'] && $mybb->input['action'] != "do_newthread") {
|
{ if(!$mybb->input['previewpost'] && $mybb->input['action'] != "do_newthread") {
|
$username = $lang->guest;
| $username = '';
|
} else {
| } else {
|
Zeile 160 | Zeile 160 |
---|
}
// Are we removing an attachment from the thread?
|
}
// Are we removing an attachment from the thread?
|
if($mybb->input['attachmentaid'] && $mybb->input['posthash'])
| if($mybb->input['attachmentaid'] && $mybb->input['attachmentact'] == "remove" && $mybb->input['posthash'])
|
{ require_once MYBB_ROOT."inc/functions_upload.php"; remove_attachment(0, $mybb->input['posthash'], $mybb->input['attachmentaid']);
| { require_once MYBB_ROOT."inc/functions_upload.php"; remove_attachment(0, $mybb->input['posthash'], $mybb->input['attachmentaid']);
|
Zeile 245 | Zeile 245 |
---|
// Check if this user is allowed to post here $mybb->usergroup = &$groupscache[$mybb->user['usergroup']]; $forumpermissions = forum_permissions($fid);
|
// Check if this user is allowed to post here $mybb->usergroup = &$groupscache[$mybb->user['usergroup']]; $forumpermissions = forum_permissions($fid);
|
if($forumpermissions['canview'] == 0 || $forumpermissions['canpostreplys'] == 0 || $mybb->user['suspendposting'] == 1)
| if($forumpermissions['canview'] == 0 || $forumpermissions['canpostthreads'] == 0 || $mybb->user['suspendposting'] == 1)
|
{ error_no_permission(); }
| { error_no_permission(); }
|
Zeile 588 | Zeile 588 |
---|
$postoptionschecked['disablesmilies'] = " checked=\"checked\""; } $icon = $post['icon'];
|
$postoptionschecked['disablesmilies'] = " checked=\"checked\""; } $icon = $post['icon'];
|
$posticons = get_post_icons();
| if($forum['allowpicons'] != 0) { $posticons = get_post_icons(); }
|
} // Otherwise, this is our initial visit to this page. else { if($mybb->user['signature'] != '')
|
} // Otherwise, this is our initial visit to this page. else { if($mybb->user['signature'] != '')
|
{
| {
|
$postoptionschecked['signature'] = " checked=\"checked\"";
|
$postoptionschecked['signature'] = " checked=\"checked\"";
|
}
| }
|
if($mybb->user['subscriptionmethod'] == 1) { $postoptions_subscriptionmethod_none = "checked=\"checked\"";
| if($mybb->user['subscriptionmethod'] == 1) { $postoptions_subscriptionmethod_none = "checked=\"checked\"";
|
Zeile 605 | Zeile 608 |
---|
else if($mybb->user['subscriptionmethod'] == 2) { $postoptions_subscriptionmethod_instant = "checked=\"checked\"";
|
else if($mybb->user['subscriptionmethod'] == 2) { $postoptions_subscriptionmethod_instant = "checked=\"checked\"";
|
} else
| } else
|
{ $postoptions_subscriptionmethod_dont = "checked=\"checked\""; }
| { $postoptions_subscriptionmethod_dont = "checked=\"checked\""; }
|
Zeile 675 | Zeile 678 |
---|
"); $post = $db->fetch_array($query); if(!$mybb->user['uid'] || !$post['username'])
|
"); $post = $db->fetch_array($query); if(!$mybb->user['uid'] || !$post['username'])
|
{
| {
|
$post['username'] = htmlspecialchars_uni($mybb->input['username']); } else
| $post['username'] = htmlspecialchars_uni($mybb->input['username']); } else
|
Zeile 693 | Zeile 696 |
---|
if($post['includesig'] != 1) { $post['includesig'] = 0;
|
if($post['includesig'] != 1) { $post['includesig'] = 0;
|
}
| }
|
// Fetch attachments assigned to this post
| // Fetch attachments assigned to this post
|
Zeile 729 | Zeile 732 |
---|
// Setup a unique posthash for attachment management if(!$mybb->input['posthash'] && $mybb->input['action'] != "editdraft") {
|
// Setup a unique posthash for attachment management if(!$mybb->input['posthash'] && $mybb->input['action'] != "editdraft") {
|
mt_srand((double) microtime() * 1000000); $posthash = md5($mybb->user['uid'].mt_rand());
| $posthash = md5($mybb->user['uid'].random_str()); } elseif($mybb->input['action'] == "editdraft") { // Drafts have posthashes, too... $posthash = $post['posthash'];
|
} else {
| } else {
|