mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
Changed the order of some statements
git-svn-id: file:///svn/phpbb/trunk@41 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
671510cb72
commit
ec0dde0675
1 changed files with 7 additions and 6 deletions
|
@ -39,18 +39,13 @@ include('functions/auth.'.$phpEx);
|
|||
include('functions/functions.'.$phpEx);
|
||||
include('db.'.$phpEx);
|
||||
|
||||
// Check if user is banned
|
||||
if(!auth("ip ban", $db, "", "", "", "", "", USER_IP, "", "", ""))
|
||||
{
|
||||
error_die($db, BANNED);
|
||||
}
|
||||
|
||||
// Initalize these variables to keep them safe.
|
||||
$user_logged_in = 0;
|
||||
$logged_in = 0;
|
||||
$userdata = Array();
|
||||
|
||||
// Setup forum wide options.
|
||||
// This is also the first DB query/connect
|
||||
$sql = "SELECT * FROM ".CONFIG_TABLE." WHERE selected = 1";
|
||||
if(!$result = $db->sql_query($sql))
|
||||
{
|
||||
|
@ -74,6 +69,12 @@ else
|
|||
$sys_lang = $default_lang;
|
||||
}
|
||||
|
||||
// Check if user is banned
|
||||
if(!auth("ip ban", $db, "", "", "", "", "", USER_IP, "", "", ""))
|
||||
{
|
||||
error_die($db, BANNED);
|
||||
}
|
||||
|
||||
if(isset($HTTP_COOKIE_VARS[$session_cookie]))
|
||||
{
|
||||
$sessid = $HTTP_COOKIE_VARS[$session_cookie];
|
||||
|
|
Loading…
Add table
Reference in a new issue