From 42aae8a38789ec102478db6dc58795c4b095546e Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Sun, 6 Apr 2008 22:25:44 -0700 Subject: CLEANUP: started some database cleanup and added some more comments instead of having a different function for each possible way to query for example the full name of a player, there is now only one function with a switch statement that handles the different cases. Still not 100% perfect, but I think nicer to read than before. Signed-off-by: Arun Persaud --- register.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'register.php') diff --git a/register.php b/register.php index 80f569b..42b62ad 100644 --- a/register.php +++ b/register.php @@ -26,12 +26,12 @@ if(myisset("Rfullname","Remail","Rpassword","Rtimezone") ) { global $HOST,$INDEX; $ok=1; - if(DB_get_userid_by_name($_REQUEST["Rfullname"])) + if(DB_get_userid('name',$_REQUEST["Rfullname"])) { echo "please chose another name
"; $ok=0; } - if(DB_get_userid_by_email($_REQUEST["Remail"])) + if(DB_get_userid('email',$_REQUEST["Remail"])) { echo "this email address is already used ?!
"; $ok=0; -- cgit v1.2.3-18-g5258