Zeile 77 | Zeile 77 |
---|
$last_email = $db->fetch_array($query);
// Users last email was within the flood time, show the error
|
$last_email = $db->fetch_array($query);
// Users last email was within the flood time, show the error
|
if($last_email['mid'])
| if(!empty($last_email['mid']))
|
{ $remaining_time = ($mybb->usergroup['emailfloodtime']*60)-(TIME_NOW-$last_email['dateline']);
| { $remaining_time = ($mybb->usergroup['emailfloodtime']*60)-(TIME_NOW-$last_email['dateline']);
|
Zeile 244 | Zeile 244 |
---|
); $db->insert_query("maillogs", $log_entry); }
|
); $db->insert_query("maillogs", $log_entry); }
|
if($mybb->usergroup['emailfloodtime'] > 0 || (isset($sent_count) && $sent_count + 1 >= $mybb->usergroup['maxemails']))
| $mybb->input['from'] = $mybb->get_input('from'); if(!empty($mybb->input['from'])) { redirect($mybb->input['from'], $lang->contact_success_message, '', true); } else
|
{ redirect('index.php', $lang->contact_success_message, '', true);
|
{ redirect('index.php', $lang->contact_success_message, '', true);
|
} else { redirect('contact.php', $lang->contact_success_message, '', true);
| |
} } else
| } } else
|
Zeile 261 | Zeile 262 |
---|
}
if(empty($errors))
|
}
if(empty($errors))
|
{
| {
|
$errors = ''; }
| $errors = ''; }
|
Zeile 276 | Zeile 277 |
---|
{ $captcha = $post_captcha->html; }
|
{ $captcha = $post_captcha->html; }
|
}
| }
|
$contact_subject = htmlspecialchars_uni($mybb->input['subject']); $contact_message = htmlspecialchars_uni($mybb->input['message']);
if($mybb->user['uid'] && !$mybb->get_input('email'))
|
$contact_subject = htmlspecialchars_uni($mybb->input['subject']); $contact_message = htmlspecialchars_uni($mybb->input['message']);
if($mybb->user['uid'] && !$mybb->get_input('email'))
|
{
| {
|
$user_email = htmlspecialchars_uni($mybb->user['email']); } else {
|
$user_email = htmlspecialchars_uni($mybb->user['email']); } else {
|
$user_email = htmlspecialchars_uni($mybb->get_input('email'));
| $user_email = htmlspecialchars_uni($mybb->get_input('email')); }
if(isset($mybb->input['from'])) { $redirect_url = htmlspecialchars_uni($mybb->get_input('from')); } else if(isset($_SERVER['HTTP_REFERER']) && strpos($_SERVER['HTTP_REFERER'], $mybb->settings['bburl']) !== false && strpos($_SERVER['HTTP_REFERER'], "contact.php") === false) { $redirect_url = htmlentities($_SERVER['HTTP_REFERER']); } else { $redirect_url = '';
|
}
$plugins->run_hooks('contact_end');
| }
$plugins->run_hooks('contact_end');
|