Changeset 338361
- Timestamp:
- 01/28/2011 09:40:23 PM (15 years ago)
- Location:
- flash-api
- Files:
-
- 17 added
- 5 edited
-
tags/2.0.2 (added)
-
tags/2.0.2/flash_api.php (added)
-
tags/2.0.2/flash_example (added)
-
tags/2.0.2/flash_example/flash_api_example.fla (added)
-
tags/2.0.2/flash_example/flash_api_example.swf (added)
-
tags/2.0.2/includes (added)
-
tags/2.0.2/includes/test.php (added)
-
tags/2.0.2/js (added)
-
tags/2.0.2/js/MD5.js (added)
-
tags/2.0.2/js/flash_api.js (added)
-
tags/2.0.2/readme.txt (added)
-
tags/2.0.2/screenshot-1.png (added)
-
tags/2.0.2/screenshot-2.png (added)
-
tags/2.0.2/screenshot-3.png (added)
-
tags/2.0.2/style.css (added)
-
tags/2.0.2/wsrv.php (added)
-
tags/2.0.2/xmlLib.php (added)
-
trunk/flash_api.php (modified) (2 diffs)
-
trunk/flash_example/flash_api_example.fla (modified) (previous)
-
trunk/flash_example/flash_api_example.swf (modified) (previous)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/wsrv.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
flash-api/trunk/flash_api.php
r338075 r338361 3 3 Plugin Name: Flash API 4 4 Description: This plugin serves as a faux webservice that outputs data from the WP Database to a flash application 5 Version: 2.0. 05 Version: 2.0.2 6 6 Author: Cameron Tullos - Illumifi Interactive 7 7 Author URI: http://illumifi.net/ … … 94 94 <input type="hidden" name="action" value="update"> 95 95 <input type="hidden" name="page_options" value="flash_api_key" /> 96 <?php wp_nonce_field( ); ?>96 <?php wp_nonce_field('update-options'); ?> 97 97 </td> 98 98 </tr> -
flash-api/trunk/readme.txt
r331915 r338361 4 4 Requires at least: 2.0.2 5 5 Tested up to: 3.1 6 Stable tag: 2.0. 06 Stable tag: 2.0.2 7 7 8 8 This plugin serves as a faux web service that outputs data from the WP Database to a Flash application in any way you wish. … … 62 62 == Changelog == 63 63 64 = 2.0.2 = 65 * Fixed xml output formatting. 66 * Fixed settings update error. 67 * Cleaned up output formatting. 68 * Updated Flash Example 69 70 = 2.0.1 = 71 * Fixed issue where services weren't showing up on some versions of wp 72 64 73 = 2.0.0 = 65 74 * Complete overhaul or function referencing and management -
flash-api/trunk/wsrv.php
r331915 r338361 15 15 * @param array:Array - an associative array 16 16 */ 17 function output($arr ) {18 $type = strtolower($_REQUEST['output']);17 function output($arr, $type = null) { 18 if (!$type || $type == null) { $type = strtolower($_REQUEST['output']); } 19 19 20 20 switch($type) { … … 39 39 header("Content-type: text/xml"); 40 40 $array = new ArrayToXML($arr); 41 $xml = '<?xml version="1.0" encoding="utf-8"?>' . "\r" . $array->getXML(); 42 $xml = str_replace('><', ">\r<", $xml); 41 $xml = $array->getXML(); 42 $xml = '<?xml version="1.0" encoding="utf-8"?>' . "\r" . '<data>'.$xml.'</data>'; 43 $xml = str_replace('<![CDATA[', '<![CDATA[', $xml); 44 $xml = str_replace(']]>', ']]>', $xml); 45 $xml = str_replace('<', '<', $xml); 46 $xml = str_replace('>', '>', $xml); 43 47 return $xml; 44 48 } … … 49 53 */ 50 54 function outputJSON($arr) { 51 return json_encode($arr); 55 $json = json_encode($arr); 56 $json = str_replace('\/', '/', $json); 57 $json = str_replace('<!--[CDATA[', '', $json); 58 $json = str_replace('<![CDATA[', '', $json); 59 $json = str_replace(']]-->', '', $json); 60 $json = str_replace(']]>', '', $json); 61 return $json; 52 62 } 53 63
Note: See TracChangeset
for help on using the changeset viewer.