aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/modcp.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-07-13 16:14:37 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-07-13 16:14:37 +0000
commitea983410993371bcc63e1a120fe17bed964f5f08 (patch)
tree5bb1cc1bd365b04ba40aba256c9a4b82982a691e /phpBB/modcp.php
parent79d57c449fc190ce693d2ecfdbb0dc36e8e82be7 (diff)
downloadforums-ea983410993371bcc63e1a120fe17bed964f5f08.tar
forums-ea983410993371bcc63e1a120fe17bed964f5f08.tar.gz
forums-ea983410993371bcc63e1a120fe17bed964f5f08.tar.bz2
forums-ea983410993371bcc63e1a120fe17bed964f5f08.tar.xz
forums-ea983410993371bcc63e1a120fe17bed964f5f08.zip
Changes to include location + some other misc stuff
git-svn-id: file:///svn/phpbb/trunk@646 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/modcp.php')
-rw-r--r--phpBB/modcp.php51
1 files changed, 27 insertions, 24 deletions
diff --git a/phpBB/modcp.php b/phpBB/modcp.php
index d8e2f7382e..2869545c43 100644
--- a/phpBB/modcp.php
+++ b/phpBB/modcp.php
@@ -31,9 +31,10 @@
* topics via the moderator operations buttons on all of the viewtopic pages.
*/
-include('extension.inc');
-include('common.'.$phpEx);
-include('includes/bbcode.'.$phpEx);
+$phpbb_root_path = "./";
+include($phpbb_root_path . 'extension.inc');
+include($phpbb_root_path . 'common.'.$phpEx);
+include($phpbb_root_path . 'includes/bbcode.'.$phpEx);
$pagetype = "modcp";
$page_title = "Modertator Control Panel";
@@ -109,7 +110,7 @@ if($HTTP_POST_VARS['not_confirm'])
header("Location: index.$phpEx");
}
-include('includes/page_header.'.$phpEx);
+include($phpbb_root_path . 'includes/page_header.'.$phpEx);
// Set template files
$template->set_filenames(array("body" => "modcp_body.tpl", "confirm" => "confirm_body.tpl", "split_body" => "split_body.tpl"));
@@ -273,14 +274,14 @@ switch($mode)
"S_CONFIRM_ACTION" => append_sid("modcp.$phpEx"),
"S_HIDDEN_FIELDS" => $hidden_fields));
$template->pparse("confirm");
- include('includes/page_tail.'.$phpEx);
- exit();
+ include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
}
- break;
+ break;
+
case 'move':
echo 'Move';
-
- break;
+ break;
+
case 'lock':
if($confirm)
{
@@ -346,8 +347,7 @@ switch($mode)
"S_CONFIRM_ACTION" => append_sid("modcp.$phpEx"),
"S_HIDDEN_FIELDS" => $hidden_fields));
$template->pparse("confirm");
- include('includes/page_tail.'.$phpEx);
- exit();
+ include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
}
break;
@@ -417,8 +417,7 @@ switch($mode)
"S_CONFIRM_ACTION" => append_sid("modcp.$phpEx"),
"S_HIDDEN_FIELDS" => $hidden_fields));
$template->pparse("confirm");
- include('includes/page_tail.'.$phpEx);
- exit();
+ include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
}
break;
@@ -609,7 +608,7 @@ switch($mode)
if(!$t_result = $db->sql_query($sql))
{
- message_die(GENERAL_ERROR, "Couldn't obtain topic information", "", __LINE__, __FILE__, $sql);
+ message_die(GENERAL_ERROR, "Couldn't obtain topic information", "", __LINE__, __FILE__, $sql);
}
$total_topics = $db->sql_numrows($t_result);
$topics = $db->sql_fetchrowset($t_result);
@@ -654,18 +653,22 @@ switch($mode)
}
$pagination = generate_pagination("modcp.$phpEx?".POST_FORUM_URL."=$forum_id", $forum_topics, $board_config['topics_per_page'], $start);
+
$template->assign_vars(array("PAGINATION" => $pagination,
- "FORUM_ID" => $forum_id,
- "POST_FORUM_URL" => POST_FORUM_URL,
- "ON_PAGE" => (floor($start/$board_config['topics_per_page'])+1),
- "TOTAL_PAGES" => ceil($forum_topics/$board_config['topics_per_page']),
- "L_OF" => $lang['of'],
- "L_PAGE" => $lang['Page'],
- "L_GOTO_PAGE" => $lang['Goto_page']));
+ "FORUM_ID" => $forum_id,
+ "POST_FORUM_URL" => POST_FORUM_URL,
+ "ON_PAGE" => (floor($start/$board_config['topics_per_page'])+1),
+ "TOTAL_PAGES" => ceil($forum_topics/$board_config['topics_per_page']),
+ "L_OF" => $lang['of'],
+ "L_PAGE" => $lang['Page'],
+ "L_GOTO_PAGE" => $lang['Goto_page'])
+ );
+
$template->pparse("body");
- break;
+
+ break;
}
-include('includes/page_tail.'.$phpEx);
+include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
-?>
+?> \ No newline at end of file