aboutsummaryrefslogtreecommitdiffstats
path: root/mod/register.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-07-05 21:39:55 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-07-05 21:39:55 -0700
commit6817c5d59ad578370a2b60dbdcdba16e43dbac65 (patch)
tree3c24b1b920273fcd57455c6ab73a16650772be01 /mod/register.php
parent3713a9291cfb5d9fad160abd8f4a167693171998 (diff)
downloadvolse-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.php16
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))
+
);