Vergleich portal.php - 1.6.6 - 1.6.7

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * $Id: portal.php 5297 2010-12-28 22:01:14Z Tomm $

 * $Id: portal.php 5744 2012-01-23 16:37:22Z ralgith $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 60Zeile 60

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


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

		error($lang->error_invalidpworusername.$login_text);















		switch($mybb->settings['username_method'])
{
case 0:
error($lang->error_invalidpworusername.$login_text);
break;
case 1:
error($lang->error_invalidpworusername1.$login_text);
break;
case 2:
error($lang->error_invalidpworusername2.$login_text);
break;
default:
error($lang->error_invalidpworusername.$login_text);
break;
}

	}
$user = validate_password_from_username($mybb->input['username'], $mybb->input['password']);
if(!$user['uid'])

	}
$user = validate_password_from_username($mybb->input['username'], $mybb->input['password']);
if(!$user['uid'])

Zeile 94Zeile 108
	$plugins->run_hooks("portal_do_login_end");

redirect("portal.php", $lang->redirect_loggedin);

	$plugins->run_hooks("portal_do_login_end");

redirect("portal.php", $lang->redirect_loggedin);

}

$plugins->run_hooks("portal_start");



}

$plugins->run_hooks("portal_start");



// get forums user cannot view
$unviewable = get_unviewable_forums(true);
if($unviewable)

// get forums user cannot view
$unviewable = get_unviewable_forums(true);
if($unviewable)

Zeile 135Zeile 149
			if(!$newthreads)
{
$newthreads = 0;

			if(!$newthreads)
{
$newthreads = 0;

			}


			}


			if(!$newann)
{
$newann = 0;

			if(!$newann)
{
$newann = 0;

Zeile 181Zeile 195
	{
$lang->guest_welcome_registration = $lang->sprintf($lang->guest_welcome_registration, $mybb->settings['bburl'] . '/member.php?action=register');
$mybb->user['username'] = $lang->guest;

	{
$lang->guest_welcome_registration = $lang->sprintf($lang->guest_welcome_registration, $mybb->settings['bburl'] . '/member.php?action=register');
$mybb->user['username'] = $lang->guest;

 
		switch($mybb->settings['username_method'])
{
case 0:
$username = $lang->username;
break;
case 1:
$username = $lang->username1;
break;
case 2:
$username = $lang->username2;
break;
default:
$username = $lang->username;
break;
}

		eval("\$welcometext = \"".$templates->get("portal_welcome_guesttext")."\";");
}
$lang->welcome = $lang->sprintf($lang->welcome, $mybb->user['username']);

		eval("\$welcometext = \"".$templates->get("portal_welcome_guesttext")."\";");
}
$lang->welcome = $lang->sprintf($lang->welcome, $mybb->user['username']);

Zeile 287Zeile 316
				if($user['invisible'] == 1)
{
++$anoncount;

				if($user['invisible'] == 1)
{
++$anoncount;

				}

				}

				
if($user['invisible'] == 1)
{

				
if($user['invisible'] == 1)
{

Zeile 363Zeile 392
	);
while($thread = $db->fetch_array($query))
{

	);
while($thread = $db->fetch_array($query))
{

 
		$forumpermissions[$thread['fid']] = forum_permissions($thread['fid']);

// Make sure we can view this thread
if($forumpermissions[$thread['fid']]['canview'] == 0 || $forumpermissions[$thread['fid']]['canviewthreads'] == 0 || $forumpermissions[$thread['fid']]['canonlyviewownthreads'] == 1 && $thread['uid'] != $mybb->user['uid'])
{
continue;
}


		$lastpostdate = my_date($mybb->settings['dateformat'], $thread['lastpost']);
$lastposttime = my_date($mybb->settings['timeformat'], $thread['lastpost']);
// Don't link to guest's profiles (they have no profile).

		$lastpostdate = my_date($mybb->settings['dateformat'], $thread['lastpost']);
$lastposttime = my_date($mybb->settings['timeformat'], $thread['lastpost']);
// Don't link to guest's profiles (they have no profile).