[AppDB] Fix to allow creating of new accounts (urgent)
Tony Lambregts
tony_lambregts at telusplanet.net
Wed Jan 5 10:13:50 CST 2005
The changes we made yesterday to the user_list table breaks creating new
accounts. this fixes it.
Change log: Fix to allow creating of new accounts
Files changed: account.php include/user.php include/form_new.php
-------------- next part --------------
Index: account.php
===================================================================
RCS file: /home/wine/appdb/account.php,v
retrieving revision 1.7
diff -u -r1.7 account.php
--- account.php 19 Dec 2004 17:54:09 -0000 1.7
+++ account.php 5 Jan 2005 16:09:48 -0000
@@ -119,7 +119,7 @@
return;
}
- $result = $user->create($_POST['ext_username'], $_POST['ext_password'], $_POST['ext_realname'], $_POST['ext_email']);
+ $result = $user->create($_POST['ext_username'], $_POST['ext_password'], $_POST['ext_realname'], $_POST['ext_email'], $_POST['CVSrelease'] );
if($result == null)
{
Index: include/user.php
===================================================================
RCS file: /home/wine/appdb/include/user.php,v
retrieving revision 1.19
diff -u -r1.19 user.php
--- include/user.php 4 Jan 2005 20:15:32 -0000 1.19
+++ include/user.php 5 Jan 2005 16:09:48 -0000
@@ -118,11 +118,11 @@
* create a new user
* returns 0 on success and an error msg on failure
*/
- function create($username, $password, $realname, $email)
+ function create($username, $password, $realname, $email, $CVSrelease)
{
$result = mysql_query("INSERT INTO user_list VALUES ( NOW(), 0, ".
"'$username', password('$password'), ".
- "'$realname', '$email', NOW(), 0, 0)");
+ "'$realname', '$email', NOW(), 0, 0, '$CVSrelease')");
if(!$result)
return mysql_error();
return $this->restore($username, $password);
Index: include/form_new.php
===================================================================
RCS file: /home/wine/appdb/include/form_new.php,v
retrieving revision 1.4
diff -u -r1.4 form_new.php
--- include/form_new.php 18 Dec 2004 01:49:39 -0000 1.4
+++ include/form_new.php 5 Jan 2005 16:09:48 -0000
@@ -29,6 +29,14 @@
<td class=color1> Email Address </td>
<td class=color0> <input type="text" name="ext_email" value='<?php if(isset($_POST['ext_email'])) echo $_POST['ext_email']?>'> </td>
</tr>
+
+<?php
+
+ echo "<tr><td class=color1> Wine version </td><td class=color0>";
+ make_bugzilla_version_list("CVSrelease", $CVSrelease);
+ echo "</td></tr>";
+
+?>
<tr>
<td colspan=2 align=center class=color3>
More information about the wine-patches
mailing list