From 6cc8f7714561a681428c2d402b15666e8e0af0fd Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sat, 30 Oct 2010 16:58:33 +0000 Subject: working around use_only_cookies --- views/default/tidypics/forms/ajax_upload.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'views/default/tidypics/forms/ajax_upload.php') diff --git a/views/default/tidypics/forms/ajax_upload.php b/views/default/tidypics/forms/ajax_upload.php index 1d2a240ad..87a6ad0ed 100644 --- a/views/default/tidypics/forms/ajax_upload.php +++ b/views/default/tidypics/forms/ajax_upload.php @@ -3,15 +3,13 @@ extend_view('metatags', 'tidypics/js/uploader'); $album = $vars['album']; -$access_id = $album->access_id; $ts = time(); $token = generate_action_token($ts); - $batch = time(); +$tidypics_token = md5(session_id() . get_site_secret() . $ts . get_loggedin_user()->salt); $basic_uploader_url = current_page_url() . '/basic'; - $upload_endpoint_url = "{$vars['url']}action/tidypics/ajax_upload/"; $upload_complete_url = "{$vars['url']}action/tidypics/ajax_upload_complete/"; @@ -73,11 +71,13 @@ $("#uploadify").uploadify({ 'uploader' : 'mod/tidypics/vendors/uploadify/uploadify.swf', 'script' : '', 'scriptData' : { - 'album_guid' : 'guid; ?>', - '__elgg_token' : '', - '__elgg_ts' : '', - 'Elgg' : '', - 'batch' : '' + 'album_guid' : 'guid; ?>', + 'user_guid' : '', + '__elgg_token' : '', + '__elgg_ts' : '', + 'Elgg' : '', + 'tidypics_token' : '', + 'batch' : '' }, 'fileDataName' : 'Image', 'cancelImg' : '_graphics/icon_customise_remove.gif', -- cgit v1.2.3