From 47fe584235df04681b6cf185d91a98d2e3f6e30f Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sat, 14 Jul 2012 11:05:00 -0400 Subject: added better logging for flash uploader --- start.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'start.php') diff --git a/start.php b/start.php index 4db944119..884d53f02 100644 --- a/start.php +++ b/start.php @@ -488,23 +488,26 @@ function tidypics_ajax_session_handler($hook, $type, $value, $params) { } if (!$user) { + trigger_error('Tidypics warning: failed to get user in flash uploader', E_USER_WARNING); return; } if (!$token || !$ts || !$session_id || !$tidypics_token) { + trigger_error('Tidypics warning: token information missing in flash uploader', E_USER_WARNING); return; } $hour = 60*60; $now = time(); if ($ts < $now-$hour || $ts > $now+$hour) { + trigger_error('Tidypics warning: failed time check in flash uploader', E_USER_WARNING); return; } $generated_token = md5($session_id . get_site_secret() . $ts . $user->salt); if ($tidypics_token !== $generated_token) { - error_log("Tidypics: bad tp token"); + trigger_error('Tidypics warning: token check failed in flash uploader', E_USER_WARNING); return; } -- cgit v1.2.3