From 086ed1db2ec28817b3370481455c84ceaf6448c2 Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Tue, 6 May 2008 20:08:53 -0700 Subject: CLEANUP: removed all calls to mysql functions and replaced them with calls to DB_xxx should be very easy now to change to a different database. also made the code look nicer ;) Signed-off-by: Arun Persaud --- include/register.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/register.php') diff --git a/include/register.php b/include/register.php index 88b13a2..0dc204d 100644 --- a/include/register.php +++ b/include/register.php @@ -22,10 +22,10 @@ if(myisset("Rfullname","Remail","Rpassword","Rtimezone") ) } if($ok) { - $r=mysql_query("INSERT INTO User VALUES(NULL,".DB_quote_smart($_REQUEST["Rfullname"]). - ",".DB_quote_smart($_REQUEST["Remail"]). - ",".DB_quote_smart(md5($_REQUEST["Rpassword"])). - ",".DB_quote_smart($_REQUEST["Rtimezone"]).",NULL,NULL)"); + $r=DB_query("INSERT INTO User VALUES(NULL,".DB_quote_smart($_REQUEST["Rfullname"]). + ",".DB_quote_smart($_REQUEST["Remail"]). + ",".DB_quote_smart(md5($_REQUEST["Rpassword"])). + ",".DB_quote_smart($_REQUEST["Rtimezone"]).",NULL,NULL)"); if($r) { -- cgit v1.2.3-18-g5258