From 6817c5d59ad578370a2b60dbdcdba16e43dbac65 Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Mon, 5 Jul 2010 21:39:55 -0700 Subject: lots of work, 2way friends, comments... --- mod/settings.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'mod/settings.php') diff --git a/mod/settings.php b/mod/settings.php index de1133faf..861be7946 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -119,6 +119,18 @@ function settings_post(&$a) { // FIXME - set to un-verified, blocked and redirect to logout } + if($nick_changed) { + $r = q ("UPDATE `profile` SET `url` = '%s', `request` = '%s', `notify` = '%s', `poll` = '%s', `confirm` = '%s' + WHERE `uid` = %d AND `self` = 1 LIMIT 1", + dbesc( $a->get_baseurl() . '/profile/' . $nick ), + dbesc( $a->get_baseurl() . '/dfrn_request/' . $nick ), + dbesc( $a->get_baseurl() . '/dfrn_notify/' . $nick ), + dbesc( $a->get_baseurl() . '/dfrn_poll/' . $nick ), + dbesc( $a->get_baseurl() . '/dfrn_confirm/' . $nick ), + intval($_SESSION['uid']) + ); + } + // Refresh the content display with new data -- cgit v1.2.3