</th> <td><?php echo $online; ?> </td> </tr> <?php if ($scene_data['Enabled'] && ($this->sg_auth->get_uuid() == $owner_id || $this->sg_auth->is_admin())) { ?> <tr> <th><?php echo lang('sg_region_owner'); ?> </th> <td><?php echo render_user_link($owner_id); ?> </td> </tr><tr> <th><?php echo lang('sg_region_version'); ?> </th> <td>{region_version}</td> </tr><tr> <th><?php echo lang('sg_region_uptime'); ?> </th> <td>{region_uptime}</td> </tr>
function _truncate_search($search_results, $offset, $page_count) { $results = array(); $offset_count = 0; $result_count = 0; foreach ($search_results as $search_result) { if ($offset_count >= $offset && $result_count < $page_count) { $user_id = $search_result['id']; if ($this->sg_auth->is_user_searchable($user_id)) { $search_item = array(render_user_link($user_id)); array_push($results, $search_item); $result_count = $result_count + 1; } } else { if ($offset_count < $offset) { $offset_count = $offset_count + 1; } } } return $results; }