diff --git a/phpBB/posting.php b/phpBB/posting.php index 7d5043f1e0..d1f094c880 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -1,48 +1,48 @@ "; - + break; case 'reply': - + break; case 'editpost': - + break; } } -else +else { - + switch($mode) { case 'newtopic': @@ -50,10 +50,10 @@ else { error_die(GENERAL_ERROR, "Sorry, no there is no such forum"); } - + $pagetype = "newtopic"; $page_title = " $l_postnew"; - $sql = "SELECT forum_name, forum_access FROM forums WHERE forum_id = '$forum_id'"; + $sql = "SELECT forum_name, forum_access FROM ".FORUMS_TABLE." WHERE forum_id = '$forum_id'"; if(!$result = $db->sql_query($sql)) { error_die(SQL_QUERY, "Could not obtain forum/forum access information.", __LINE__, __FILE__); @@ -61,7 +61,7 @@ else $forum_info = $db->sql_fetchrowset($result); $forum_name = stripslashes($forum_info[0]["forum_name"]); $forum_access = $forum_info[0]["forum_access"]; - + if($forum_access == ANONALLOWED) { $about_posting = "$l_anonusers $l_inthisforum $l_anonhint"; @@ -74,7 +74,7 @@ else { $about_posting = "$l_modusers $l_inthisforum"; } - + include('includes/page_header.'.$phpEx); if($user_logged_in) { @@ -96,7 +96,7 @@ else { $html_status = $l_htmlis . " " . $l_on; $html_toggle = 'assign_vars(array("L_ABOUTPOST" => $l_aboutpost, "L_SUBJECT" => $l_subject, "L_MESSAGEBODY" => $l_body, @@ -167,10 +167,10 @@ else include('includes/page_tail.'.$phpEx); break; case 'reply': - + break; case 'editpost': - + break; } } diff --git a/phpBB/profile.php b/phpBB/profile.php index 34c21f4c46..91ecf4bc1e 100644 --- a/phpBB/profile.php +++ b/phpBB/profile.php @@ -1,26 +1,26 @@ pparse("body"); include('includes/page_tail.'.$phpEx); @@ -83,12 +83,12 @@ switch($mode) $error_msg .= $l_mismatch; } } - + if(isset($submit) && !$error) { // The AUTO_INCREMENT field in MySQL v3.23 dosan't work correctly when there is a row with // -1 in that field so we have to explicitly get the next user ID. - $sql = "SELECT max(user_id) AS total FROM users"; + $sql = "SELECT max(user_id) AS total FROM ".USERS_TABLE; if($result = $db->sql_query($sql)) { $user_id_row = $db->sql_fetchrow($result); @@ -99,8 +99,8 @@ switch($mode) else { error_die(SQL_QUERY, "Couldn't obtained next user_id information.", __LINE__, __FILE__); - } - + } + $md_pass = md5($password); $sql = "INSERT INTO ".USERS_TABLE." ( user_id, @@ -115,7 +115,7 @@ switch($mode) user_intrest, user_sig, user_viewemail, - user_theme, + user_theme, user_aim, user_yim, user_msnm, @@ -172,12 +172,12 @@ switch($mode) $msg = $l_coppa; $email_msg = $l_welcomecoppa; } - else + else { $msg = $l_accountadded; $email_msg = $l_welcomeemail; } - if(!$coppa) + if(!$coppa) { mail($email, $l_welcomesubj, $email_msg, "From: $email_from\r\n"); } @@ -193,7 +193,7 @@ switch($mode) $error_msg .= "
Query: $sql"; } } - + } if($error) {