From ff64795163bc6470b68a580c530dcb15345007e1 Mon Sep 17 00:00:00 2001 From: Tony Lambregts Date: Wed, 5 Jan 2005 19:08:06 +0000 Subject: [PATCH] Fix to allow creating of new accounts --- account.php | 2 +- include/form_new.php | 8 ++++++++ include/user.php | 4 ++-- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/account.php b/account.php index 26de23e..37cdbe5 100644 --- a/account.php +++ b/account.php @@ -119,7 +119,7 @@ function cmd_do_new() 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) { diff --git a/include/form_new.php b/include/form_new.php index f5dee52..4ff1041 100644 --- a/include/form_new.php +++ b/include/form_new.php @@ -29,6 +29,14 @@ echo html_frame_start("Create New Application DB Account","400","",0) Email Address '> + +  Wine version "; + make_bugzilla_version_list("CVSrelease", $CVSrelease); + echo ""; + +?> diff --git a/include/user.php b/include/user.php index 1a145dd..251931e 100644 --- a/include/user.php +++ b/include/user.php @@ -118,11 +118,11 @@ class User { * 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);