Ejemplo n.º 1
0
 public function showMembers()
 {
     $count = pathang::getInstance('pathang')->FEEDSTACK->MEMBER_COUNT;
     $from = pathang::getInstance('request')->get('from');
     if ($from) {
         $members = pathang::GetModel('usermain')->listMembers($count, $from);
     } else {
         $members = pathang::GetModel('usermain')->listMembers($count);
     }
     $users = new stdClass();
     foreach ($members as $a => $b) {
         $temp = new stdClass();
         foreach ($b as $x => $y) {
             $temp->{$x} = $y;
         }
         $temp->image = '';
         $temp->profile_link = ROOT . $temp->username;
         $users->{$a} = $temp;
     }
     $result = pathang::GetHelper('userlog')->getUsersImage($users);
     $basket = pathang::GetInstance('basket');
     $basket->set('members', $result);
     $basket->set('count', $count);
     $basket->set('heading', 'Members');
     if ($from) {
         pathang::render('members', 'members_loadmore');
     } else {
         pathang::render('members');
     }
 }