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: newthread.php 2192 2006-09-03 12:27:37Z chris $
| * $Id: newthread.php 2598 2007-01-02 17:17:32Z CraKteR $
|
*/
define("IN_MYBB", 1);
| */
define("IN_MYBB", 1);
|
Zeile 154 | Zeile 154 |
---|
$thread_errors = ""; $hide_captcha = false;
|
$thread_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); } }
|
// Performing the posting of a new thread. if($mybb->input['action'] == "do_newthread" && $mybb->request_method == "post") {
| // Performing the posting of a new thread. if($mybb->input['action'] == "do_newthread" && $mybb->request_method == "post") {
|
Zeile 192 | Zeile 206 |
---|
// 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 236 | Zeile 250 |
---|
} else {
|
} else {
|
$user_check = "p.ipaddress='{$session->ipaddress}'";
| $user_check = "p.ipaddress='".$db->escape_string($session->ipaddress)."'";
|
} if(!$mybb->input['savedraft'] && !$pid) {
| } if(!$mybb->input['savedraft'] && !$pid) {
|