Zeile 6 | Zeile 6 |
---|
* Website: http://www.mybboard.com * License: http://www.mybboard.com/eula.html *
|
* Website: http://www.mybboard.com * License: http://www.mybboard.com/eula.html *
|
* $Id: newreply.php 2175 2006-08-31 04:27:16Z Tikitiki $
| * $Id: newreply.php 2277 2006-09-27 10:26:56Z chris $
|
*/
define("IN_MYBB", 1);
| */
define("IN_MYBB", 1);
|
Zeile 121 | Zeile 121 |
---|
{ if($thread['closed'] == "yes") {
|
{ if($thread['closed'] == "yes") {
|
redirect("showthread.php?tid=$tid", $lang->redirect_threadclosed);
| error($lang->redirect_threadclosed);
|
} }
| } }
|
Zeile 176 | Zeile 176 |
---|
$reply_errors = ""; $hide_captcha = false;
|
$reply_errors = ""; $hide_captcha = false;
|
| // Check the maximum posts per day for this user if($mybb->settings['maxposts'] > 0 && $mybb->usergroup['cancp'] != "yes") { $daycut = time()-60*60*24; $query = $db->simple_select(TABLE_PREFIX."posts", "COUNT(*) AS posts_today", "uid='{$mybb->user['uid']}' AND visible='1' AND dateline>{$daycut}"); $post_count = $db->fetch_field($query, "posts_today"); if($post_count >= $mybb->settings['maxposts']) { $lang->error_maxposts = sprintf($lang->error_maxposts, $mybb->settings['maxposts']); error($lang->error_maxposts); } }
|
if($mybb->input['action'] == "do_newreply" && $mybb->request_method == "post") { $plugins->run_hooks("newreply_do_newreply_start");
| if($mybb->input['action'] == "do_newreply" && $mybb->request_method == "post") { $plugins->run_hooks("newreply_do_newreply_start");
|
Zeile 213 | Zeile 227 |
---|
// Otherwise they've logged in successfully.
$mybb->input['username'] = $username = $mybb->user['username'];
|
// Otherwise they've logged in successfully.
$mybb->input['username'] = $username = $mybb->user['username'];
|
my_setcookie("mybbuser", $mybb->user['uid']."_".$mybb->user['loginkey']);
| my_setcookie("mybbuser", $mybb->user['uid']."_".$mybb->user['loginkey'], null, true);
|
my_setcookie('loginattempts', 1); // Update the session to contain their user ID
| my_setcookie('loginattempts', 1); // Update the session to contain their user ID
|
Zeile 485 | Zeile 499 |
---|
{ $quoted_post['username'] = $quoted_post['userusername']; }
|
{ $quoted_post['username'] = $quoted_post['userusername']; }
|
$quoted_post['message'] = preg_replace('#(^|\r|\n)/me ([^\r\n<]*)#i', "\\1* {$quoted_post['username']} \\2</span>", $quoted_post['message']); $quoted_post['message'] = preg_replace('#(^|\r|\n)/slap ([^\r\n<]*)#i', "\\1* {$quoted_post['username']} {$lang->slaps} \\2 {$lang->with_trout}</span>", $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']); $message .= "[quote={$quoted_post['username']}]\n{$quoted_post['message']}\n[/quote]\n\n"; $quoted_ids[] = $quoted_post['pid'];
| $quoted_post['message'] = preg_replace("#\[attachment=([0-9]+?)\]#i", '', $quoted_post['message']); $message .= "[quote={$quoted_post['username']}]\n{$quoted_post['message']}\n[/quote]\n\n"; $quoted_ids[] = $quoted_post['pid'];
|