aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/profile.php
diff options
context:
space:
mode:
authorJames Atkinson <thefinn@users.sourceforge.net>2001-04-17 07:14:50 +0000
committerJames Atkinson <thefinn@users.sourceforge.net>2001-04-17 07:14:50 +0000
commit26f5fb7dfc77aa8906ee2f6ba7c32d5655c7d848 (patch)
tree62941b99813d7083e278f558d23a48ec68a48563 /phpBB/profile.php
parent9468f91ea044b9315184e42658ed074e51129018 (diff)
downloadforums-26f5fb7dfc77aa8906ee2f6ba7c32d5655c7d848.tar
forums-26f5fb7dfc77aa8906ee2f6ba7c32d5655c7d848.tar.gz
forums-26f5fb7dfc77aa8906ee2f6ba7c32d5655c7d848.tar.bz2
forums-26f5fb7dfc77aa8906ee2f6ba7c32d5655c7d848.tar.xz
forums-26f5fb7dfc77aa8906ee2f6ba7c32d5655c7d848.zip
Fixed some hard coded referances to table names
git-svn-id: file:///svn/phpbb/trunk@169 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/profile.php')
-rw-r--r--phpBB/profile.php66
1 files changed, 33 insertions, 33 deletions
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 @@
<?php
-/***************************************************************************
- * profile.php
- * -------------------
- * begin : Saturday, Feb 13, 2001
- * copyright : (C) 2001 The phpBB Group
- * email : support@phpbb.com
- *
- * $Id$
- *
- *
- ***************************************************************************/
+/***************************************************************************
+ * profile.php
+ * -------------------
+ * begin : Saturday, Feb 13, 2001
+ * copyright : (C) 2001 The phpBB Group
+ * email : support@phpbb.com
+ *
+ * $Id$
+ *
+ *
+ ***************************************************************************/
-/***************************************************************************
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- *
- ***************************************************************************/
+/***************************************************************************
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ *
+ ***************************************************************************/
include('extension.inc');
include('common.'.$phpEx);
@@ -37,19 +37,19 @@ init_userprefs($userdata);
switch($mode)
{
case 'viewprofile':
-
-
+
+
break;
case 'editprofile':
-
+
break;
case 'register':
$pagetype = "register";
$page_title = "$l_register";
include('includes/page_header.'.$phpEx);
-
- if(!isset($agreed))
+
+ if(!isset($agreed))
{
$template->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 .= "<br>Query: $sql";
}
}
-
+
}
if($error)
{