Vergleich portal.php - 1.2.3 - 1.2.7

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 3Zeile 3
 * MyBB 1.2
* Copyright � 2006 MyBB Group, All Rights Reserved
*

 * MyBB 1.2
* Copyright � 2006 MyBB Group, All Rights Reserved
*

 * Website: http://www.mybboard.com
* License: http://www.mybboard.com/eula.html

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/eula.html

 *

 *

 * $Id: portal.php 2741 2007-02-08 23:11:12Z CraKteR $

 * $Id: portal.php 3030 2007-04-26 00:19:47Z Tikitiki $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 107Zeile 107

$plugins->run_hooks("portal_start");



$plugins->run_hooks("portal_start");


 
// First validate announcement fids:
$mybb->settings['portal_announcementsfid'] = explode(',', $mybb->settings['portal_announcementsfid']);
if(is_array($mybb->settings['portal_announcementsfid']))
{
foreach($mybb->settings['portal_announcementsfid'] as $fid)
{
$fid_array[] = intval($fid);
}
$mybb->settings['portal_announcementsfid'] = implode(',', $fid_array);
}


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


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

Zeile 172Zeile 182
		if($newthreads == 1)
{
$lang->new_threads = $lang->new_thread;

		if($newthreads == 1)
{
$lang->new_threads = $lang->new_thread;

		}
else

		}
else

		{
$lang->new_threads = sprintf($lang->new_threads, $newthreads);
}

		{
$lang->new_threads = sprintf($lang->new_threads, $newthreads);
}

Zeile 239Zeile 249
		ORDER BY u.username ASC, s.time DESC
");
while($user = $db->fetch_array($query))

		ORDER BY u.username ASC, s.time DESC
");
while($user = $db->fetch_array($query))

	{

	{

		// Create a key to test if this user is a search bot.
$botkey = strtolower(str_replace("bot=", '', $user['sid']));

if($user['uid'] == "0")

		// Create a key to test if this user is a search bot.
$botkey = strtolower(str_replace("bot=", '', $user['sid']));

if($user['uid'] == "0")

		{

		{

			++$guestcount;
}
elseif(strpos($user['sid'], "bot=") !== false && $session->bots[$botkey])

			++$guestcount;
}
elseif(strpos($user['sid'], "bot=") !== false && $session->bots[$botkey])

		{

		{

			// The user is a search bot.
$onlinemembers .= $comma.format_name($session->bots[$botkey], $session->botgroup);
$comma = ", ";

			// The user is a search bot.
$onlinemembers .= $comma.format_name($session->bots[$botkey], $session->botgroup);
$comma = ", ";

Zeile 261Zeile 271
				$doneusers[$user['uid']] = $user['time'];

// If the user is logged in anonymously, update the count for that.

				$doneusers[$user['uid']] = $user['time'];

// If the user is logged in anonymously, update the count for that.

				if($user['invisible'] == "yes")

				if($user['invisible'] == "yes")

				{
++$anoncount;
}

				{
++$anoncount;
}

Zeile 273Zeile 283
				if($user['invisible'] == "yes")
{
$invisiblemark = "*";

				if($user['invisible'] == "yes")
{
$invisiblemark = "*";

				}

				}

				else
{
$invisiblemark = '';

				else
{
$invisiblemark = '';

Zeile 363Zeile 373
}

// Get latest news announcements

}

// Get latest news announcements

// First validate announcement fids:
$mybb->settings['portal_announcementsfid'] = explode(',', $mybb->settings['portal_announcementsfid']);
if(is_array($mybb->settings['portal_announcementsfid']))
{
foreach($mybb->settings['portal_announcementsfid'] as $fid)
{
$fid_array[] = intval($fid);
}
$mybb->settings['portal_announcementsfid'] = implode(',', $fid_array);
}
// And get them!

 
$query = $db->simple_select(TABLE_PREFIX."forums", "*", "fid IN (".$mybb->settings['portal_announcementsfid'].")");
while($forumrow = $db->fetch_array($query))
{

$query = $db->simple_select(TABLE_PREFIX."forums", "*", "fid IN (".$mybb->settings['portal_announcementsfid'].")");
while($forumrow = $db->fetch_array($query))
{