summaryrefslogtreecommitdiffstats
path: root/register.php
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2008-04-06 22:25:44 -0700
committerArun Persaud <arun@nubati.net>2008-04-07 22:50:33 -0700
commit42aae8a38789ec102478db6dc58795c4b095546e (patch)
tree35ce04dfef884f798af74536d9596dd04ae4fcd1 /register.php
parent661cdf100d59bb0d7ee3ade0d392efa68aba1a19 (diff)
downloade-DoKo-42aae8a38789ec102478db6dc58795c4b095546e.tar.gz
e-DoKo-42aae8a38789ec102478db6dc58795c4b095546e.tar.bz2
e-DoKo-42aae8a38789ec102478db6dc58795c4b095546e.zip
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 <arun@nubati.net>
Diffstat (limited to 'register.php')
-rw-r--r--register.php4
1 files changed, 2 insertions, 2 deletions
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<br />";
$ok=0;
}
- if(DB_get_userid_by_email($_REQUEST["Remail"]))
+ if(DB_get_userid('email',$_REQUEST["Remail"]))
{
echo "this email address is already used ?!<br />";
$ok=0;