@@ -333,50 +333,6 @@ function run()
333333
334334 core_terminate ();
335335 break ;
336- /*
337- case 91: // picnik editing
338- ob_clean();
339-
340- // $strPicnikUrl is the URL that we use to launch Picnik.
341- $strPicnikUrl = "http://www.picnik.com/service";
342- // $aPicnikParams collects together all the params we'll give Picnik. Start with an API key
343- $aPicnikParams['_apikey'] = $website->picnik_api_key;
344- // tell Picnik where to send the exported image
345- $aPicnikParams['_export'] = NAVIGATE_URL.'/navigate_upload.php?wid='.$website->id.'&engine=picnik&id='.$_REQUEST['id'].'&engine=picnik&session_id='.session_id();
346- // give the export button a title
347- $aPicnikParams['_export_title'] = t(34, 'Save');
348- // turn on the close button, and tell it to come back here
349- //$aPicnikParams['_close_target'] = $strRoot;
350- // send in the previous "king" image in case the user feels like decorating it
351- $aPicnikParams['_import'] = NAVIGATE_DOWNLOAD.'?wid='.$website->id.'&id='.$_REQUEST['id'].'&disposition=attachment&sid='.session_id();
352- // tell Picnik to redirect the user to the following URL after the HTTP POST instead of just redirecting to _export
353- $aPicnikParams['_redirect'] = NAVIGATE_DOWNLOAD.'?wid='.$website->id.'&id='.$_REQUEST['id'].'&disposition=inline&ts='.core_time(); //'javascript: return false;';
354-
355- // tell Picnik our name. It'll use it in a few places as appropriate
356- $aPicnikParams['_host_name'] = 'Navigate';
357- // turn off the "Save & Share" tab so users don't get confused
358- $aPicnikParams['_exclude'] = "out";
359-
360- echo '<html><head></head><body>';
361-
362- echo '<form id="picnik_form" method="POST" action="'.$strPicnikUrl.'" style=" visibility: hidden; ">';
363-
364- // put all the API parameters into the form as hidden inputs
365- foreach( $aPicnikParams as $key => $value ) {
366- echo "<input type='hidden' name='$key' value='$value'/>\n";
367- }
368-
369- //echo "<input type='text' name='address' value='Your Majesty'/>\n";
370- echo "<input type='submit' value='Picnik'/>\n";
371- echo "</form>";
372- echo '<script language="javascript" type="text/javascript">
373- document.forms[0].submit();
374- </script>';
375- echo '</body></html>';
376-
377- core_terminate();
378- break;
379- */
380336
381337 case 0 : // list / search result
382338 default :
0 commit comments