public function doWebRecords() { global $_W, $_GPC; $filters = array(); if (!empty($_GPC['nickname'])) { $filters['nickname'] = $_GPC['nickname']; } if (!empty($_GPC['status'])) { $filters['status'] = $_GPC['status']; } $pindex = intval($_GPC['page']); $pindex = max($pindex, 1); $psize = 15; $total = 0; require_once MB_ROOT . '/source/Fans.class.php'; $f = new Fans(); $ds = $f->getAll($filters, $pindex, $psize, $total); $pager = pagination($total, $pindex, $psize); include $this->template('records'); }