public function ipstats($req, $res, $args)
    {
        Container::get('hooks')->fire('controller.admin.users.ipstats');

        // Fetch ip count
        $num_ips = $this->model->getNumIp($args['id']);

        // Determine the ip offset (based on $_GET['p'])
        $num_pages = ceil($num_ips / 50);

        $p = (!Input::query('p') || Input::query('p') <= 1 || Input::query('p') > $num_pages) ?
            1 : intval(Input::query('p'));
        $start_from = 50 * ($p - 1);

        return View::setPageInfo([
            'title' => [Utils::escape(ForumSettings::get('o_board_title')), __('Admin'),
                __('Users'), __('Results head')],
            'active_page' => 'admin',
            'admin_console' => true,
            'page' => $p,
            'paging_links' => '<span class="pages-label">' . __('Pages') . ' </span>' .
                Url::paginateOld($num_pages, $p, '?ip_stats=' . $args['id']),
            'start_from' => $start_from,
            'ip_data' => $this->model->getIpStats($args['id'], $start_from),
        ])->display('@forum/admin/users/search_ip');
    }