From a4d9979422d9765786d55810c59b2a68f5b3b441 Mon Sep 17 00:00:00 2001 From: Ed Kraus Date: Fri, 5 Jun 2009 19:17:16 +0000 Subject: [PATCH] Added City, State, Country, Phone and error's git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@537 c66351dc-e62f-0410-b875-e3a5c0b9693f --- site/login/login/login-exec.php | 4 +- site/login/login/mysql.sql | 27 +++---- site/login/login/register-exec.php | 110 -------------------------- site/login/login/register-form.php | 59 -------------- site/login/login/register-success.php | 12 --- 5 files changed, 15 insertions(+), 197 deletions(-) delete mode 100644 site/login/login/register-exec.php delete mode 100644 site/login/login/register-form.php delete mode 100644 site/login/login/register-success.php diff --git a/site/login/login/login-exec.php b/site/login/login/login-exec.php index 9b628813..31783557 100644 --- a/site/login/login/login-exec.php +++ b/site/login/login/login-exec.php @@ -38,11 +38,11 @@ //Input Validations if($login == '') { - $errmsg_arr[] = 'Login ID missing'; + $errmsg_arr[] = 'Login ID is missing'; $errflag = true; } if($password == '') { - $errmsg_arr[] = 'Password missing'; + $errmsg_arr[] = 'Password is missing'; $errflag = true; } diff --git a/site/login/login/mysql.sql b/site/login/login/mysql.sql index 9f93447f..a4cd63ab 100644 --- a/site/login/login/mysql.sql +++ b/site/login/login/mysql.sql @@ -2,19 +2,18 @@ # Table structure for table 'members' # -CREATE TABLE `members` ( - `member_id` int(11) unsigned NOT NULL auto_increment, - `firstname` varchar(100) default NULL, - `lastname` varchar(100) default NULL, - `login` varchar(100) NOT NULL default '', - `passwd` varchar(32) NOT NULL default '', - PRIMARY KEY (`member_id`) + +CREATE TABLE `members` ( + `member_id` int(11) unsigned NOT NULL auto_increment, + `firstname` varchar(100) default NULL, + `lastname` varchar(100) default NULL, +`email` varchar(100) default NULL, + `city` varchar(100) default NULL, +`state` varchar(100) default NULL, +`country` varchar(100) default NULL, +`phone` varchar(100) default NULL, +`login` varchar(100) NOT NULL default '', +`passwd` varchar(32) NOT NULL default '', + PRIMARY KEY (`member_id`) ) TYPE=MyISAM; - - -# -# Dumping data for table 'members' -# - -INSERT INTO `members` (`member_id`, `firstname`, `lastname`, `login`, `passwd`) VALUES("1", "Jatinder", "Thind", "phpsense", "ba018360fc26e0cc2e929b8e071f052d"); diff --git a/site/login/login/register-exec.php b/site/login/login/register-exec.php deleted file mode 100644 index 3c58f7fd..00000000 --- a/site/login/login/register-exec.php +++ /dev/null @@ -1,110 +0,0 @@ - 0) { - $errmsg_arr[] = 'Login ID already in use'; - $errflag = true; - } - @mysql_free_result($result); - } - else { - die("Query failed"); - } - } - - - //If there are input validations, redirect back to the registration form - if($errflag) { - $_SESSION['ERRMSG_ARR'] = $errmsg_arr; - session_write_close(); - header("location: register-form.php"); - exit(); - } - - //Create INSERT query - $qry = "INSERT INTO members(firstname, lastname, email, login, passwd) VALUES('$fname','$lname', '$email', '$login','".md5($_POST['password'])."')"; - $result = @mysql_query($qry); - - //Check whether the query was successful or not - if($result) { - header("location: register-success.php"); - exit(); - }else { - die("Query failed"); - } -?> \ No newline at end of file diff --git a/site/login/login/register-form.php b/site/login/login/register-form.php deleted file mode 100644 index 5d3bceb2..00000000 --- a/site/login/login/register-form.php +++ /dev/null @@ -1,59 +0,0 @@ - - - - - -Login Form - - - -0 ) { - echo '