Zeile 6 | Zeile 6 |
---|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* $Id: index.php 5594 2011-09-14 13:13:41Z Tomm $
| * $Id$
|
*/
define("IN_MYBB", 1);
| */
define("IN_MYBB", 1);
|
Zeile 38 | Zeile 38 |
---|
//Function call is not fatal if(login_attempt_check(false) !== false) {
|
//Function call is not fatal if(login_attempt_check(false) !== false) {
|
| switch($mybb->settings['username_method']) { case 0: $login_username = $lang->login_username; break; case 1: $login_username = $lang->login_username1; break; case 2: $login_username = $lang->login_username2; break; default: $login_username = $lang->login_username; break; }
|
eval("\$loginform = \"".$templates->get("index_loginform")."\";"); } }
| eval("\$loginform = \"".$templates->get("index_loginform")."\";"); } }
|
Zeile 113 | Zeile 128 |
---|
++$botcount; } else
|
++$botcount; } else
|
{
| {
|
// The user is a guest. ++$guestcount; }
| // The user is a guest. ++$guestcount; }
|
Zeile 303 | Zeile 318 |
---|
}
// Show the board statistics table only if one or more index statistics are enabled.
|
}
// Show the board statistics table only if one or more index statistics are enabled.
|
if($mybb->settings['showwol'] != 0 || $mybb->settings['showindexstats'] != 0 || ($mybb->settings['showbirthdays'] != 0 && $bdaycount > 0)) {
| if(($mybb->settings['showwol'] != 0 && $mybb->usergroup['canviewonline'] != 0) || $mybb->settings['showindexstats'] != 0 || ($mybb->settings['showbirthdays'] != 0 && $bdaycount > 0)) {
|
if(!is_array($stats)) { // Load the stats cache. $stats = $cache->read("stats");
|
if(!is_array($stats)) { // Load the stats cache. $stats = $cache->read("stats");
|
}
| }
|
$post_code_string = ''; if($mybb->user['uid'])
| $post_code_string = ''; if($mybb->user['uid'])
|
Zeile 318 | Zeile 333 |
---|
}
eval("\$boardstats = \"".$templates->get("index_boardstats")."\";");
|
}
eval("\$boardstats = \"".$templates->get("index_boardstats")."\";");
|
}
| }
|
if($mybb->user['uid'] == 0)
|
if($mybb->user['uid'] == 0)
|
{ // Build a forum cache. $query = $db->query("
| { // Build a forum cache. $query = $db->query("
|
SELECT * FROM ".TABLE_PREFIX."forums WHERE active != 0
|
SELECT * FROM ".TABLE_PREFIX."forums WHERE active != 0
|
ORDER BY pid, disporder ");
| ORDER BY pid, disporder ");
|
|
|
$forumsread = unserialize($mybb->cookies['mybb']['forumread']);
| $forumsread = my_unserialize($mybb->cookies['mybb']['forumread']);
|
} else {
| } else {
|
Zeile 343 | Zeile 358 |
---|
ORDER BY pid, disporder "); }
|
ORDER BY pid, disporder "); }
|
|
|
while($forum = $db->fetch_array($query)) { if($mybb->user['uid'] == 0)
| while($forum = $db->fetch_array($query)) { if($mybb->user['uid'] == 0)
|