$q = sprintf('update nodes set node_system_access = "private" where node_id = %d', $user_id);\r
$db->update($q);\r
\r
- $pass = md5($pass);\r
- $vercode = substr( md5( uniqid( rand() ) ), rand(0, 7), 23);\r
- $q = sprintf('insert into users set password = "%s", user_id = %d,\r
- header_id = 2091520, login = "%s", email = "%s",\r
- hash = "%s", xmpp="%s, guild_id="%s""',\r
- $pass, $user_id, $login, $email, $vercode, $xmpp, $guild_id);\r
- $db->query($q); // XXX rewrite\r
- $emailtext = sprintf(\r
+ $pass = md5($pass);\r
+ $vercode = substr( md5( uniqid( rand() ) ), rand(0, 7), 23);\r
+ $q = sprintf('insert into users set password = "%s", user_id = %d,\r
+ header_id = 2091520, login = "%s", email = "%s",\r
+ hash = "%s", xmpp="%s", guild_id="%s"',\r
+ $pass, $user_id, $login, $email, $vercode, $xmpp, $guild_id);\r
+ $db->query($q); // XXX rewrite\r
+ $emailtext = sprintf(\r
'Vitaj %s! Prave som sa s radostou dozvedel, ze si vyplnil(a)\r
registracny formular na stranke '.SYSTEM_URL.' a chces sa stat\r
clenom tejto komunity.\r