alert('please check your name or password and try again')"; $thecase=""; include("logon.htm"); exit; } $userid = mysql_result($result,0,"id"); $admin = mysql_result($result,0,"admin"); echo " "; exit; break; //---------------------------------------------------------------------------------------------------------------- case 2://New User $thesql = "select * from $users where name='$nickname' or (fname='$fname' and lname='$lname')"; $result = mysql_query($thesql); if (mysql_numrows($result)>0){ echo "duplicate data please try again changing $fname $lname or $nickname"; break; } $thesql = "insert into $users (fname,lname,name,password,email,thedate) values('$fname','$lname','$nickname','$password','$email',now(''))"; mysql_query($thesql); //Welcome Message Generator (A copy of ../board/generic.phtml) $theid=mysql_insert_id(); $thesql = "insert into $forum (fromid,toid,subject,thedate,lastpost) values (0,$theid,'Welcome (System Case, contains Help Tips)',Now(''),Now(''))"; mysql_query($thesql); $lastcaseid = mysql_insert_id(); $thesql = "insert into $details (pid,uid,memo,thedate,subject) values ($lastcaseid,0,'This is a System message, Directed to you, You can create new case, and direct it to any user you want to discuss the case with.\nEnter the Title of the Case from the previous page, then Select the User you want to talk to and press Go',now(''),'Starting New Case')"; mysql_query($thesql); $from = "From: discussion.b@ownerdomain\n"; $themessage = "Welcome to the $ownername Discussion Board\nYour login information : \nName:$name\nPassword:$password\nPlease don't reply to this mail\n"; $thesubject = "'$ownername Discussion Board' Logon Information"; @mail($email,"$thesubject","$themessage","$from"); echo ""; exit; break; //---------------------------------------------------------------------------------------------------------------- case 3://Forgot password $thesql = "select password from $users where email='$email'"; $result = mysql_query($thesql); $row=mysql_fetch_array($result); email($email,"Account Details","Password : ".$row["password"],"from: discussion@$ownerdomain\n"); break; } include("logon.htm"); exit; ?>