Vergleich contact.php - 1.8.0 - 1.8.4

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 11Zeile 11
define("IN_MYBB", 1);
define('THIS_SCRIPT', 'contact.php');


define("IN_MYBB", 1);
define('THIS_SCRIPT', 'contact.php');


$templatelist = "contact,post_captcha";

$templatelist = "contact,post_captcha,post_captcha_recaptcha,post_captcha_nocaptcha,post_captcha_ayah";


require_once "./global.php";
require_once MYBB_ROOT.'inc/class_captcha.php';


require_once "./global.php";
require_once MYBB_ROOT.'inc/class_captcha.php';

Zeile 41Zeile 41
		$user_check = "ipaddress=".$db->escape_binary($session->packedip);
}


		$user_check = "ipaddress=".$db->escape_binary($session->packedip);
}


	$query = $db->simple_select("maillogs", "COUNT(*) AS sent_count", "{$user_check} AND dateline >= '".(TIME_NOW - (60*60*24))."'");

	$query = $db->simple_select("maillogs", "COUNT(mid) AS sent_count", "{$user_check} AND dateline >= ".(TIME_NOW - (60*60*24)));

	$sent_count = $db->fetch_field($query, "sent_count");
if($sent_count >= $mybb->usergroup['maxemails'])
{

	$sent_count = $db->fetch_field($query, "sent_count");
if($sent_count >= $mybb->usergroup['maxemails'])
{

Zeile 177Zeile 177
		try {
if($stop_forum_spam_checker->is_user_a_spammer('', $mybb->input['email'], get_ip()))
{

		try {
if($stop_forum_spam_checker->is_user_a_spammer('', $mybb->input['email'], get_ip()))
{

				$errors[] = $lang->error_stop_forum_spam_spammer;




				$errors[] = $lang->sprintf($lang->error_stop_forum_spam_spammer,
$stop_forum_spam_checker->getErrorText(array(
'stopforumspam_check_emails',
'stopforumspam_check_ips')));

			}
}
catch (Exception $e)

			}
}
catch (Exception $e)

Zeile 212Zeile 215
		}

$subject = $lang->sprintf($lang->email_contact_subject, $mybb->input['subject']);

		}

$subject = $lang->sprintf($lang->email_contact_subject, $mybb->input['subject']);

		$message = $lang->sprintf($lang->email_contact, $user, $session->ipaddress, $mybb->input['message']);

		$message = $lang->sprintf($lang->email_contact, $mybb->input['email'], $user, $session->ipaddress, $mybb->input['message']);


// Email the administrator
my_mail($mybb->settings['adminemail'], $subject, $message, $mybb->input['email']);


// Email the administrator
my_mail($mybb->settings['adminemail'], $subject, $message, $mybb->input['email']);

Zeile 237Zeile 240
			$db->insert_query("maillogs", $log_entry);
}


			$db->insert_query("maillogs", $log_entry);
}


		// Redirect
redirect('contact.php', $lang->contact_success_message);







		if($mybb->usergroup['emailfloodtime'] > 0 || (isset($sent_count) && $sent_count + 1 >= $mybb->usergroup['maxemails']))
{
redirect('index.php', $lang->contact_success_message, '', true);
}
else
{
redirect('contact.php', $lang->contact_success_message, '', true);
}

	}
else
{

	}
else
{