From bd897d42597077135480a2058fc5b0be25872201 Mon Sep 17 00:00:00 2001 From: Ludovic Arnaud Date: Sat, 23 Aug 2003 21:53:01 +0000 Subject: [PATCH] Because of vars being unset by common.php we must always declare them after common.php has been called git-svn-id: file:///svn/phpbb/trunk@4428 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/adm/index.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/phpBB/adm/index.php b/phpBB/adm/index.php index 5ffbf0f6fa..1877fe727a 100644 --- a/phpBB/adm/index.php +++ b/phpBB/adm/index.php @@ -14,22 +14,21 @@ define('IN_PHPBB', 1); -// Define some vars -$pane = (!empty($_GET['pane'])) ? htmlspecialchars($_GET['pane']) : ''; -$update = ($pane == 'right') ? true : false; - // Include files $phpbb_root_path = '../'; require($phpbb_root_path . 'extension.inc'); require('pagestart.' . $phpEx); +// Define some vars +$pane = (!empty($_GET['pane'])) ? htmlspecialchars($_GET['pane']) : ''; +$update = ($pane == 'right') ? true : false; + // Do we have any admin permissions at all? if (!$auth->acl_get('a_')) { trigger_error($user->lang['NO_ADMIN']); } - // Generate relevant output if ($pane == 'top') {