From 8b6c41d600cab39472c3c1b62f66914336b41ce8 Mon Sep 17 00:00:00 2001 From: marcus Date: Thu, 25 Sep 2008 21:27:58 +0000 Subject: Debug git-svn-id: https://code.elgg.org/elgg/trunk@2139 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/api.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'engine/lib') diff --git a/engine/lib/api.php b/engine/lib/api.php index aedaae878..75486d71c 100644 --- a/engine/lib/api.php +++ b/engine/lib/api.php @@ -628,6 +628,11 @@ */ function calculate_hmac($algo, $time, $api_key, $secret_key, $get_variables, $post_hash = "") { + global $CONFIG; + + if ((isset($CONFIG)) && ($CONFIG->debug)) + error_log("HMAC Parts: $algo, $time, $api_key, $secret_key, $get_variables, $post_hash"); + $ctx = hash_init(map_api_hash($algo), HASH_HMAC, $secret_key); hash_update($ctx, trim($time)); -- cgit v1.2.3