From 398c40e1701842c337237ab4b2ce7f1c7fe055fb Mon Sep 17 00:00:00 2001 From: Harvie Date: Sat, 12 Feb 2011 16:16:41 +0100 Subject: [PATCH] Registrations Fixed (poHroma) --- wwwroot/inc/eventz/register.inc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/wwwroot/inc/eventz/register.inc b/wwwroot/inc/eventz/register.inc index 93665b5..fa9f983 100644 --- a/wwwroot/inc/eventz/register.inc +++ b/wwwroot/inc/eventz/register.inc @@ -64,14 +64,14 @@ function register() { $q = sprintf('update nodes set node_system_access = "private" where node_id = %d', $user_id); $db->update($q); - $pass = md5($pass); - $vercode = substr( md5( uniqid( rand() ) ), rand(0, 7), 23); - $q = sprintf('insert into users set password = "%s", user_id = %d, - header_id = 2091520, login = "%s", email = "%s", - hash = "%s", xmpp="%s, guild_id="%s""', - $pass, $user_id, $login, $email, $vercode, $xmpp, $guild_id); - $db->query($q); // XXX rewrite - $emailtext = sprintf( + $pass = md5($pass); + $vercode = substr( md5( uniqid( rand() ) ), rand(0, 7), 23); + $q = sprintf('insert into users set password = "%s", user_id = %d, + header_id = 2091520, login = "%s", email = "%s", + hash = "%s", xmpp="%s", guild_id="%s"', + $pass, $user_id, $login, $email, $vercode, $xmpp, $guild_id); + $db->query($q); // XXX rewrite + $emailtext = sprintf( 'Vitaj %s! Prave som sa s radostou dozvedel, ze si vyplnil(a) registracny formular na stranke '.SYSTEM_URL.' a chces sa stat clenom tejto komunity. -- 2.30.2