diff options
| author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-07-28 16:42:12 +0000 |
|---|---|---|
| committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-07-28 16:42:12 +0000 |
| commit | 91d4f863e4efceb798f05a30b6b050b1f8ebb9fd (patch) | |
| tree | 755747a2d564f96b5bcfa6b12ca584b5ebd71e37 /phpBB/admin/admin_forum_prune.php | |
| parent | 476880a4c0766910438c1e0c0453472dfecca81f (diff) | |
| download | forums-91d4f863e4efceb798f05a30b6b050b1f8ebb9fd.tar forums-91d4f863e4efceb798f05a30b6b050b1f8ebb9fd.tar.gz forums-91d4f863e4efceb798f05a30b6b050b1f8ebb9fd.tar.bz2 forums-91d4f863e4efceb798f05a30b6b050b1f8ebb9fd.tar.xz forums-91d4f863e4efceb798f05a30b6b050b1f8ebb9fd.zip | |
Lots of languagification and redirection path change
git-svn-id: file:///svn/phpbb/trunk@759 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/admin/admin_forum_prune.php')
| -rw-r--r-- | phpBB/admin/admin_forum_prune.php | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/phpBB/admin/admin_forum_prune.php b/phpBB/admin/admin_forum_prune.php index ac6a9a84bb..5f3b90d024 100644 --- a/phpBB/admin/admin_forum_prune.php +++ b/phpBB/admin/admin_forum_prune.php @@ -38,9 +38,7 @@ if( $setmodules == 1 ) return; } -// -// Now include the relevant files. -// + $phpbb_root_path = "./../"; include($phpbb_root_path . 'extension.inc'); include($phpbb_root_path . 'common.'.$phpEx); @@ -51,20 +49,16 @@ include($phpbb_root_path . 'includes/prune.'.$phpEx); // $userdata = session_pagestart($user_ip, PAGE_INDEX, $session_length); init_userprefs($userdata); -// -// End sessionmanagement -// - // -// Check user permissions +// End session management // if( !$userdata['session_logged_in'] ) { - header("Location: ../login.$phpEx?forward_page=/admin/"); + header("Location: ../login.$phpEx?forward_page=admin/"); } else if( $userdata['user_level'] != ADMIN ) { - message_die(GENERAL_MESSAGE, "You are not authorised to administer this board"); + message_die(GENERAL_MESSAGE, $lang['Not_admin']); } // |
