Vergleich portal.php - 1.2.4 - 1.2.9

  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 3093 2007-05-27 07:07:46Z dennis $

 */

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
{
$lang->new_threads = sprintf($lang->new_threads, $newthreads);

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

Zeile 205Zeile 215
if($mybb->settings['portal_showstats'] != "no")
{
$stats = $cache->read("stats");

if($mybb->settings['portal_showstats'] != "no")
{
$stats = $cache->read("stats");

	$threadsnum = $stats['numthreads'];
$postsnum = $stats['numposts'];
$membersnum = $stats['numusers'];

	$stats['numthreads'] = my_number_format($stats['numthreads']);
$stats['numposts'] = my_number_format($stats['numposts']);
$stats['numusers'] = my_number_format($stats['numusers']);

	if(!$stats['lastusername'])
{
$newestmember = "<b>" . $lang->no_one . "</b>";

	if(!$stats['lastusername'])
{
$newestmember = "<b>" . $lang->no_one . "</b>";

Zeile 307Zeile 317
	// Most users online
$mostonline = $cache->read("mostonline");
if($onlinecount > $mostonline['numusers'])

	// Most users online
$mostonline = $cache->read("mostonline");
if($onlinecount > $mostonline['numusers'])

	{

	{

		$time = time();
$mostonline['numusers'] = $onlinecount;
$mostonline['time'] = $time;

		$time = time();
$mostonline['numusers'] = $onlinecount;
$mostonline['time'] = $time;

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))
{