diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-09-25 21:27:58 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-09-25 21:27:58 +0000 |
commit | 8b6c41d600cab39472c3c1b62f66914336b41ce8 (patch) | |
tree | fef768602f2f1bab9fde051ee7880813d20d1b8e /engine/lib | |
parent | 45f7ac5696d51a8cb8a538b9dded640df27128a5 (diff) | |
download | elgg-8b6c41d600cab39472c3c1b62f66914336b41ce8.tar.gz elgg-8b6c41d600cab39472c3c1b62f66914336b41ce8.tar.bz2 |
Debug
git-svn-id: https://code.elgg.org/elgg/trunk@2139 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/api.php | 5 |
1 files changed, 5 insertions, 0 deletions
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)); |