|
From: Benjamin C. <bc...@us...> - 2002-03-30 20:06:31
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv21089
Modified Files:
newaccount.php
Log Message:
Insert to the preferences table
Index: newaccount.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/newaccount.php,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- newaccount.php 30 Mar 2002 19:12:27 -0000 1.26
+++ newaccount.php 30 Mar 2002 20:06:27 -0000 1.27
@@ -68,6 +68,8 @@
" (user_id, group_id, created_by, created_date)
select $user_id, group_id, 0, $now from ".TBL_AUTH_GROUP.
" where group_name = 'User'");
+ $db->query("insert into ".TBL_USER_PREF." (user_id) values ($user_id)");
+
mail($_pv['email'], $STRING['newacctsubject'], sprintf($STRING['newacctmessage'],
$password), sprintf("From: %s\nContent-Type: text/plain; charset=%s\nContent-Transfer-Encoding: 8bit\n",ADMIN_EMAIL, $STRING['lang_charset']));
$t->set_file('content','newaccountsuccess.html');
|