Zeile 3 | Zeile 3 |
---|
* MyBB 1.2 * Copyright � 2006 MyBB Group, All Rights Reserved *
|
* MyBB 1.2 * Copyright � 2006 MyBB Group, All Rights Reserved *
|
* Website: http://www.mybboard.com * License: http://www.mybboard.com/eula.html
| * Website: http://www.mybboard.net * License: http://www.mybboard.net/eula.html
|
*
|
*
|
* $Id: newreply.php 2598 2007-01-02 17:17:32Z CraKteR $
| * $Id: newreply.php 3478 2007-11-15 04:11:36Z Tikitiki $
|
*/
define("IN_MYBB", 1);
| */
define("IN_MYBB", 1);
|
Zeile 22 | Zeile 22 |
---|
// Load global language phrases $lang->load("newreply");
|
// Load global language phrases $lang->load("newreply");
|
// Get the pid and tid from the input. $pid = $mybb->input['pid'];
| // Get the pid and tid and replyto from the input. $pid = $replyto = $mybb->input['pid'];
|
$tid = $mybb->input['tid'];
|
$tid = $mybb->input['tid'];
|
| if(isset($mybb->input['replyto'])) { $replyto = intval($mybb->input['replyto']); }
|
// Edit a draft post. $draft_pid = 0;
| // Edit a draft post. $draft_pid = 0;
|
Zeile 86 | Zeile 90 |
---|
error_no_permission(); }
|
error_no_permission(); }
|
// Password protected forums ......... yhummmmy! check_forum_password($fid, $forum['password']);
| // Check if this forum is password protected and we have a valid password check_forum_password($forum['fid']);
|
if($mybb->settings['bbcodeinserter'] != "off" && $forum['allowmycode'] != "no" && (!$mybb->user['uid'] || $mybb->user['showcodebuttons'] != 0)) {
| if($mybb->settings['bbcodeinserter'] != "off" && $forum['allowmycode'] != "no" && (!$mybb->user['uid'] || $mybb->user['showcodebuttons'] != 0)) {
|
Zeile 502 | Zeile 506 |
---|
$quoted_post['message'] = preg_replace('#(^|\r|\n)/me ([^\r\n<]*)#i', "\\1* {$quoted_post['username']} \\2", $quoted_post['message']); $quoted_post['message'] = preg_replace('#(^|\r|\n)/slap ([^\r\n<]*)#i', "\\1* {$quoted_post['username']} {$lang->slaps} \\2 {$lang->with_trout}", $quoted_post['message']); $quoted_post['message'] = preg_replace("#\[attachment=([0-9]+?)\]#i", '', $quoted_post['message']);
|
$quoted_post['message'] = preg_replace('#(^|\r|\n)/me ([^\r\n<]*)#i', "\\1* {$quoted_post['username']} \\2", $quoted_post['message']); $quoted_post['message'] = preg_replace('#(^|\r|\n)/slap ([^\r\n<]*)#i', "\\1* {$quoted_post['username']} {$lang->slaps} \\2 {$lang->with_trout}", $quoted_post['message']); $quoted_post['message'] = preg_replace("#\[attachment=([0-9]+?)\]#i", '', $quoted_post['message']);
|
| $quoted_post['message'] = $parser->parse_badwords($quoted_post['message']);
|
$message .= "[quote={$quoted_post['username']}]\n{$quoted_post['message']}\n[/quote]\n\n"; $quoted_ids[] = $quoted_post['pid']; }
| $message .= "[quote={$quoted_post['username']}]\n{$quoted_post['message']}\n[/quote]\n\n"; $quoted_ids[] = $quoted_post['pid']; }
|
Zeile 723 | Zeile 728 |
---|
if($forumpermissions['canpostattachments'] != "no") { $attachcount = 0;
|
if($forumpermissions['canpostattachments'] != "no") { $attachcount = 0;
|
if($mybb->input['action'] == "editdraft")
| if($mybb->input['action'] == "editdraft" || ($mybb->input['tid'] && $mybb->input['pid']))
|
{ $attachwhere = "pid='$pid'"; }
| { $attachwhere = "pid='$pid'"; }
|
Zeile 754 | Zeile 759 |
---|
} $query = $db->simple_select(TABLE_PREFIX."attachments", "SUM(filesize) AS ausage", "uid='".$mybb->user['uid']."'"); $usage = $db->fetch_array($query);
|
} $query = $db->simple_select(TABLE_PREFIX."attachments", "SUM(filesize) AS ausage", "uid='".$mybb->user['uid']."'"); $usage = $db->fetch_array($query);
|
if($usage['ausage'] > ($mybb->usergroup['attachquota']*1000) && $mybb->usergroup['attachquota'] != 0)
| if($usage['ausage'] > ($mybb->usergroup['attachquota']*1024) && $mybb->usergroup['attachquota'] != 0)
|
{ $noshowattach = 1; }
| { $noshowattach = 1; }
|
Zeile 764 | Zeile 769 |
---|
} else {
|
} else {
|
$friendlyquota = get_friendly_size($mybb->usergroup['attachquota']*1000);
| $friendlyquota = get_friendly_size($mybb->usergroup['attachquota']*1024);
|
} $friendlyusage = get_friendly_size($usage['ausage']); $lang->attach_quota = sprintf($lang->attach_quota, $friendlyusage, $friendlyquota);
| } $friendlyusage = get_friendly_size($usage['ausage']); $lang->attach_quota = sprintf($lang->attach_quota, $friendlyusage, $friendlyquota);
|