} ?> <div id="brdfooternav" class="inbox"> <?php // Display the "Jump to" drop list if ($feather->forum_settings['o_quickjump'] == '1' && !empty($quickjump)) { ?> <div class="conl"> <form id="qjump" method="get" action=""> <div><label><span><?php _e('Jump to'); ?> <br /></span></label> <select name="id" onchange="window.location=('<?php echo Url::get('forum/'); ?> '+this.options[this.selectedIndex].value)"> <?php foreach ($quickjump[(int) $feather->user->g_id] as $cat_id => $cat_data) { echo "\t\t\t\t\t\t\t" . '<optgroup label="' . Utils::escape($cat_data['cat_name']) . '">' . "\n"; foreach ($cat_data['cat_forums'] as $forum) { echo "\t\t\t\t\t\t\t\t" . '<option value="' . $forum['forum_id'] . '/' . $feather->url->url_friendly($forum['forum_name']) . '"' . ($fid == 2 ? ' selected="selected"' : '') . '>' . $forum['forum_name'] . '</option>' . "\n"; } echo "\t\t\t\t\t\t\t" . '</optgroup>' . "\n"; } ?> </select> <noscript><input type="submit" value="<?php _e('Go'); ?>
header('Expires: ' . gmdate('D, d M Y H:i:s') . ' GMT'); header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); header('Pragma: public'); echo sprintf(__('Guests online'), Utils::forum_number_format($num_guests)) . '<br />' . "\n"; if ($action == 'online_full' && !empty($users)) { echo sprintf(__('Users online'), implode(', ', $users)) . '<br />' . "\n"; } else { echo sprintf(__('Users online'), Utils::forum_number_format($num_users)) . '<br />' . "\n"; } exit; } elseif ($action == 'stats') { if (!Container::get('cache')->isCached('users_info')) { Container::get('cache')->store('users_info', Cache::get_users_info()); } $stats = Container::get('cache')->retrieve('users_info'); $stats_query = \DB::for_table('forums')->select_expr('SUM(num_topics)', 'total_topics')->select_expr('SUM(num_posts)', 'total_posts')->find_one(); $stats['total_topics'] = intval($stats_query['total_topics']); $stats['total_posts'] = intval($stats_query['total_posts']); // Send the Content-type header in case the web server is setup to send something else header('Content-type: text/html; charset=utf-8'); header('Expires: ' . gmdate('D, d M Y H:i:s') . ' GMT'); header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); header('Pragma: public'); echo sprintf(__('No of users'), Utils::forum_number_format($stats['total_users'])) . '<br />' . "\n"; echo sprintf(__('Newest user'), User::get()->g_view_users == '1' ? '<a href="' . Url::get('user/' . $stats['last_user']['id'] . '/') . '">' . Utils::escape($stats['last_user']['username']) . '</a>' : Utils::escape($stats['last_user']['username'])) . '<br />' . "\n"; echo sprintf(__('No of topics'), Utils::forum_number_format($stats['total_topics'])) . '<br />' . "\n"; echo sprintf(__('No of posts'), Utils::forum_number_format($stats['total_posts'])) . '<br />' . "\n"; exit; } // If we end up here, the script was called with some wacky parameters exit(__('Bad request'));