Vergleich member.php - 1.4.0 - 1.4.2

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * $Id: member.php 4001 2008-07-08 22:34:00Z Tikitiki $

 * $Id: member.php 4154 2008-08-30 06:06:59Z Tikitiki $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

 
define('THIS_SCRIPT', 'member.php');


$nosession['avatar'] = 1;
$templatelist = "member_register,error_nousername,error_nopassword,error_passwordmismatch,error_invalidemail,error_usernametaken,error_emailmismatch,error_noemail,redirect_registered";


$nosession['avatar'] = 1;
$templatelist = "member_register,error_nousername,error_nopassword,error_passwordmismatch,error_invalidemail,error_usernametaken,error_emailmismatch,error_noemail,redirect_registered";

Zeile 982Zeile 983
	// Is a fatal call if user has had too many tries
$logins = login_attempt_check();
$login_text = '';

	// Is a fatal call if user has had too many tries
$logins = login_attempt_check();
$login_text = '';

 
	
// Did we come from the quick login form
if($mybb->input['quick_login'] == "1" && $mybb->input['quick_password'] && $mybb->input['quick_username'])
{
$mybb->input['password'] = $mybb->input['quick_password'];
$mybb->input['username'] = $mybb->input['quick_username'];
}


if(!username_exists($mybb->input['username']))
{


if(!username_exists($mybb->input['username']))
{

Zeile 1233Zeile 1241
		$ppd = $memprofile['postnum'];
}
$stats = $cache->read("stats");

		$ppd = $memprofile['postnum'];
}
$stats = $cache->read("stats");

	$posts = $stats['numposts'];
if($posts == 0)

	$numposts = $stats['numposts'];
if($numposts == 0)

	{
$percent = "0";
}
else
{

	{
$percent = "0";
}
else
{

		$percent = $memprofile['postnum']*100/$posts;

		$percent = $memprofile['postnum']*100/$numposts;

		$percent = round($percent, 2);
}


		$percent = round($percent, 2);
}


Zeile 1333Zeile 1341
				
if($membday[2] >= 1970)
{

				
if($membday[2] >= 1970)
{

					$w_day = get_weekday($membday[1], $membday[0], $membday[2]);

					$w_day = date("l", mktime(0, 0, 0, $membday[1], $membday[0], $membday[2]));

					$membday = format_bdays($mybb->settings['dateformat'], $membday[1], $membday[0], $membday[2], $w_day);
}
else

					$membday = format_bdays($mybb->settings['dateformat'], $membday[1], $membday[0], $membday[2], $w_day);
}
else

Zeile 1585Zeile 1593
	// Check group limits
if($mybb->usergroup['maxemails'] > 0)
{

	// Check group limits
if($mybb->usergroup['maxemails'] > 0)
{

		$query = $db->simple_select("maillogs", "COUNT(*) AS sent_count", "fromuid='{$mybb->user['uid']}'");
$sent_count = $db->fetch_field($query, "maillogs");

		$query = $db->simple_select("maillogs", "COUNT(*) AS sent_count", "fromuid='{$mybb->user['uid']}' AND dateline >= '".(TIME_NOW - (60*60*24))."'");
$sent_count = $db->fetch_field($query, "sent_count");

		if($sent_count > $mybb->usergroup['maxemails'])
{
$lang->error_max_emails_day = $lang->sprintf($lang->error_max_emails_day, $mybb->usergroup['maxemails']);

		if($sent_count > $mybb->usergroup['maxemails'])
{
$lang->error_max_emails_day = $lang->sprintf($lang->error_max_emails_day, $mybb->usergroup['maxemails']);

Zeile 1664Zeile 1672
	// Check group limits
if($mybb->usergroup['maxemails'] > 0)
{

	// Check group limits
if($mybb->usergroup['maxemails'] > 0)
{

		$query = $db->simple_select("maillogs", "COUNT(*) AS sent_count", "fromuid='{$mybb->user['uid']}'");
$sent_count = $db->fetch_field($query, "maillogs");

		$query = $db->simple_select("maillogs", "COUNT(*) AS sent_count", "fromuid='{$mybb->user['uid']}' AND dateline >= '".(TIME_NOW - (60*60*24))."'");
$sent_count = $db->fetch_field($query, "sent_count");

		if($sent_count > $mybb->usergroup['maxemails'])
{
$lang->error_max_emails_day = $lang->sprintf($lang->error_max_emails_day, $mybb->usergroup['maxemails']);

		if($sent_count > $mybb->usergroup['maxemails'])
{
$lang->error_max_emails_day = $lang->sprintf($lang->error_max_emails_day, $mybb->usergroup['maxemails']);