mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-26 05:08:52 +00:00
Fix bug #504383
git-svn-id: file:///svn/phpbb/trunk@1889 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
040a509872
commit
9d27f01b42
1 changed files with 154 additions and 160 deletions
|
@ -23,8 +23,6 @@ $phpbb_root_path = "./";
|
||||||
include($phpbb_root_path . 'extension.inc');
|
include($phpbb_root_path . 'extension.inc');
|
||||||
include($phpbb_root_path . 'common.'.$phpEx);
|
include($phpbb_root_path . 'common.'.$phpEx);
|
||||||
|
|
||||||
$page_title = $lang['Memberlist'];
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Start session management
|
// Start session management
|
||||||
//
|
//
|
||||||
|
@ -34,12 +32,7 @@ init_userprefs($userdata);
|
||||||
// End session management
|
// End session management
|
||||||
//
|
//
|
||||||
|
|
||||||
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
|
$start = ( isset($HTTP_GET_VARS['start']) ) ? $HTTP_GET_VARS['start'] : 0;
|
||||||
|
|
||||||
if(!isset($HTTP_GET_VARS['start']))
|
|
||||||
{
|
|
||||||
$start = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(isset($HTTP_POST_VARS['order']))
|
if(isset($HTTP_POST_VARS['order']))
|
||||||
{
|
{
|
||||||
|
@ -128,8 +121,9 @@ if(!$result = $db->sql_query($sql))
|
||||||
message_die(GENERAL_ERROR, "Error getting memberlist.", "", __LINE__, __FILE__, $sql);
|
message_die(GENERAL_ERROR, "Error getting memberlist.", "", __LINE__, __FILE__, $sql);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(($selected_members = $db->sql_numrows($result)) > 0)
|
$page_title = $lang['Memberlist'];
|
||||||
{
|
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
|
||||||
|
|
||||||
$template->set_filenames(array(
|
$template->set_filenames(array(
|
||||||
"body" => "memberlist_body.tpl",
|
"body" => "memberlist_body.tpl",
|
||||||
"jumpbox" => "jumpbox.tpl"));
|
"jumpbox" => "jumpbox.tpl"));
|
||||||
|
@ -287,6 +281,7 @@ if(($selected_members = $db->sql_numrows($result)) > 0)
|
||||||
$pagination = " ";
|
$pagination = " ";
|
||||||
$total_members = 10;
|
$total_members = 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
$template->assign_vars(array(
|
$template->assign_vars(array(
|
||||||
"PAGINATION" => $pagination,
|
"PAGINATION" => $pagination,
|
||||||
"PAGE_NUMBER" => sprintf($lang['Page_of'], ( floor( $start / $board_config['topics_per_page'] ) + 1 ), ceil( $total_members / $board_config['topics_per_page'] )),
|
"PAGE_NUMBER" => sprintf($lang['Page_of'], ( floor( $start / $board_config['topics_per_page'] ) + 1 ), ceil( $total_members / $board_config['topics_per_page'] )),
|
||||||
|
@ -294,7 +289,6 @@ if(($selected_members = $db->sql_numrows($result)) > 0)
|
||||||
"L_GOTO_PAGE" => $lang['Goto_page'])
|
"L_GOTO_PAGE" => $lang['Goto_page'])
|
||||||
);
|
);
|
||||||
$template->pparse("body");
|
$template->pparse("body");
|
||||||
}
|
|
||||||
|
|
||||||
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
|
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue