27 lines
752 B
PHP
27 lines
752 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
// not going to pretend it's something other than a basic dumb page.
|
||
|
|
if ( ! $database ) {
|
||
|
|
$database =& SEDatabase::getInstance();
|
||
|
|
}
|
||
|
|
|
||
|
|
// expect the get variables ofs
|
||
|
|
$start= ( (int) $_GET['start'] ) ? $_GET['start'] : 0;
|
||
|
|
// this number will probably change. 4 of 5?
|
||
|
|
$limit= 20;
|
||
|
|
|
||
|
|
// basic sort thingie.
|
||
|
|
$orderby= ( $_GET['orderby'] ) ? $_GET['orderby'] : 'user_username';
|
||
|
|
|
||
|
|
$members=array();
|
||
|
|
$data = $database->database_query( "select * from se_users order by $orderby limit $start, $limit ");
|
||
|
|
|
||
|
|
if($database->database_num_rows($rows) > 0 ) {
|
||
|
|
while( $user_info = $database->database_fetch_assoc($user) ) {
|
||
|
|
#$user_info['photo_url']->SEUser::getPhoto();
|
||
|
|
$members[]=$user_info;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
$smarty->assign( 'members', $members );
|