Changeset 674101
- Timestamp:
- 02/27/2013 03:20:38 PM (13 years ago)
- Location:
- open-data-viewer-for-austria/tags/1.0.2
- Files:
-
- 3 edited
-
ckanfunc.php (modified) (1 diff)
-
proxy.php (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
open-data-viewer-for-austria/tags/1.0.2/ckanfunc.php
r672938 r674101 4 4 Plugin URI: http://ckan.de 5 5 Description: Open Data Viewer for Austria brings the full power of open data from Austria to your Wordpress site. 6 Version: 1.0. 16 Version: 1.0.2 7 7 Author: Ondics GmbH 8 8 Author URI: http://ondics.de -
open-data-viewer-for-austria/tags/1.0.2/proxy.php
r668365 r674101 1 1 <?php 2 require( '../../../wp-load.php' ); 3 4 2 5 // this proxy is needed because to get the ckan data from a foreign server 3 6 $url = urldecode(($_GET['url'])); 4 7 $url = str_replace(" ","%20",$url); 5 8 if (strpos($url, "pop") !== FALSE) return ""; // http://www.heise.de/newsticker/meldung/cURL-auf-Abwegen-1800433.html 6 $ch = curl_init(); 7 // URL to grab 8 curl_setopt($ch, CURLOPT_URL, $url); 9 curl_setopt($ch, CURLOPT_HEADER, 0); 10 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 11 curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); 12 curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible;)"); 13 $output = curl_exec($ch); 14 curl_close($ch); 9 10 $output = wp_remote_retrieve_body(wp_remote_get($url, array("user-agent" => "Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20100101 Firefox/17.0"))); // using a common useragent to prevent blocking from some server 15 11 16 12 // this code converts to utf-8 when needed. But mb_check_encoding is critical code! http://de2.php.net/manual/de/function.mb-check-encoding.php -
open-data-viewer-for-austria/tags/1.0.2/readme.txt
r672938 r674101 1 === Open Data Viewer for Austria ===1 === Open Data Viewer for Austria === 2 2 Contributors: ondics 3 3 Donate link: http://ondics.de … … 5 5 Requires at least: 3.3 6 6 Tested up to: 3.5.1 7 Stable tag: 1.0. 17 Stable tag: 1.0.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 175 175 == Changelog == 176 176 177 = 1.0.2 = 178 179 * Replacing cUrl with WordPress stuff 180 177 181 = 1.0.1 = 178 182
Note: See TracChangeset
for help on using the changeset viewer.