set_pager_total($r[0]['ftotal']);
$r = q("SELECT * FROM `flag` WHERE 1 ORDER BY `total` DESC LIMIT %d, %d ",
intval($a->pager['start']),
intval($a->pager['itemspage'])
);
if(! count($r)) {
notice("No entries.");
return;
}
if(count($r)) {
foreach($r as $rr) {
if($rr['reason'] == 1)
$str = 'censor';
if($rr['reason'] == 2)
$str = 'dead';
$o .= ''
. $str . ' profile: ' . $rr['pid'] . ' (' . $rr['total'] . ')
';
}
}
$o .= paginate($a);
return $o;
}