diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-07-05 21:39:55 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-07-05 21:39:55 -0700 |
commit | 6817c5d59ad578370a2b60dbdcdba16e43dbac65 (patch) | |
tree | 3c24b1b920273fcd57455c6ab73a16650772be01 /mod/register.php | |
parent | 3713a9291cfb5d9fad160abd8f4a167693171998 (diff) | |
download | volse-hubzilla-6817c5d59ad578370a2b60dbdcdba16e43dbac65.tar.gz volse-hubzilla-6817c5d59ad578370a2b60dbdcdba16e43dbac65.tar.bz2 volse-hubzilla-6817c5d59ad578370a2b60dbdcdba16e43dbac65.zip |
lots of work, 2way friends, comments...
Diffstat (limited to 'mod/register.php')
-rw-r--r-- | mod/register.php | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/mod/register.php b/mod/register.php index 4e2c0bfb9..5e1487028 100644 --- a/mod/register.php +++ b/mod/register.php @@ -114,7 +114,8 @@ function register_post(&$a) { dbesc($username), dbesc($a->get_baseurl() . '/images/default-profile.jpg'), dbesc($a->get_baseurl() . '/images/default-profile-sm.jpg') - ); + + ); if($r === false) { $_SESSION['sysmsg'] .= "An error occurred creating your default profile. Please try again." . EOL ; // Start fresh next time. @@ -122,13 +123,20 @@ function register_post(&$a) { intval($newuid)); return; } - $r = q("INSERT INTO `contact` ( `uid`, `created`, `self`, `name`, `photo`, `thumb`, `blocked` ) - VALUES ( %d, '%s', 1, '%s', '%s', '%s', 0 ) ", + $r = q("INSERT INTO `contact` ( `uid`, `created`, `self`, `name`, `photo`, `thumb`, `blocked`, `url`, + `request`, `notify`, `poll`, `confirm` ) + VALUES ( %d, '%s', 1, '%s', '%s', '%s', 0, '%s', '%s', '%s', '%s', '%s' ) ", intval($newuid), datetime_convert(), dbesc($username), dbesc($a->get_baseurl() . '/images/default-profile.jpg'), - dbesc($a->get_baseurl() . '/images/default-profile-sm.jpg') + dbesc($a->get_baseurl() . '/images/default-profile-sm.jpg'), + dbesc($a->get_baseurl() . '/profile/' . intval($newuid)), + dbesc($a->get_baseurl() . '/dfrn_request/' . intval($newuid)), + dbesc($a->get_baseurl() . '/dfrn_notify/' . intval($newuid)), + dbesc($a->get_baseurl() . '/dfrn_poll/' . intval($newuid)), + dbesc($a->get_baseurl() . '/dfrn_confirm/' . intval($newuid)) + ); |