From ef39bd080f299158b4ba1941493692c05ee8da30 Mon Sep 17 00:00:00 2001 From: Friendika Date: Thu, 18 Nov 2010 21:14:16 -0800 Subject: more dfrn_confirm logging --- mod/dfrn_confirm.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'mod') diff --git a/mod/dfrn_confirm.php b/mod/dfrn_confirm.php index 520543397..13353a364 100644 --- a/mod/dfrn_confirm.php +++ b/mod/dfrn_confirm.php @@ -49,6 +49,7 @@ function dfrn_confirm_post(&$a,$handsfree = null) { $dfrn_id = $handsfree['dfrn_id']; $intro_id = $handsfree['intro_id']; $duplex = $handsfree['duplex']; + logger('dfrn_confirm: Confirm in handsfree mode'); } else { $dfrn_id = ((x($_POST,'dfrn_id')) ? notags(trim($_POST['dfrn_id'])) : ""); @@ -57,7 +58,8 @@ function dfrn_confirm_post(&$a,$handsfree = null) { $cid = intval($_POST['contact_id']); } - logger('dfrn_confirm: Confirming request for dfrn_id ' . $dfrn_id); + logger('dfrn_confirm: Confirming request for dfrn_id (issued) ' . $dfrn_id); + // The other person will have been issued an ID when they first requested friendship. // Locate their record. At this time, their record will have both pending and blocked set to 1. @@ -355,7 +357,8 @@ function dfrn_confirm_post(&$a,$handsfree = null) { $aes_key = $_POST['aes_key']; $duplex = $_POST['duplex']; $version_id = (float) $_POST['dfrn_version']; - + + logger('dfrn_confirm: requestee contacted: ' . $node); logger('dfrn_confirm: request: POST=' . print_r($_POST,true), LOGGER_DATA); @@ -504,6 +507,8 @@ function dfrn_confirm_post(&$a,$handsfree = null) { // Otherwise everything seems to have worked and we are almost done. Yay! // Send an email notification + logger('dfrn_confirm: request: info updated'); + $r = q("SELECT * FROM `contact` LEFT JOIN `user` ON `contact`.`uid` = `user`.`uid` WHERE `contact`.`id` = %d LIMIT 1", intval($dfrn_record) -- cgit v1.2.3